Exchange Module

Exchange module handles operations related to exchange data retrieval.

To learn more about how to use the AI Agent SDK to interact with the wallet module, please visit AI Agent SDK Crypto.com Exchange.

8.1 Get All Tickers

Retrieves all available tickers from the Crypto.com Exchange (Chain agnostic).

Function Name

get_all_tickers
  • Example Code

    from crypto_com_developer_platform_client import Exchange
    
    tickers = Exchange.get_all_tickers()
    print(tickers)

8.2 Get Ticker By Instrument

Retrieves ticker information for a specific trading instrument from the Crypto.com Exchange (Chain agnostic).

Function Name

get_ticker_by_instrument
  • Arguments

    instrument_name (str): The name of the instrument to get ticker information for.
  • Example Code

    from crypto_com_developer_platform_client import Exchange
    
    ticker = Exchange.get_ticker_by_instrument('example-instrument')
    print(ticker)

Last updated

Was this helpful?