CowSwapResult

Documentation for eth_defi.cow.status.CowSwapResult Python class.

class CowSwapResult

Bases: object

A full result of a CowSwap order posting and status.

Attributes summary

order_uid

Our order UID.

order

Order data we submitted for the swap.

final_status_reply

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_status()

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
Return type

None