Exchange Rates (exchange_rates)¶
Retrieves the exchange rates from a base currency to all currencies supported by the system.
-
exchange_rates
(base_currency: str, subscribe: Optional[Union[bool, int]] = None, target_currency: Optional[str] = None, passthrough: Optional[Any] = None, req_id: Optional[int] = None) → int¶ Parameters: - base_currency (str) – Base currency (can be obtained from payout_currencies call)
- subscribe (Optional[Union[bool, int]]) – [Optional] 1 - to initiate a realtime stream of exchange rates relative to base currency.
- target_currency (Optional[str]) – [Optional] Local currency
- passthrough (Optional[Any]) – [Optional] Used to pass data through the websocket, which may be retrieved via the echo_req output field.
- req_id (Optional[int]) – [Optional] Used to map request to response.
Returns: req_id
Return type: int