API
Manage your bots using Mizar SDK
To use the Mizar API, visit https://app.mizar.com/dex/api to create your API keys. These keys are required to authenticate and connect to Mizar from external software.
Update Token List
import httpx
# Replace these with your actual values
API_KEY = "your_api_key_here"
BOT_ID = "your_bot_id_here" (you can find it here https://app.mizar.com/dex/bots/volatility-bot)
ADDRESSES = ["tokenAddress1", "tokenAddress2"]
url = "https://api.mizar.com/api/v1/dex/volatility-bot/update-token-list"
headers = {
"mizar-api-key": API_KEY
}
payload = {
"bot_id": BOT_ID,
"addresses": ADDRESSES
}
response = httpx.post(url, headers=headers, json=payload)
if response.status_code == 200:
print("Token list updated successfully:", response.json())
else:
print(f"Failed to update token list: {response.status_code}, {response.text}")
Last updated