Run a gateway
Connect one venue and market and stay inside its rate limits.
A gateway is one gatewayd process for one venue and one market. make up starts them for you; on a server you start
each one yourself.
gatewayd --venue=bybit --market=perp --symbol=BTCUSDT --duration 20After twenty seconds it prints how many quotes, book updates and trades it received. A zero where you expect data usually means the venue changed or stopped that stream.
| Flag | Meaning |
|---|---|
--venue | a name from the venue table |
--market | spot, perp, future or option |
--symbol | the venue's own symbol, repeatable; every instrument if left out |
--channels | any of bbo,trades,depth,funding; bbo is required |
--duration | seconds to run; until stopped if left out |
--testnet | the venue's test environment, where the adapter has one |
An unknown flag is ignored without a message, so check the spelling if one seems to do nothing. --help lists the rest.
Trading
This guide covers market data, which needs no keys. Sending orders to real accounts, with key handling and reconciliation, is part of raikiri Pro.
Rate limits
Exchanges answer a burst of requests with a ban of your IP address, and that takes down every gateway on it.
config/venues.yaml keeps each venue below its limits.
Check the first lines of the log
Without a valid venues.yaml the gateway still starts, and no limits apply to any venue. It logs running unlimited.
Point RAIKIRI_CONFIG_DIR at the directory that holds the file.
Two gateways for the same venue share its limits but count separately. Lower the figures if you run both.