quantpylib.gateway.orders
Orders
Bases: BaseGateway
order_query(exc, **kwargs)
async
Get order details using order ID.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
id
|
(str, int)
|
Order ID in exchange |
required |
exc
|
str
|
Alias for the exchange client. |
required |
**kwargs
|
Exchange wrapper specific keyword arguments. |
{}
|
order_updates_subscribe(handler, exc, **kwargs)
async
Subscribe to creation, updation and deletion of account's orders.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
handler
|
coroutine
|
A coroutine handler for the message received. |
required |
exc
|
str
|
Alias for the exchange client. |
required |
**kwargs
|
Exchange wrapper specific keyword arguments. |
{}
|
order_updates_unsubscribe(exc, **kwargs)
async
Unsubscribe from order events.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
exc
|
str
|
Alias for the exchange client. |
required |
orders_get(exc, **kwargs)
async
Get all open order details.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
exc
|
str
|
Alias for the exchange client. |
required |
**kwargs
|
Exchange wrapper specific keyword arguments. |
{}
|
orders_mirror(exc, **kwargs)
async
Keeps a local mirror copy of the account open orders.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
exc
|
str
|
Alias for the exchange client. |
required |
**kwargs
|
Exchange wrapper specific keyword arguments. |
{}
|
orders_peek(exc, **kwargs)
Retrieves the local mirror copy of the account open orders.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
exc
|
str
|
Alias for the exchange client. |
required |
**kwargs
|
Exchange wrapper specific keyword arguments. |
{}
|