Quick Start
Six steps take you from registration to your first live robot; each step links to the details.
1. Register
Register and log in on the sign-up page. Adding an exchange asks for your account password (the exchange keys are encrypted with it in the browser); users who log in with a third-party account and have no password yet are asked to set one first. See Key Security.
2. Add an exchange account
Create an API key on the exchange's website (enable only read and trade permissions, never withdrawal), then click "Add Exchange" on the Exchange page, choose the exchange and fill in the keys. For a first try, use the exchange's demo trading or a small sub-account. For the steps and every field see Exchange.
3. Deploy a docker
The docker is the program that runs strategies; every live robot runs on one. Rent one with a click (One-Click Docker Rental) or deploy it on your own server (Manual Deployment of Docker).
4. Write a strategy
On the new strategy page, choose a programming language, paste in the minimal strategy below and save. It reads the market data and the account every 5 seconds and shows them in the status bar; it does not place orders. A strategy is an entry function main() with a main loop (see Strategy Structure); all functions are listed in API Quick Reference, and the editor is described in Strategy Editor. You can also start from a public strategy in the strategy square.
5. Backtest
In the backtest panel of the strategy editing page, choose the exchange, trading pair, time range and K-line period, then start a backtest and check the profit curve, trades and logs. Go live only after the backtest looks right; see Overview and Starting a Backtest.
6. Create a live robot
On the create robot page, choose the strategy, a docker and the exchange account, set the strategy parameters and start it. Live robots are billed by the hour, so the account needs a balance before you start; see Live Robot Billing and Top-up. Status, logs and profit are on the robot page; see Live Trading.
Read on as needed: "Development Tools" covers editing and debugging, "Advanced Topics" covers rate limiting, communication between robots, multi-threading and on-chain trading, and "Extended API Interface" covers driving the platform from programs or AI assistants.
Examples
Minimal runnable strategy: shows the market data and the account in the status bar every 5 seconds without placing orders; runs as is in backtesting and live trading.
javascript
function main() {
Log("exchange:", exchange.GetName(), "pair:", exchange.GetCurrency())
while (true) {
var ticker = exchange.GetTicker()
var account = exchange.GetAccount()
if (ticker && account) {
LogStatus(_D(), "last:", ticker.Last,
"quote available:", account.Balance, "coins available:", account.Stocks)
}
Sleep(5000)
}
}
python
def main():
Log("exchange:", exchange.GetName(), "pair:", exchange.GetCurrency())
while True:
ticker = exchange.GetTicker()
account = exchange.GetAccount()
if ticker and account:
LogStatus(_D(), "last:", ticker["Last"],
"quote available:", account["Balance"], "coins available:", account["Stocks"])
Sleep(5000)
rust
fn main() {
Log!("exchange:", exchange.GetName(), "pair:", exchange.GetCurrency());
loop {
if let (Ok(ticker), Ok(account)) = (exchange.GetTicker(None), exchange.GetAccount()) {
LogStatus!(_D(None), "last:", ticker.Last,
"quote available:", account.Balance, "coins available:", account.Stocks);
}
Sleep(5000);
}
}