PostOrderResponse

Documentation for eth_defi.cow.order.PostOrderResponse Python class.

class PostOrderResponse

Bases: object

Reply for opening an order at CowSwap API

Attributes summary

order_uid

What CowSwap backend thinks should be the order UID

order_data

Order data we posted to CowsSwap API

Methods summary

__init__(order_uid, order_data)

get_explorer_link()

Get CowSwap explorer link for the order.

get_order_uid()

Get the order UID from the response data

order_uid: str

What CowSwap backend thinks should be the order UID

order_data: eth_defi.cow.order.GPv2OrderData

Order data we posted to CowsSwap API

get_order_uid()

Get the order UID from the response data

Return type

str

get_explorer_link()

Get CowSwap explorer link for the order.

Return type

str

__init__(order_uid, order_data)
Parameters
Return type

None