CowSwapResult
Documentation for eth_defi.cow.status.CowSwapResult Python class.
- class CowSwapResult
Bases:
objectA full result of a CowSwap order posting and status.
Attributes summary
Our order UID.
Order data we submitted for the swap.
The final JSON data result of the status endpoint after we switched away from open status.
Methods summary
__init__(order_uid, order, final_status_reply)Get final order status.
- order_uid: hexbytes.main.HexBytes
Our order UID.
- order: eth_defi.cow.order.GPv2OrderData
Order data we submitted for the swap.
- final_status_reply: dict
The final JSON data result of the status endpoint after we switched away from open status.
See https://docs.cow.fi/cow-protocol/reference/apis/orderbook
- get_status()
Get final order status.
- Return type
Literal[‘scheduled’, ‘open’, ‘active’, ‘solved’, ‘executing’, ‘traded’, ‘cancelled’]
- __init__(order_uid, order, final_status_reply)
- Parameters
order_uid (hexbytes.main.HexBytes) –
order (eth_defi.cow.order.GPv2OrderData) –
final_status_reply (dict) –
- Return type
None