quantpylib.gateway.positions
Positions
Bases: BaseGateway
positions_get(exc, **kwargs)
async
Get all open position details.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
exc
|
str
|
Alias for the exchange client. |
required |
**kwargs
|
Exchange wrapper specific keyword arguments. |
{}
|
positions_mirror(exc, **kwargs)
async
Keeps a local mirror copy of the account open positons.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
exc
|
str
|
Alias for the exchange client. |
required |
**kwargs
|
Exchange wrapper specific keyword arguments. |
{}
|
positions_peek(exc, **kwargs)
Retrieves the local mirror copy of the account open positions.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
exc
|
str
|
Alias for the exchange client. |
required |
**kwargs
|
Exchange wrapper specific keyword arguments. |
{}
|