-
Notifications
You must be signed in to change notification settings - Fork 8
Labels
bugSomething isn't workingSomething isn't working
Description
When I try to send buy transactions with:
result = client.buy_token(os.getenv("PRIVATE_KEY"), "<TOKEN ADDRESS>", 0.01, 5)
print(result)
It returns error:
{'success': False, 'error': 'Failed to get buy transaction: 404 - <html><body><h1>File Not Found</h1><hr><i>uWebSockets/20 Server</i></body></html>'}
Same issue with balance check method:
balance = client.GetBalance("<WALLET ADDRESS>")
print("Balance:", balance)
Returns:
AxiomTradeAPI - ERROR - Error: 404
Balance: None
I've noticed that this SDK uses https://api6.axiom.trade/batched-sol-balance endpoint for balance check, when original app uses https://axiom.trade/api/batched-sol-balance for it. But I didn't find any endpoints for buying/selling token on Network tab.
At the same time, methods like refresh_access_token_direct or subscribe_new_tokens works fine (so that's not an access_token issue).
Copilot
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working