For the complete documentation index, see llms.txt. This page is also available as Markdown.

Crypto.com Exchange

The AI Agent SDK offers comprehensive Exchange-related features by retrieving information about all available trading pairs and their current market data from the Crypto.com Exchange. It also supports fetching real-time market data for a specified trading instrument, providing developers with valuable insights for building trading and analytics applications.

To learn more about the underlying Developer Platform functionalities, please visit Developer Platform Client SDK Exchange Module.

7.1 Get all tickers

Retrieve information about all available trading pairs and their current market data from the Crypto.com Exchange.

  • Example Query

    "Get all tickers"
  • Returns

    str: A formatted string containing information about all available tickers.
  • Example Response

    Here are some of the current tickers available:
    
    1. <example-pair>
       - Last Price: <example-price>
       - High: <example-high-price>
       - Low: <example-low-price>
       - Volume: <example-volume>
    2. <example-pair>
    ...
    
    This is just a selection of available tickers. If you would like more details or specific information regarding other tickers, please let me know!

Example Code

from crypto_com_agent_client import Agent

agent = Agent.init(
    llm_config={
        "provider": "OpenAI",
        "model": "gpt-4",
        "provider-api-key": "sk-proj-example-key",
        "temperature": "float-controlling-output-randomness",
        "transfer-limit": -1,  # -1 means no limit (unlimited), 0 disables transfers completely, any positive number (e.g. 5) allows exactly that transfer amount
    },
    blockchain_config={
        "api-key": "your-crypto.com-developer-platform-api-key",
        "private-key": "your-private-key",
        "sso-wallet-url": "your-sso-wallet-url",
        "timeout": "timeout-in-seconds-for-API-calls-default-20s")
    },
)
response = agent.interact("Get all tickers")
print(response)

7.2 Get ticker by instrument

Retrieve current market data for a specified trading instrument from the Crypto.com Exchange.

  • Arguments

  • Example Query

  • Returns

  • Errors

  • Example Response

Example Code

Last updated

Was this helpful?