Crypto.com Exchange
7.1 Get all tickers
"Get all tickers"
str: A formatted string containing information about all available tickers.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!
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
Last updated
Was this helpful?