Skip to content

Check balance & send transaction error #8

@7JUMPER7

Description

@7JUMPER7

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).

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions