Built-in Functions
Structures
Built-in Variables and Constants
Conventions
Exchanges
Korbit
Spot trading on the KRW market of the Korean exchange Korbit (API address https://api.korbit.co.kr, v2 API). It uses REST only, with no market-data or order push. Private endpoints are signed with a Korbit API key (Access Key and Secret Key). Conditional orders and order amendment are not supported.
Names and Configuration
exchange.GetName(): Korbit (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, matching the Korbit native code btc_krw.
Function Support
Not supported (the call fails with an error and returns null): exchange.ModifyOrder, exchange.CreateConditionOrder, exchange.ModifyConditionOrder, exchange.CancelConditionOrder, exchange.GetConditionOrder, exchange.GetConditionOrders, exchange.GetHistoryConditionOrders.
Served through a fallback:
exchange.GetRecords: Native periods are 1m, 5m, 15m, 30m, 1h, 4h, 1d, 1w; other periods are synthesized by the docker.
Notes
- The amount of a market buy order is the quote currency (KRW) to spend (placed as Korbit's
amt); a market sell order uses the base-currency quantity. For a queried market buy order,Amountis likewise the KRW amount, whileDealAmountis the filled base-currency quantity. - Only GTC limit orders and market orders are supported: a
tifofiocorfok, orpostOnly, fails. - Without the
symbolargument,exchange.GetOrders()queries the current trading pair only. exchange.GetMarkets()returns only the pairs whose status islaunched(listed for trading).