Connecting Trading Bots
Amabit API keys are fully compatible with the Binance API. You can use any programming language or library that supports the Binance API to connect your trading bots.
How It Works
Your Bot → Amabit API Keys → Binance API → Trade ExecutedYour bot connects to the Binance API using the API key and secret generated in Amabit. All orders are routed through the Amabit broker infrastructure to Binance.
Getting Started
- Create an API key with Read + Trade permissions
- Set an IP allowlist for the server running your bot
- Copy the API Key and Secret Key
- Configure your bot with these credentials
Language Examples
Python
Using the python-binance library:
python
from binance.client import Client
client = Client(
api_key='YOUR_AMABIT_API_KEY',
api_secret='YOUR_AMABIT_SECRET_KEY'
)
# Place a market buy order
order = client.create_order(
symbol='BTCUSDT',
side='BUY',
type='MARKET',
quantity=0.001
)Node.js
Using the node-binance-api library:
javascript
const Binance = require('node-binance-api');
const binance = new Binance().options({
APIKEY: 'YOUR_AMABIT_API_KEY',
APISECRET: 'YOUR_AMABIT_SECRET_KEY'
});
// Place a market buy order
binance.marketBuy('BTCUSDT', 0.001);Go
Using the go-binance library:
go
client := binance.NewClient(
"YOUR_AMABIT_API_KEY",
"YOUR_AMABIT_SECRET_KEY",
)
order, err := client.NewCreateOrderService().
Symbol("BTCUSDT").
Side(binance.SideTypeBuy).
Type(binance.OrderTypeMarket).
Quantity("0.001").
Do(context.Background())Available Endpoints
Since Amabit is an official Binance broker, all standard Binance API endpoints are available:
- Market data — Prices, order book, trades, klines
- Spot trading — Orders, fills, balances
- Futures trading — Positions, leverage, funding rates
- Account management — Balances, transaction history
Key Differences from Direct Binance
- Your API keys are generated through Amabit, not Binance directly
- Trades are executed with broker attribution
- All standard Binance API features and rate limits apply
- Low latency through direct broker infrastructure connection
Tips
- Test with small amounts first — Verify your bot works correctly before scaling
- Handle errors gracefully — Network issues and order rejections happen
- Respect rate limits — Binance rate limits apply (1200 requests/minute for most endpoints)
- Use WebSocket for real-time data — More efficient than polling REST endpoints