Kraken is a San Francisco based digital currency broker. It supports about 40 crypto currencies and allows algorithmic trading with leverage and shorting. It offers a REST API and a Websocket API. For speed reasons, the Kraken plugin for Zorro uses Websocket whenever possible. Real mode and Demo mode is available, the latter for simulated trading only.
User | Primary account currency, f.i. USD or XBT |
Password | PublicKey(space)PrivateKey |
Accounts.csv example entry:
Name | Server | Account | User | Pass | Assets | CCY | Real | NFA | Plugin |
Kraken-XBT | Kraken | 0 | XBT | PublicKey PrivateKey | AssetsKraken | XBT.B8 | 1 | 14 | Kraken.dll |
The Kraken plugin requires symbols in the usual form XXX/YYY, where YYY is the counter currency and XXX the currency to trade.
Volume is per-bar volume in historical data, accumulated session volume in live data.
The Kraken plugin supports the following additional data streams:
The Kraken plugin supports the brokerCommand function with the following commands:
The following additional custom commands are supported:
Usage of the custom commands in Zorro scripts:
#define GET_ALL_BALANCES 6000
#define DO_CANCEL_ALL_ORDERS 6001
typedef struct KRAKEN_BALANCE {
char sCurrency[8];
double vBalance;
} KRAKEN_BALANCE;
... KRAKEN_BALANCE KrakenBalances[100]; brokerCommand(GET_ALL_BALANCES,KrakenBalances);
BCH/USD,0.53794,0.0001,0,0,0.0001,0.0001,-33.33,0,0.00001,-0.25,* ETH/USD,450.2,0.01,0,0,0.01,0.01,-20,0,0.00001,-0.25,* ETH/XBT,0.0292241,0.00001,0,0,0.00001,0.00001,-20,0,0.00001,-0.25,* LTC/ETH,0.13093,0.00001,0,0,0.00001,0.00001,0,0,0.00001,-0.25,* LTC/USD,179,0.01,0,0,0.01,0.01,-33.33,0,0.00001,-0.25,* LTC/XBT,0.003834,0.000001,0,0,0.000001,0.000001,-33.33,0,0.00001,-0.25,* XBT/USD,44785.8,3.3,0,0,0.01,0.01,-20,0,0.00001,-0.25,*