quantpylib.gateway.account
Account
Bases: BaseGateway
account_balance(exc, **kwargs)
async
Retrieve balance details of the user, such as equity, margin (total, maintenance) and pnl.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
exc |
str
|
Alias for the exchange client. |
required |
**kwargs |
Exchange wrapper specific keyword arguments. |
{}
|
Returns:
Type | Description |
---|---|
dict
|
Balance details. |
account_fill_subscribe(exc, handler, **kwargs)
async
Subscribe to order fill events.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
exc |
str
|
Alias for the exchange client. |
required |
handler |
coroutine
|
A coroutine handler for the message received. |
required |
**kwargs |
Exchange wrapper specific keyword arguments. |
{}
|
account_fill_unsubscribe(exc, **kwargs)
async
Unsubscribe from order fill events.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
exc |
str
|
Alias for the exchange client. |
required |