Contracts For Symbol (contracts_for)

For a given symbol, get the list of currently available contracts, and the latest barrier and duration limits for each contract.

contracts_for(contracts_for: str, currency: Optional[str] = None, landing_company: Optional[str] = None, product_type: Optional[str] = None, passthrough: Optional[Any] = None, req_id: Optional[int] = None) → int
Parameters:
  • contracts_for (str) – The short symbol name (obtained from active_symbols call).
  • currency (Optional[str]) – [Optional] Currency of the contract’s stake and payout (obtained from payout_currencies call).
  • landing_company (Optional[str]) – [Optional] Indicates which landing company to get a list of contracts for. If you are logged in, your account’s landing company will override this field.
  • product_type (Optional[str]) – [Optional] If you specify this field, only contracts tradable through that contract type will be returned.
  • 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

Example

binary.api.contracts_for(
    'R_50'
    currency='USD'
    landing_company='svg'
    product_type='basic'
)