quantpylib.gateway.exchange
Exchange
Bases: BaseGateway
contract_specifications(exc, **kwargs)
async
Retrieve the contract's trading rules from the exchange.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
exc
|
str
|
Alias for the exchange client. |
required |
**kwargs
|
Exchange wrapper specific keyword arguments. |
{}
|
Returns:
Type | Description |
---|---|
dict
|
Dictionary containing contract specifications such as price precision, |
quantity precision and minimum notional order value. |
get_exchange_server_timestamp(exc, **kwargs)
Retrieve the server timestamp from the exchange.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
exc
|
str
|
Alias for the exchange client. |
required |
**kwargs
|
Exchange wrapper specific keyword arguments. |
{}
|
Returns:
Type | Description |
---|---|
int
|
The server timestamp from the exchange. |
get_exchange_tz(exc, **kwargs)
Get the timezone for a specific exchange.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
exc
|
str
|
Alias for the exchange client. |
required |
**kwargs
|
Exchange wrapper specific keyword arguments. |
{}
|
Returns:
Type | Description |
---|---|
str
|
Timezone of the exchange. |