PostOrderResponse
Documentation for eth_defi.cow.order.PostOrderResponse Python class.
- class PostOrderResponse
Bases:
objectReply for opening an order at CowSwap API
Attributes summary
What CowSwap backend thinks should be the order UID
Order data we posted to CowsSwap API
Methods summary
__init__(order_uid, order_data)Get CowSwap explorer link for the order.
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
- get_explorer_link()
Get CowSwap explorer link for the order.
- Return type
- __init__(order_uid, order_data)
- Parameters
order_uid (str) –
order_data (eth_defi.cow.order.GPv2OrderData) –
- Return type
None