Built-in Functions
Structures
Built-in Variables and Constants
Conventions
Exchanges
Coinone
Spot trading on the KRW market of the Korean exchange Coinone (API address https://api.coinone.co.kr). It uses REST only, with no market-data or order push. Private endpoints are signed with a Coinone API key (Access Key and Secret Key).
Names and Configuration
exchange.GetName(): Coinone (Spot).
| Field | Required |
|---|---|
| Access Key | Yes |
| Secret Key | Yes |
Trading Pairs and Contract Codes
Pair examples: BTC_KRW, ETH_KRW
Trading pairs are written BASE_QUOTE, quoted in KRW.
Function Support
Not supported (the call fails with an error and returns null): exchange.ModifyOrder, exchange.ModifyConditionOrder, exchange.GetHistoryConditionOrders.
Served through a fallback:
exchange.GetRecords: Native periods are 1m, 3m, 5m, 10m, 15m, 30m, 1h, 2h, 4h, 6h, 1d, 1w, 1M; other periods are synthesized by the docker.
Notes
exchange.GetTickers()returns the tickers of all KRW-market pairs;exchange.GetMarkets()returns only the tradable KRW-market pairs (trade_statusis 1).- The amount of a market buy order is the quote currency (KRW) to spend (placed as Coinone's
amount); a market sell order uses the base-currency quantity. - Maker-only (
postOnly, limit orders only) orders are supported; thetif(IOC, FOK) option is not and reports an error. - Conditional orders use Coinone
STOP_LIMITorders and support take-profit and stop-loss; an order price after triggering is required (executing at market once triggered is not supported), and OCO is not supported; conditional orders are canceled through the same endpoint as normal orders. - The open orders returned by
exchange.GetOrders()include untriggered conditional orders (STOP_LIMIT). - The exchange's completed orders carry no order type, so historical conditional orders cannot be queried.
- When
exchange.GetConditionOrders()is called without thesymbolargument, take-profit and stop-loss cannot be told apart from the current price, and the conditional orders are returned with the generic condition type. exchange.GetHistoryOrders()reads Coinone's completed orders (completed_orders), which include filled orders only, not canceled ones; withoutlimit, at most 100 orders are returned.