Live Support Live Support

  • Green (Dark)
  • Blue (Dark)
  • Gray (Dark)
  • Green (Light)
  • Blue (Light)
  • Purple (Light)

API Document



Futures API



WebSocket API


REST API

API Keys


Futures API Keys are independent from API 2.0 Keys. Generate them in Futures APIKeys .


Spot API (2.0)



WebSocket API


REST API

Demos: PHP, JAVA, NODEJS, PYTHON, GO, CSHARP, PERL

Trading Pairs API

Return all the trading pairs supported by gate.io

URL: https://data.gateio.co/api2/1/pairs

Return data example:

    # Request
    GET: https://data.gateio.co/api2/1/pairs
    # Response
        [
                "eth_btc","etc_btc","etc_eth","zec_btc","dash_btc","ltc_btc","bcc_btc","qtum_btc",
                "qtum_eth","xrp_btc","zrx_btc","zrx_eth","dnt_eth","dpy_eth","oax_eth","lrc_eth",
                "lrc_btc","pst_eth","tnt_eth","snt_eth","snt_btc","omg_eth","omg_btc","pay_eth",
                "pay_btc","bat_eth","cvc_eth","storj_eth","storj_btc","eos_eth","eos_btc"
        ]
            

Market Info API

Returns all markets fee, minimum order total amount, price decimal places.

URL: https://data.gateio.co/api2/1/marketinfo

Return data example:

    # Request
    GET: https://data.gateio.co/api2/1/marketinfo
    # Response
   {
        "result": "true",
        "pairs": [
                      {
                            "eth_btc": {
                                "decimal_places": 6,
                                "min_amount": 0.0001,
                                "min_amount_a": 0.001,
                                "min_amount_b": 0.0001,
                                "fee": 0.2,
								"trade_disabled ": 0
                            }
                      },
                      {
                            "zec_btc": {
                                "decimal_places": 4,
                                "min_amount": 0.0001,
                                "min_amount_a": 0.0001,
                                "min_amount_b": 0.0001,
                                "fee": 0.2,
								"trade_disabled ": 0
                            }
                      }
            ]
    }
            

CoinInfo

Return coin info include deposit, withdraw, trade status

URL: https://data.gateio.co/api2/1/coininfo

Return data example:

    # Request
    GET: https://data.gateio.co/api2/1/coininfo
    # Response
   {
        "result": "true",
        "pairs": [
                      {
                            "USDT": {
                                "delisted": 0,
                                "withdraw_disabled": 0,
								"withdraw_delayed ": 0,
                                "deposit_disabled": 0,
                                "trade_disabled": 0,
                            }
                      }
            ]
    }
            

Market Details API

Returns market details including pair, coin name, coin symbol, last price, trading volume, coin supply, coin market cap, price trend, etc.

URL: https://data.gateio.co/api2/1/marketlist

Return data example:

    # Request
    GET: https://data.gateio.co/api2/1/marketlist
    # Response
       {
        "result": "true",
        "data": [
                {
                    "no": 1,
                    "symbol": "LTC",
                    "name": "Litecoin",
                    "name_en": "Litecoin",
                    "name_cn": "莱特币",
                    "pair": "ltc_btc",
                    "rate": "418.00",
                    "vol_a": 168120.2,
                    "vol_b": "65,616,561",
                    "curr_a": "LTC",
                    "curr_b": "BTC",
                    "curr_suffix": " BTC",
                    "rate_percent": "19.73",
                    "trend": "up",
                    "supply": 25760300,
                    "marketcap": "10,767,805,404",
                    "plot": null
                },
                {
                    "no": 2,
                    "symbol": "ETH",
                    "name": "ETH",
                    "name_en": "ETH",
                    "name_cn": "以太币",
                    "pair": "etc_eth",
                    "rate": "0.7450",
                    "vol_a": 65227328.3,
                    "vol_b": "51,041,999",
                    "curr_a": "etc",
                    "curr_b": "eth",
                    "curr_suffix": " eth",
                    "rate_percent": "-1.84",
                    "trend": "up",
                    "supply": 1050000000,
                    "marketcap": "782,250,000",
                    "plot": null
                }
            ]
    }
            

Tickers API

returns the tickers for all the supported trading pairs at once, cached in 10 seconds:

URL: https://data.gateio.co/api2/1/tickers

Return data example:

    # Request
    GET: https://data.gateio.co/api2/1/tickers
    # Response
      {
          "eth_btc": {
                "result": "true",
                "last": 0.1,
                "lowestAsk": 0.1,
                "highestBid": "0.00000000",
                "percentChange": 0,
                "baseVolume": 0.001,
                "quoteVolume": 0.01,
                "high24hr": 0.1,
                "low24hr": 0.1
            },
        "xrp_btc": {
                "result": "true",
                "last": "0.00004720",
                "lowestAsk": "0.00005620",
                "highestBid": "0.00004550",
                "percentChange": -7.4510907045863,
                "baseVolume": 0.5324,
                "quoteVolume": 11417.333,
                "high24hr": "0.00005580",
                "low24hr": "0.00004560"
            }
        }
            

Ticker API

returns the tickers for all the supported trading pairs at once, cached in 10 seconds:

URL: https://data.gateio.co/api2/1/ticker/[CURR_A]_[CURR_B]

Replace [CURR_A] and [CURR_B] with the selected currencies.

Links:

  1. https://data.gateio.co/api2/1/ticker/usdt_cny
  2. https://data.gateio.co/api2/1/ticker/usdt_cnyx
  3. https://data.gateio.co/api2/1/ticker/btc_cnyx
  4. https://data.gateio.co/api2/1/ticker/eth_cnyx
  5. https://data.gateio.co/api2/1/ticker/eos_cnyx
  6. https://data.gateio.co/api2/1/ticker/bch_cnyx
  7. https://data.gateio.co/api2/1/ticker/xrp_cnyx
  8. https://data.gateio.co/api2/1/ticker/doge_cnyx
  9. https://data.gateio.co/api2/1/ticker/tips_cnyx
  10. https://data.gateio.co/api2/1/ticker/btc_usdt
  11. https://data.gateio.co/api2/1/ticker/bch_usdt
  12. https://data.gateio.co/api2/1/ticker/eth_usdt
  13. https://data.gateio.co/api2/1/ticker/etc_usdt
  14. https://data.gateio.co/api2/1/ticker/qtum_usdt
  15. https://data.gateio.co/api2/1/ticker/ltc_usdt
  16. https://data.gateio.co/api2/1/ticker/dash_usdt
  17. https://data.gateio.co/api2/1/ticker/zec_usdt
  18. https://data.gateio.co/api2/1/ticker/btm_usdt
  19. https://data.gateio.co/api2/1/ticker/eos_usdt
  20. https://data.gateio.co/api2/1/ticker/req_usdt
  21. https://data.gateio.co/api2/1/ticker/snt_usdt
  22. https://data.gateio.co/api2/1/ticker/omg_usdt
  23. https://data.gateio.co/api2/1/ticker/pay_usdt
  24. https://data.gateio.co/api2/1/ticker/cvc_usdt
  25. https://data.gateio.co/api2/1/ticker/zrx_usdt
  26. https://data.gateio.co/api2/1/ticker/tnt_usdt
  27. https://data.gateio.co/api2/1/ticker/xmr_usdt
  28. https://data.gateio.co/api2/1/ticker/xrp_usdt
  29. https://data.gateio.co/api2/1/ticker/doge_usdt
  30. https://data.gateio.co/api2/1/ticker/bat_usdt
  31. https://data.gateio.co/api2/1/ticker/pst_usdt
  32. https://data.gateio.co/api2/1/ticker/btg_usdt
  33. https://data.gateio.co/api2/1/ticker/dpy_usdt
  34. https://data.gateio.co/api2/1/ticker/lrc_usdt
  35. https://data.gateio.co/api2/1/ticker/storj_usdt
  36. https://data.gateio.co/api2/1/ticker/rdn_usdt
  37. https://data.gateio.co/api2/1/ticker/stx_usdt
  38. https://data.gateio.co/api2/1/ticker/knc_usdt
  39. https://data.gateio.co/api2/1/ticker/link_usdt
  40. https://data.gateio.co/api2/1/ticker/cdt_usdt
  41. https://data.gateio.co/api2/1/ticker/ae_usdt
  42. https://data.gateio.co/api2/1/ticker/ae_eth
  43. https://data.gateio.co/api2/1/ticker/ae_btc
  44. https://data.gateio.co/api2/1/ticker/cdt_eth
  45. https://data.gateio.co/api2/1/ticker/rdn_eth
  46. https://data.gateio.co/api2/1/ticker/stx_eth
  47. https://data.gateio.co/api2/1/ticker/knc_eth
  48. https://data.gateio.co/api2/1/ticker/link_eth
  49. https://data.gateio.co/api2/1/ticker/req_eth
  50. https://data.gateio.co/api2/1/ticker/rcn_eth
  51. https://data.gateio.co/api2/1/ticker/trx_eth
  52. https://data.gateio.co/api2/1/ticker/arn_eth
  53. https://data.gateio.co/api2/1/ticker/kick_eth
  54. https://data.gateio.co/api2/1/ticker/bnt_eth
  55. https://data.gateio.co/api2/1/ticker/vet_eth
  56. https://data.gateio.co/api2/1/ticker/mco_eth
  57. https://data.gateio.co/api2/1/ticker/fun_eth
  58. https://data.gateio.co/api2/1/ticker/data_eth
  59. https://data.gateio.co/api2/1/ticker/rlc_eth
  60. https://data.gateio.co/api2/1/ticker/rlc_usdt
  61. https://data.gateio.co/api2/1/ticker/zsc_eth
  62. https://data.gateio.co/api2/1/ticker/wings_eth
  63. https://data.gateio.co/api2/1/ticker/mda_eth
  64. https://data.gateio.co/api2/1/ticker/rcn_usdt
  65. https://data.gateio.co/api2/1/ticker/trx_usdt
  66. https://data.gateio.co/api2/1/ticker/kick_usdt
  67. https://data.gateio.co/api2/1/ticker/vet_usdt
  68. https://data.gateio.co/api2/1/ticker/mco_usdt
  69. https://data.gateio.co/api2/1/ticker/fun_usdt
  70. https://data.gateio.co/api2/1/ticker/data_usdt
  71. https://data.gateio.co/api2/1/ticker/zsc_usdt
  72. https://data.gateio.co/api2/1/ticker/mda_usdt
  73. https://data.gateio.co/api2/1/ticker/xtz_usdt
  74. https://data.gateio.co/api2/1/ticker/xtz_btc
  75. https://data.gateio.co/api2/1/ticker/xtz_eth
  76. https://data.gateio.co/api2/1/ticker/gnt_usdt
  77. https://data.gateio.co/api2/1/ticker/gnt_eth
  78. https://data.gateio.co/api2/1/ticker/gem_usdt
  79. https://data.gateio.co/api2/1/ticker/gem_eth
  80. https://data.gateio.co/api2/1/ticker/rfr_usdt
  81. https://data.gateio.co/api2/1/ticker/rfr_eth
  82. https://data.gateio.co/api2/1/ticker/dadi_usdt
  83. https://data.gateio.co/api2/1/ticker/dadi_eth
  84. https://data.gateio.co/api2/1/ticker/abt_usdt
  85. https://data.gateio.co/api2/1/ticker/abt_eth
  86. https://data.gateio.co/api2/1/ticker/ledu_btc
  87. https://data.gateio.co/api2/1/ticker/ledu_eth
  88. https://data.gateio.co/api2/1/ticker/ost_usdt
  89. https://data.gateio.co/api2/1/ticker/ost_eth
  90. https://data.gateio.co/api2/1/ticker/xlm_usdt
  91. https://data.gateio.co/api2/1/ticker/xlm_eth
  92. https://data.gateio.co/api2/1/ticker/xlm_btc
  93. https://data.gateio.co/api2/1/ticker/mobi_usdt
  94. https://data.gateio.co/api2/1/ticker/mobi_eth
  95. https://data.gateio.co/api2/1/ticker/mobi_btc
  96. https://data.gateio.co/api2/1/ticker/ocn_usdt
  97. https://data.gateio.co/api2/1/ticker/ocn_eth
  98. https://data.gateio.co/api2/1/ticker/ocn_btc
  99. https://data.gateio.co/api2/1/ticker/zpt_usdt
  100. https://data.gateio.co/api2/1/ticker/zpt_eth
  101. https://data.gateio.co/api2/1/ticker/zpt_btc
  102. https://data.gateio.co/api2/1/ticker/cofi_usdt
  103. https://data.gateio.co/api2/1/ticker/cofi_eth
  104. https://data.gateio.co/api2/1/ticker/jnt_usdt
  105. https://data.gateio.co/api2/1/ticker/jnt_eth
  106. https://data.gateio.co/api2/1/ticker/jnt_btc
  107. https://data.gateio.co/api2/1/ticker/blz_usdt
  108. https://data.gateio.co/api2/1/ticker/blz_eth
  109. https://data.gateio.co/api2/1/ticker/gxs_usdt
  110. https://data.gateio.co/api2/1/ticker/gxs_btc
  111. https://data.gateio.co/api2/1/ticker/mtn_usdt
  112. https://data.gateio.co/api2/1/ticker/mtn_eth
  113. https://data.gateio.co/api2/1/ticker/ruff_usdt
  114. https://data.gateio.co/api2/1/ticker/ruff_eth
  115. https://data.gateio.co/api2/1/ticker/ruff_btc
  116. https://data.gateio.co/api2/1/ticker/tnc_usdt
  117. https://data.gateio.co/api2/1/ticker/tnc_eth
  118. https://data.gateio.co/api2/1/ticker/tnc_btc
  119. https://data.gateio.co/api2/1/ticker/zil_usdt
  120. https://data.gateio.co/api2/1/ticker/zil_eth
  121. https://data.gateio.co/api2/1/ticker/bto_usdt
  122. https://data.gateio.co/api2/1/ticker/bto_eth
  123. https://data.gateio.co/api2/1/ticker/theta_usdt
  124. https://data.gateio.co/api2/1/ticker/theta_eth
  125. https://data.gateio.co/api2/1/ticker/ddd_usdt
  126. https://data.gateio.co/api2/1/ticker/ddd_eth
  127. https://data.gateio.co/api2/1/ticker/ddd_btc
  128. https://data.gateio.co/api2/1/ticker/mkr_usdt
  129. https://data.gateio.co/api2/1/ticker/mkr_eth
  130. https://data.gateio.co/api2/1/ticker/dai_usdt
  131. https://data.gateio.co/api2/1/ticker/smt_usdt
  132. https://data.gateio.co/api2/1/ticker/smt_eth
  133. https://data.gateio.co/api2/1/ticker/mdt_usdt
  134. https://data.gateio.co/api2/1/ticker/mdt_eth
  135. https://data.gateio.co/api2/1/ticker/mdt_btc
  136. https://data.gateio.co/api2/1/ticker/mana_usdt
  137. https://data.gateio.co/api2/1/ticker/mana_eth
  138. https://data.gateio.co/api2/1/ticker/lun_usdt
  139. https://data.gateio.co/api2/1/ticker/lun_eth
  140. https://data.gateio.co/api2/1/ticker/salt_usdt
  141. https://data.gateio.co/api2/1/ticker/salt_eth
  142. https://data.gateio.co/api2/1/ticker/fuel_usdt
  143. https://data.gateio.co/api2/1/ticker/fuel_eth
  144. https://data.gateio.co/api2/1/ticker/elf_usdt
  145. https://data.gateio.co/api2/1/ticker/elf_eth
  146. https://data.gateio.co/api2/1/ticker/drgn_usdt
  147. https://data.gateio.co/api2/1/ticker/drgn_eth
  148. https://data.gateio.co/api2/1/ticker/gtc_usdt
  149. https://data.gateio.co/api2/1/ticker/gtc_eth
  150. https://data.gateio.co/api2/1/ticker/gtc_btc
  151. https://data.gateio.co/api2/1/ticker/qlc_usdt
  152. https://data.gateio.co/api2/1/ticker/qlc_btc
  153. https://data.gateio.co/api2/1/ticker/qlc_eth
  154. https://data.gateio.co/api2/1/ticker/dbc_usdt
  155. https://data.gateio.co/api2/1/ticker/dbc_btc
  156. https://data.gateio.co/api2/1/ticker/dbc_eth
  157. https://data.gateio.co/api2/1/ticker/bnty_usdt
  158. https://data.gateio.co/api2/1/ticker/bnty_eth
  159. https://data.gateio.co/api2/1/ticker/lend_usdt
  160. https://data.gateio.co/api2/1/ticker/lend_eth
  161. https://data.gateio.co/api2/1/ticker/icx_usdt
  162. https://data.gateio.co/api2/1/ticker/icx_eth
  163. https://data.gateio.co/api2/1/ticker/btf_usdt
  164. https://data.gateio.co/api2/1/ticker/btf_btc
  165. https://data.gateio.co/api2/1/ticker/ada_usdt
  166. https://data.gateio.co/api2/1/ticker/ada_btc
  167. https://data.gateio.co/api2/1/ticker/lsk_usdt
  168. https://data.gateio.co/api2/1/ticker/lsk_btc
  169. https://data.gateio.co/api2/1/ticker/waves_usdt
  170. https://data.gateio.co/api2/1/ticker/waves_btc
  171. https://data.gateio.co/api2/1/ticker/bifi_usdt
  172. https://data.gateio.co/api2/1/ticker/bifi_btc
  173. https://data.gateio.co/api2/1/ticker/mds_eth
  174. https://data.gateio.co/api2/1/ticker/mds_usdt
  175. https://data.gateio.co/api2/1/ticker/dgd_usdt
  176. https://data.gateio.co/api2/1/ticker/dgd_eth
  177. https://data.gateio.co/api2/1/ticker/qash_usdt
  178. https://data.gateio.co/api2/1/ticker/qash_eth
  179. https://data.gateio.co/api2/1/ticker/qash_btc
  180. https://data.gateio.co/api2/1/ticker/powr_usdt
  181. https://data.gateio.co/api2/1/ticker/powr_eth
  182. https://data.gateio.co/api2/1/ticker/powr_btc
  183. https://data.gateio.co/api2/1/ticker/fil_usdt
  184. https://data.gateio.co/api2/1/ticker/bcd_usdt
  185. https://data.gateio.co/api2/1/ticker/bcd_btc
  186. https://data.gateio.co/api2/1/ticker/sbtc_usdt
  187. https://data.gateio.co/api2/1/ticker/sbtc_btc
  188. https://data.gateio.co/api2/1/ticker/god_usdt
  189. https://data.gateio.co/api2/1/ticker/god_btc
  190. https://data.gateio.co/api2/1/ticker/bcx_usdt
  191. https://data.gateio.co/api2/1/ticker/bcx_btc
  192. https://data.gateio.co/api2/1/ticker/qsp_usdt
  193. https://data.gateio.co/api2/1/ticker/qsp_eth
  194. https://data.gateio.co/api2/1/ticker/ink_btc
  195. https://data.gateio.co/api2/1/ticker/ink_usdt
  196. https://data.gateio.co/api2/1/ticker/ink_eth
  197. https://data.gateio.co/api2/1/ticker/ink_qtum
  198. https://data.gateio.co/api2/1/ticker/med_qtum
  199. https://data.gateio.co/api2/1/ticker/med_eth
  200. https://data.gateio.co/api2/1/ticker/med_usdt
  201. https://data.gateio.co/api2/1/ticker/bot_qtum
  202. https://data.gateio.co/api2/1/ticker/bot_usdt
  203. https://data.gateio.co/api2/1/ticker/bot_eth
  204. https://data.gateio.co/api2/1/ticker/qbt_qtum
  205. https://data.gateio.co/api2/1/ticker/qbt_eth
  206. https://data.gateio.co/api2/1/ticker/qbt_usdt
  207. https://data.gateio.co/api2/1/ticker/tsl_qtum
  208. https://data.gateio.co/api2/1/ticker/tsl_usdt
  209. https://data.gateio.co/api2/1/ticker/gnx_usdt
  210. https://data.gateio.co/api2/1/ticker/gnx_eth
  211. https://data.gateio.co/api2/1/ticker/neo_usdt
  212. https://data.gateio.co/api2/1/ticker/gas_usdt
  213. https://data.gateio.co/api2/1/ticker/neo_btc
  214. https://data.gateio.co/api2/1/ticker/gas_btc
  215. https://data.gateio.co/api2/1/ticker/iota_usdt
  216. https://data.gateio.co/api2/1/ticker/iota_btc
  217. https://data.gateio.co/api2/1/ticker/nas_usdt
  218. https://data.gateio.co/api2/1/ticker/nas_eth
  219. https://data.gateio.co/api2/1/ticker/nas_btc
  220. https://data.gateio.co/api2/1/ticker/eth_btc
  221. https://data.gateio.co/api2/1/ticker/etc_btc
  222. https://data.gateio.co/api2/1/ticker/etc_eth
  223. https://data.gateio.co/api2/1/ticker/zec_btc
  224. https://data.gateio.co/api2/1/ticker/dash_btc
  225. https://data.gateio.co/api2/1/ticker/ltc_btc
  226. https://data.gateio.co/api2/1/ticker/bch_btc
  227. https://data.gateio.co/api2/1/ticker/btg_btc
  228. https://data.gateio.co/api2/1/ticker/qtum_btc
  229. https://data.gateio.co/api2/1/ticker/qtum_eth
  230. https://data.gateio.co/api2/1/ticker/xrp_btc
  231. https://data.gateio.co/api2/1/ticker/doge_btc
  232. https://data.gateio.co/api2/1/ticker/xmr_btc
  233. https://data.gateio.co/api2/1/ticker/zrx_btc
  234. https://data.gateio.co/api2/1/ticker/zrx_eth
  235. https://data.gateio.co/api2/1/ticker/dnt_eth
  236. https://data.gateio.co/api2/1/ticker/dpy_eth
  237. https://data.gateio.co/api2/1/ticker/oax_btc
  238. https://data.gateio.co/api2/1/ticker/oax_usdt
  239. https://data.gateio.co/api2/1/ticker/oax_eth
  240. https://data.gateio.co/api2/1/ticker/rep_eth
  241. https://data.gateio.co/api2/1/ticker/lrc_eth
  242. https://data.gateio.co/api2/1/ticker/lrc_btc
  243. https://data.gateio.co/api2/1/ticker/pst_eth
  244. https://data.gateio.co/api2/1/ticker/bcdn_eth
  245. https://data.gateio.co/api2/1/ticker/bcdn_usdt
  246. https://data.gateio.co/api2/1/ticker/tnt_eth
  247. https://data.gateio.co/api2/1/ticker/snt_eth
  248. https://data.gateio.co/api2/1/ticker/snt_btc
  249. https://data.gateio.co/api2/1/ticker/btm_eth
  250. https://data.gateio.co/api2/1/ticker/btm_btc
  251. https://data.gateio.co/api2/1/ticker/snet_eth
  252. https://data.gateio.co/api2/1/ticker/snet_usdt
  253. https://data.gateio.co/api2/1/ticker/llt_snet
  254. https://data.gateio.co/api2/1/ticker/omg_eth
  255. https://data.gateio.co/api2/1/ticker/omg_btc
  256. https://data.gateio.co/api2/1/ticker/pay_eth
  257. https://data.gateio.co/api2/1/ticker/pay_btc
  258. https://data.gateio.co/api2/1/ticker/bat_eth
  259. https://data.gateio.co/api2/1/ticker/bat_btc
  260. https://data.gateio.co/api2/1/ticker/cvc_eth
  261. https://data.gateio.co/api2/1/ticker/storj_eth
  262. https://data.gateio.co/api2/1/ticker/storj_btc
  263. https://data.gateio.co/api2/1/ticker/eos_eth
  264. https://data.gateio.co/api2/1/ticker/eos_btc
  265. https://data.gateio.co/api2/1/ticker/bts_usdt
  266. https://data.gateio.co/api2/1/ticker/bts_btc
  267. https://data.gateio.co/api2/1/ticker/tips_eth
  268. https://data.gateio.co/api2/1/ticker/gt_btc
  269. https://data.gateio.co/api2/1/ticker/gt_usdt
  270. https://data.gateio.co/api2/1/ticker/xem_eth
  271. https://data.gateio.co/api2/1/ticker/xem_usdt
  272. https://data.gateio.co/api2/1/ticker/xem_btc
  273. https://data.gateio.co/api2/1/ticker/bu_usdt
  274. https://data.gateio.co/api2/1/ticker/bu_eth
  275. https://data.gateio.co/api2/1/ticker/bu_btc
  276. https://data.gateio.co/api2/1/ticker/bchsv_usdt
  277. https://data.gateio.co/api2/1/ticker/bchsv_cnyx
  278. https://data.gateio.co/api2/1/ticker/bchsv_btc
  279. https://data.gateio.co/api2/1/ticker/dcr_usdt
  280. https://data.gateio.co/api2/1/ticker/dcr_btc
  281. https://data.gateio.co/api2/1/ticker/bcn_usdt
  282. https://data.gateio.co/api2/1/ticker/bcn_btc
  283. https://data.gateio.co/api2/1/ticker/xmc_usdt
  284. https://data.gateio.co/api2/1/ticker/xmc_btc
  285. https://data.gateio.co/api2/1/ticker/pps_usdt
  286. https://data.gateio.co/api2/1/ticker/atp_usdt
  287. https://data.gateio.co/api2/1/ticker/atp_eth
  288. https://data.gateio.co/api2/1/ticker/boe_eth
  289. https://data.gateio.co/api2/1/ticker/boe_usdt
  290. https://data.gateio.co/api2/1/ticker/nbot_eth
  291. https://data.gateio.co/api2/1/ticker/nbot_usdt
  292. https://data.gateio.co/api2/1/ticker/ply_eth
  293. https://data.gateio.co/api2/1/ticker/medx_usdt
  294. https://data.gateio.co/api2/1/ticker/medx_eth
  295. https://data.gateio.co/api2/1/ticker/grin_usdt
  296. https://data.gateio.co/api2/1/ticker/grin_eth
  297. https://data.gateio.co/api2/1/ticker/grin_btc
  298. https://data.gateio.co/api2/1/ticker/beam_usdt
  299. https://data.gateio.co/api2/1/ticker/beam_eth
  300. https://data.gateio.co/api2/1/ticker/beam_btc
  301. https://data.gateio.co/api2/1/ticker/vtho_eth
  302. https://data.gateio.co/api2/1/ticker/btt_usdt
  303. https://data.gateio.co/api2/1/ticker/btt_eth
  304. https://data.gateio.co/api2/1/ticker/tfuel_eth
  305. https://data.gateio.co/api2/1/ticker/tfuel_usdt
  306. https://data.gateio.co/api2/1/ticker/celr_eth
  307. https://data.gateio.co/api2/1/ticker/celr_usdt
  308. https://data.gateio.co/api2/1/ticker/cs_eth
  309. https://data.gateio.co/api2/1/ticker/cs_usdt
  310. https://data.gateio.co/api2/1/ticker/man_eth
  311. https://data.gateio.co/api2/1/ticker/man_usdt
  312. https://data.gateio.co/api2/1/ticker/rem_eth
  313. https://data.gateio.co/api2/1/ticker/rem_usdt
  314. https://data.gateio.co/api2/1/ticker/lym_eth
  315. https://data.gateio.co/api2/1/ticker/lym_btc
  316. https://data.gateio.co/api2/1/ticker/lym_usdt
  317. https://data.gateio.co/api2/1/ticker/instar_eth
  318. https://data.gateio.co/api2/1/ticker/ong_eth
  319. https://data.gateio.co/api2/1/ticker/ong_usdt
  320. https://data.gateio.co/api2/1/ticker/ont_eth
  321. https://data.gateio.co/api2/1/ticker/ont_usdt
  322. https://data.gateio.co/api2/1/ticker/bft_eth
  323. https://data.gateio.co/api2/1/ticker/bft_usdt
  324. https://data.gateio.co/api2/1/ticker/iht_eth
  325. https://data.gateio.co/api2/1/ticker/iht_usdt
  326. https://data.gateio.co/api2/1/ticker/senc_eth
  327. https://data.gateio.co/api2/1/ticker/senc_usdt
  328. https://data.gateio.co/api2/1/ticker/tomo_eth
  329. https://data.gateio.co/api2/1/ticker/tomo_usdt
  330. https://data.gateio.co/api2/1/ticker/elec_eth
  331. https://data.gateio.co/api2/1/ticker/elec_usdt
  332. https://data.gateio.co/api2/1/ticker/ship_eth
  333. https://data.gateio.co/api2/1/ticker/tfd_eth
  334. https://data.gateio.co/api2/1/ticker/hav_eth
  335. https://data.gateio.co/api2/1/ticker/hav_usdt
  336. https://data.gateio.co/api2/1/ticker/hur_eth
  337. https://data.gateio.co/api2/1/ticker/lst_eth
  338. https://data.gateio.co/api2/1/ticker/swth_eth
  339. https://data.gateio.co/api2/1/ticker/swth_usdt
  340. https://data.gateio.co/api2/1/ticker/nkn_eth
  341. https://data.gateio.co/api2/1/ticker/nkn_usdt
  342. https://data.gateio.co/api2/1/ticker/soul_eth
  343. https://data.gateio.co/api2/1/ticker/soul_usdt
  344. https://data.gateio.co/api2/1/ticker/lrn_eth
  345. https://data.gateio.co/api2/1/ticker/lrn_usdt
  346. https://data.gateio.co/api2/1/ticker/eosdac_eth
  347. https://data.gateio.co/api2/1/ticker/eosdac_usdt
  348. https://data.gateio.co/api2/1/ticker/add_eth
  349. https://data.gateio.co/api2/1/ticker/iq_eth
  350. https://data.gateio.co/api2/1/ticker/meetone_eth
  351. https://data.gateio.co/api2/1/ticker/dock_usdt
  352. https://data.gateio.co/api2/1/ticker/dock_eth
  353. https://data.gateio.co/api2/1/ticker/gse_usdt
  354. https://data.gateio.co/api2/1/ticker/gse_eth
  355. https://data.gateio.co/api2/1/ticker/rating_usdt
  356. https://data.gateio.co/api2/1/ticker/rating_eth
  357. https://data.gateio.co/api2/1/ticker/hsc_usdt
  358. https://data.gateio.co/api2/1/ticker/hsc_eth
  359. https://data.gateio.co/api2/1/ticker/hit_usdt
  360. https://data.gateio.co/api2/1/ticker/hit_eth
  361. https://data.gateio.co/api2/1/ticker/dx_usdt
  362. https://data.gateio.co/api2/1/ticker/dx_eth
  363. https://data.gateio.co/api2/1/ticker/bxc_usdt
  364. https://data.gateio.co/api2/1/ticker/bxc_eth
  365. https://data.gateio.co/api2/1/ticker/pax_usdt
  366. https://data.gateio.co/api2/1/ticker/pax_cnyx
  367. https://data.gateio.co/api2/1/ticker/usdc_cnyx
  368. https://data.gateio.co/api2/1/ticker/usdc_usdt
  369. https://data.gateio.co/api2/1/ticker/tusd_cnyx
  370. https://data.gateio.co/api2/1/ticker/tusd_usdt
  371. https://data.gateio.co/api2/1/ticker/hc_usdt
  372. https://data.gateio.co/api2/1/ticker/hc_btc
  373. https://data.gateio.co/api2/1/ticker/hc_eth
  374. https://data.gateio.co/api2/1/ticker/gard_usdt
  375. https://data.gateio.co/api2/1/ticker/gard_eth
  376. https://data.gateio.co/api2/1/ticker/fti_usdt
  377. https://data.gateio.co/api2/1/ticker/fti_eth
  378. https://data.gateio.co/api2/1/ticker/sop_eth
  379. https://data.gateio.co/api2/1/ticker/sop_usdt
  380. https://data.gateio.co/api2/1/ticker/lemo_usdt
  381. https://data.gateio.co/api2/1/ticker/lemo_eth
  382. https://data.gateio.co/api2/1/ticker/eon_eth
  383. https://data.gateio.co/api2/1/ticker/npxs_eth
  384. https://data.gateio.co/api2/1/ticker/qkc_usdt
  385. https://data.gateio.co/api2/1/ticker/qkc_eth
  386. https://data.gateio.co/api2/1/ticker/iotx_usdt
  387. https://data.gateio.co/api2/1/ticker/iotx_eth
  388. https://data.gateio.co/api2/1/ticker/red_usdt
  389. https://data.gateio.co/api2/1/ticker/red_eth
  390. https://data.gateio.co/api2/1/ticker/lba_usdt
  391. https://data.gateio.co/api2/1/ticker/lba_eth
  392. https://data.gateio.co/api2/1/ticker/open_usdt
  393. https://data.gateio.co/api2/1/ticker/open_eth
  394. https://data.gateio.co/api2/1/ticker/mith_usdt
  395. https://data.gateio.co/api2/1/ticker/mith_eth
  396. https://data.gateio.co/api2/1/ticker/skm_usdt
  397. https://data.gateio.co/api2/1/ticker/skm_eth
  398. https://data.gateio.co/api2/1/ticker/xvg_usdt
  399. https://data.gateio.co/api2/1/ticker/xvg_btc
  400. https://data.gateio.co/api2/1/ticker/nano_usdt
  401. https://data.gateio.co/api2/1/ticker/nano_btc
  402. https://data.gateio.co/api2/1/ticker/nbai_eth
  403. https://data.gateio.co/api2/1/ticker/upp_eth
  404. https://data.gateio.co/api2/1/ticker/atmi_eth
  405. https://data.gateio.co/api2/1/ticker/tmt_eth
  406. https://data.gateio.co/api2/1/ticker/ht_usdt
  407. https://data.gateio.co/api2/1/ticker/bnb_usdt
  408. https://data.gateio.co/api2/1/ticker/bbk_eth
  409. https://data.gateio.co/api2/1/ticker/edr_eth
  410. https://data.gateio.co/api2/1/ticker/met_eth
  411. https://data.gateio.co/api2/1/ticker/met_usdt
  412. https://data.gateio.co/api2/1/ticker/tct_eth
  413. https://data.gateio.co/api2/1/ticker/tct_usdt
  414. https://data.gateio.co/api2/1/ticker/mxc_usdt
  415. https://data.gateio.co/api2/1/ticker/mxc_btc
  416. https://data.gateio.co/api2/1/ticker/mxc_eth

Return data example:

    # Request
    GET: https://data.gateio.co/api2/1/ticker/eth_btc
    # Response
        {
            "result": "true",
            "last": 0.1,
            "lowestAsk": 0.1,
            "highestBid": "0.00000000",
            "percentChange": 0,
            "baseVolume": 0.001,
            "quoteVolume": 0.01,
            "high24hr": 0.1,
            "low24hr": 0.1
        }
            

Depth API

Return the market depth including ask and bid orders.

URL: https://data.gateio.co/api2/1/orderBooks


Current market depth API

Return the market depth including ask and bid orders.

URL: https://data.gateio.co/api2/1/orderBook/[CURR_A]_[CURR_B]

Replace [CURR_A] and [CURR_B] with the selected currencies.

Links:

  1. https://data.gateio.co/api2/1/orderBook/usdt_cnyx
  2. https://data.gateio.co/api2/1/orderBook/btc_cnyx
  3. https://data.gateio.co/api2/1/orderBook/eth_cnyx
  4. https://data.gateio.co/api2/1/orderBook/eos_cnyx
  5. https://data.gateio.co/api2/1/orderBook/bch_cnyx
  6. https://data.gateio.co/api2/1/orderBook/xrp_cnyx
  7. https://data.gateio.co/api2/1/orderBook/doge_cnyx
  8. https://data.gateio.co/api2/1/orderBook/tips_cnyx
  9. https://data.gateio.co/api2/1/orderBook/btc_usdt
  10. https://data.gateio.co/api2/1/orderBook/bch_usdt
  11. https://data.gateio.co/api2/1/orderBook/eth_usdt
  12. https://data.gateio.co/api2/1/orderBook/etc_usdt
  13. https://data.gateio.co/api2/1/orderBook/qtum_usdt
  14. https://data.gateio.co/api2/1/orderBook/ltc_usdt
  15. https://data.gateio.co/api2/1/orderBook/dash_usdt
  16. https://data.gateio.co/api2/1/orderBook/zec_usdt
  17. https://data.gateio.co/api2/1/orderBook/btm_usdt
  18. https://data.gateio.co/api2/1/orderBook/eos_usdt
  19. https://data.gateio.co/api2/1/orderBook/req_usdt
  20. https://data.gateio.co/api2/1/orderBook/snt_usdt
  21. https://data.gateio.co/api2/1/orderBook/omg_usdt
  22. https://data.gateio.co/api2/1/orderBook/pay_usdt
  23. https://data.gateio.co/api2/1/orderBook/cvc_usdt
  24. https://data.gateio.co/api2/1/orderBook/zrx_usdt
  25. https://data.gateio.co/api2/1/orderBook/tnt_usdt
  26. https://data.gateio.co/api2/1/orderBook/xmr_usdt
  27. https://data.gateio.co/api2/1/orderBook/xrp_usdt
  28. https://data.gateio.co/api2/1/orderBook/doge_usdt
  29. https://data.gateio.co/api2/1/orderBook/bat_usdt
  30. https://data.gateio.co/api2/1/orderBook/pst_usdt
  31. https://data.gateio.co/api2/1/orderBook/btg_usdt
  32. https://data.gateio.co/api2/1/orderBook/dpy_usdt
  33. https://data.gateio.co/api2/1/orderBook/lrc_usdt
  34. https://data.gateio.co/api2/1/orderBook/storj_usdt
  35. https://data.gateio.co/api2/1/orderBook/rdn_usdt
  36. https://data.gateio.co/api2/1/orderBook/stx_usdt
  37. https://data.gateio.co/api2/1/orderBook/knc_usdt
  38. https://data.gateio.co/api2/1/orderBook/link_usdt
  39. https://data.gateio.co/api2/1/orderBook/cdt_usdt
  40. https://data.gateio.co/api2/1/orderBook/ae_usdt
  41. https://data.gateio.co/api2/1/orderBook/ae_eth
  42. https://data.gateio.co/api2/1/orderBook/ae_btc
  43. https://data.gateio.co/api2/1/orderBook/cdt_eth
  44. https://data.gateio.co/api2/1/orderBook/rdn_eth
  45. https://data.gateio.co/api2/1/orderBook/stx_eth
  46. https://data.gateio.co/api2/1/orderBook/knc_eth
  47. https://data.gateio.co/api2/1/orderBook/link_eth
  48. https://data.gateio.co/api2/1/orderBook/req_eth
  49. https://data.gateio.co/api2/1/orderBook/rcn_eth
  50. https://data.gateio.co/api2/1/orderBook/trx_eth
  51. https://data.gateio.co/api2/1/orderBook/arn_eth
  52. https://data.gateio.co/api2/1/orderBook/kick_eth
  53. https://data.gateio.co/api2/1/orderBook/bnt_eth
  54. https://data.gateio.co/api2/1/orderBook/vet_eth
  55. https://data.gateio.co/api2/1/orderBook/mco_eth
  56. https://data.gateio.co/api2/1/orderBook/fun_eth
  57. https://data.gateio.co/api2/1/orderBook/data_eth
  58. https://data.gateio.co/api2/1/orderBook/rlc_eth
  59. https://data.gateio.co/api2/1/orderBook/rlc_usdt
  60. https://data.gateio.co/api2/1/orderBook/zsc_eth
  61. https://data.gateio.co/api2/1/orderBook/wings_eth
  62. https://data.gateio.co/api2/1/orderBook/mda_eth
  63. https://data.gateio.co/api2/1/orderBook/rcn_usdt
  64. https://data.gateio.co/api2/1/orderBook/trx_usdt
  65. https://data.gateio.co/api2/1/orderBook/kick_usdt
  66. https://data.gateio.co/api2/1/orderBook/vet_usdt
  67. https://data.gateio.co/api2/1/orderBook/mco_usdt
  68. https://data.gateio.co/api2/1/orderBook/fun_usdt
  69. https://data.gateio.co/api2/1/orderBook/data_usdt
  70. https://data.gateio.co/api2/1/orderBook/zsc_usdt
  71. https://data.gateio.co/api2/1/orderBook/mda_usdt
  72. https://data.gateio.co/api2/1/orderBook/xtz_usdt
  73. https://data.gateio.co/api2/1/orderBook/xtz_btc
  74. https://data.gateio.co/api2/1/orderBook/xtz_eth
  75. https://data.gateio.co/api2/1/orderBook/gnt_usdt
  76. https://data.gateio.co/api2/1/orderBook/gnt_eth
  77. https://data.gateio.co/api2/1/orderBook/gem_usdt
  78. https://data.gateio.co/api2/1/orderBook/gem_eth
  79. https://data.gateio.co/api2/1/orderBook/rfr_usdt
  80. https://data.gateio.co/api2/1/orderBook/rfr_eth
  81. https://data.gateio.co/api2/1/orderBook/dadi_usdt
  82. https://data.gateio.co/api2/1/orderBook/dadi_eth
  83. https://data.gateio.co/api2/1/orderBook/abt_usdt
  84. https://data.gateio.co/api2/1/orderBook/abt_eth
  85. https://data.gateio.co/api2/1/orderBook/ledu_btc
  86. https://data.gateio.co/api2/1/orderBook/ledu_eth
  87. https://data.gateio.co/api2/1/orderBook/ost_usdt
  88. https://data.gateio.co/api2/1/orderBook/ost_eth
  89. https://data.gateio.co/api2/1/orderBook/xlm_usdt
  90. https://data.gateio.co/api2/1/orderBook/xlm_eth
  91. https://data.gateio.co/api2/1/orderBook/xlm_btc
  92. https://data.gateio.co/api2/1/orderBook/mobi_usdt
  93. https://data.gateio.co/api2/1/orderBook/mobi_eth
  94. https://data.gateio.co/api2/1/orderBook/mobi_btc
  95. https://data.gateio.co/api2/1/orderBook/ocn_usdt
  96. https://data.gateio.co/api2/1/orderBook/ocn_eth
  97. https://data.gateio.co/api2/1/orderBook/ocn_btc
  98. https://data.gateio.co/api2/1/orderBook/zpt_usdt
  99. https://data.gateio.co/api2/1/orderBook/zpt_eth
  100. https://data.gateio.co/api2/1/orderBook/zpt_btc
  101. https://data.gateio.co/api2/1/orderBook/cofi_usdt
  102. https://data.gateio.co/api2/1/orderBook/cofi_eth
  103. https://data.gateio.co/api2/1/orderBook/jnt_usdt
  104. https://data.gateio.co/api2/1/orderBook/jnt_eth
  105. https://data.gateio.co/api2/1/orderBook/jnt_btc
  106. https://data.gateio.co/api2/1/orderBook/blz_usdt
  107. https://data.gateio.co/api2/1/orderBook/blz_eth
  108. https://data.gateio.co/api2/1/orderBook/gxs_usdt
  109. https://data.gateio.co/api2/1/orderBook/gxs_btc
  110. https://data.gateio.co/api2/1/orderBook/mtn_usdt
  111. https://data.gateio.co/api2/1/orderBook/mtn_eth
  112. https://data.gateio.co/api2/1/orderBook/ruff_usdt
  113. https://data.gateio.co/api2/1/orderBook/ruff_eth
  114. https://data.gateio.co/api2/1/orderBook/ruff_btc
  115. https://data.gateio.co/api2/1/orderBook/tnc_usdt
  116. https://data.gateio.co/api2/1/orderBook/tnc_eth
  117. https://data.gateio.co/api2/1/orderBook/tnc_btc
  118. https://data.gateio.co/api2/1/orderBook/zil_usdt
  119. https://data.gateio.co/api2/1/orderBook/zil_eth
  120. https://data.gateio.co/api2/1/orderBook/bto_usdt
  121. https://data.gateio.co/api2/1/orderBook/bto_eth
  122. https://data.gateio.co/api2/1/orderBook/theta_usdt
  123. https://data.gateio.co/api2/1/orderBook/theta_eth
  124. https://data.gateio.co/api2/1/orderBook/ddd_usdt
  125. https://data.gateio.co/api2/1/orderBook/ddd_eth
  126. https://data.gateio.co/api2/1/orderBook/ddd_btc
  127. https://data.gateio.co/api2/1/orderBook/mkr_usdt
  128. https://data.gateio.co/api2/1/orderBook/mkr_eth
  129. https://data.gateio.co/api2/1/orderBook/dai_usdt
  130. https://data.gateio.co/api2/1/orderBook/smt_usdt
  131. https://data.gateio.co/api2/1/orderBook/smt_eth
  132. https://data.gateio.co/api2/1/orderBook/mdt_usdt
  133. https://data.gateio.co/api2/1/orderBook/mdt_eth
  134. https://data.gateio.co/api2/1/orderBook/mdt_btc
  135. https://data.gateio.co/api2/1/orderBook/mana_usdt
  136. https://data.gateio.co/api2/1/orderBook/mana_eth
  137. https://data.gateio.co/api2/1/orderBook/lun_usdt
  138. https://data.gateio.co/api2/1/orderBook/lun_eth
  139. https://data.gateio.co/api2/1/orderBook/salt_usdt
  140. https://data.gateio.co/api2/1/orderBook/salt_eth
  141. https://data.gateio.co/api2/1/orderBook/fuel_usdt
  142. https://data.gateio.co/api2/1/orderBook/fuel_eth
  143. https://data.gateio.co/api2/1/orderBook/elf_usdt
  144. https://data.gateio.co/api2/1/orderBook/elf_eth
  145. https://data.gateio.co/api2/1/orderBook/drgn_usdt
  146. https://data.gateio.co/api2/1/orderBook/drgn_eth
  147. https://data.gateio.co/api2/1/orderBook/gtc_usdt
  148. https://data.gateio.co/api2/1/orderBook/gtc_eth
  149. https://data.gateio.co/api2/1/orderBook/gtc_btc
  150. https://data.gateio.co/api2/1/orderBook/qlc_usdt
  151. https://data.gateio.co/api2/1/orderBook/qlc_btc
  152. https://data.gateio.co/api2/1/orderBook/qlc_eth
  153. https://data.gateio.co/api2/1/orderBook/dbc_usdt
  154. https://data.gateio.co/api2/1/orderBook/dbc_btc
  155. https://data.gateio.co/api2/1/orderBook/dbc_eth
  156. https://data.gateio.co/api2/1/orderBook/bnty_usdt
  157. https://data.gateio.co/api2/1/orderBook/bnty_eth
  158. https://data.gateio.co/api2/1/orderBook/lend_usdt
  159. https://data.gateio.co/api2/1/orderBook/lend_eth
  160. https://data.gateio.co/api2/1/orderBook/icx_usdt
  161. https://data.gateio.co/api2/1/orderBook/icx_eth
  162. https://data.gateio.co/api2/1/orderBook/btf_usdt
  163. https://data.gateio.co/api2/1/orderBook/btf_btc
  164. https://data.gateio.co/api2/1/orderBook/ada_usdt
  165. https://data.gateio.co/api2/1/orderBook/ada_btc
  166. https://data.gateio.co/api2/1/orderBook/lsk_usdt
  167. https://data.gateio.co/api2/1/orderBook/lsk_btc
  168. https://data.gateio.co/api2/1/orderBook/waves_usdt
  169. https://data.gateio.co/api2/1/orderBook/waves_btc
  170. https://data.gateio.co/api2/1/orderBook/bifi_usdt
  171. https://data.gateio.co/api2/1/orderBook/bifi_btc
  172. https://data.gateio.co/api2/1/orderBook/mds_eth
  173. https://data.gateio.co/api2/1/orderBook/mds_usdt
  174. https://data.gateio.co/api2/1/orderBook/dgd_usdt
  175. https://data.gateio.co/api2/1/orderBook/dgd_eth
  176. https://data.gateio.co/api2/1/orderBook/qash_usdt
  177. https://data.gateio.co/api2/1/orderBook/qash_eth
  178. https://data.gateio.co/api2/1/orderBook/qash_btc
  179. https://data.gateio.co/api2/1/orderBook/powr_usdt
  180. https://data.gateio.co/api2/1/orderBook/powr_eth
  181. https://data.gateio.co/api2/1/orderBook/powr_btc
  182. https://data.gateio.co/api2/1/orderBook/fil_usdt
  183. https://data.gateio.co/api2/1/orderBook/bcd_usdt
  184. https://data.gateio.co/api2/1/orderBook/bcd_btc
  185. https://data.gateio.co/api2/1/orderBook/sbtc_usdt
  186. https://data.gateio.co/api2/1/orderBook/sbtc_btc
  187. https://data.gateio.co/api2/1/orderBook/god_usdt
  188. https://data.gateio.co/api2/1/orderBook/god_btc
  189. https://data.gateio.co/api2/1/orderBook/bcx_usdt
  190. https://data.gateio.co/api2/1/orderBook/bcx_btc
  191. https://data.gateio.co/api2/1/orderBook/qsp_usdt
  192. https://data.gateio.co/api2/1/orderBook/qsp_eth
  193. https://data.gateio.co/api2/1/orderBook/ink_btc
  194. https://data.gateio.co/api2/1/orderBook/ink_usdt
  195. https://data.gateio.co/api2/1/orderBook/ink_eth
  196. https://data.gateio.co/api2/1/orderBook/ink_qtum
  197. https://data.gateio.co/api2/1/orderBook/med_qtum
  198. https://data.gateio.co/api2/1/orderBook/med_eth
  199. https://data.gateio.co/api2/1/orderBook/med_usdt
  200. https://data.gateio.co/api2/1/orderBook/bot_qtum
  201. https://data.gateio.co/api2/1/orderBook/bot_usdt
  202. https://data.gateio.co/api2/1/orderBook/bot_eth
  203. https://data.gateio.co/api2/1/orderBook/qbt_qtum
  204. https://data.gateio.co/api2/1/orderBook/qbt_eth
  205. https://data.gateio.co/api2/1/orderBook/qbt_usdt
  206. https://data.gateio.co/api2/1/orderBook/tsl_qtum
  207. https://data.gateio.co/api2/1/orderBook/tsl_usdt
  208. https://data.gateio.co/api2/1/orderBook/gnx_usdt
  209. https://data.gateio.co/api2/1/orderBook/gnx_eth
  210. https://data.gateio.co/api2/1/orderBook/neo_usdt
  211. https://data.gateio.co/api2/1/orderBook/gas_usdt
  212. https://data.gateio.co/api2/1/orderBook/neo_btc
  213. https://data.gateio.co/api2/1/orderBook/gas_btc
  214. https://data.gateio.co/api2/1/orderBook/iota_usdt
  215. https://data.gateio.co/api2/1/orderBook/iota_btc
  216. https://data.gateio.co/api2/1/orderBook/nas_usdt
  217. https://data.gateio.co/api2/1/orderBook/nas_eth
  218. https://data.gateio.co/api2/1/orderBook/nas_btc
  219. https://data.gateio.co/api2/1/orderBook/eth_btc
  220. https://data.gateio.co/api2/1/orderBook/etc_btc
  221. https://data.gateio.co/api2/1/orderBook/etc_eth
  222. https://data.gateio.co/api2/1/orderBook/zec_btc
  223. https://data.gateio.co/api2/1/orderBook/dash_btc
  224. https://data.gateio.co/api2/1/orderBook/ltc_btc
  225. https://data.gateio.co/api2/1/orderBook/bch_btc
  226. https://data.gateio.co/api2/1/orderBook/btg_btc
  227. https://data.gateio.co/api2/1/orderBook/qtum_btc
  228. https://data.gateio.co/api2/1/orderBook/qtum_eth
  229. https://data.gateio.co/api2/1/orderBook/xrp_btc
  230. https://data.gateio.co/api2/1/orderBook/doge_btc
  231. https://data.gateio.co/api2/1/orderBook/xmr_btc
  232. https://data.gateio.co/api2/1/orderBook/zrx_btc
  233. https://data.gateio.co/api2/1/orderBook/zrx_eth
  234. https://data.gateio.co/api2/1/orderBook/dnt_eth
  235. https://data.gateio.co/api2/1/orderBook/dpy_eth
  236. https://data.gateio.co/api2/1/orderBook/oax_btc
  237. https://data.gateio.co/api2/1/orderBook/oax_usdt
  238. https://data.gateio.co/api2/1/orderBook/oax_eth
  239. https://data.gateio.co/api2/1/orderBook/rep_eth
  240. https://data.gateio.co/api2/1/orderBook/lrc_eth
  241. https://data.gateio.co/api2/1/orderBook/lrc_btc
  242. https://data.gateio.co/api2/1/orderBook/pst_eth
  243. https://data.gateio.co/api2/1/orderBook/bcdn_eth
  244. https://data.gateio.co/api2/1/orderBook/bcdn_usdt
  245. https://data.gateio.co/api2/1/orderBook/tnt_eth
  246. https://data.gateio.co/api2/1/orderBook/snt_eth
  247. https://data.gateio.co/api2/1/orderBook/snt_btc
  248. https://data.gateio.co/api2/1/orderBook/btm_eth
  249. https://data.gateio.co/api2/1/orderBook/btm_btc
  250. https://data.gateio.co/api2/1/orderBook/snet_eth
  251. https://data.gateio.co/api2/1/orderBook/snet_usdt
  252. https://data.gateio.co/api2/1/orderBook/llt_snet
  253. https://data.gateio.co/api2/1/orderBook/omg_eth
  254. https://data.gateio.co/api2/1/orderBook/omg_btc
  255. https://data.gateio.co/api2/1/orderBook/pay_eth
  256. https://data.gateio.co/api2/1/orderBook/pay_btc
  257. https://data.gateio.co/api2/1/orderBook/bat_eth
  258. https://data.gateio.co/api2/1/orderBook/bat_btc
  259. https://data.gateio.co/api2/1/orderBook/cvc_eth
  260. https://data.gateio.co/api2/1/orderBook/storj_eth
  261. https://data.gateio.co/api2/1/orderBook/storj_btc
  262. https://data.gateio.co/api2/1/orderBook/eos_eth
  263. https://data.gateio.co/api2/1/orderBook/eos_btc
  264. https://data.gateio.co/api2/1/orderBook/bts_usdt
  265. https://data.gateio.co/api2/1/orderBook/bts_btc
  266. https://data.gateio.co/api2/1/orderBook/tips_eth
  267. https://data.gateio.co/api2/1/orderBook/gt_btc
  268. https://data.gateio.co/api2/1/orderBook/gt_usdt
  269. https://data.gateio.co/api2/1/orderBook/xem_eth
  270. https://data.gateio.co/api2/1/orderBook/xem_usdt
  271. https://data.gateio.co/api2/1/orderBook/xem_btc
  272. https://data.gateio.co/api2/1/orderBook/bu_usdt
  273. https://data.gateio.co/api2/1/orderBook/bu_eth
  274. https://data.gateio.co/api2/1/orderBook/bu_btc
  275. https://data.gateio.co/api2/1/orderBook/bchsv_usdt
  276. https://data.gateio.co/api2/1/orderBook/bchsv_cnyx
  277. https://data.gateio.co/api2/1/orderBook/bchsv_btc
  278. https://data.gateio.co/api2/1/orderBook/dcr_usdt
  279. https://data.gateio.co/api2/1/orderBook/dcr_btc
  280. https://data.gateio.co/api2/1/orderBook/bcn_usdt
  281. https://data.gateio.co/api2/1/orderBook/bcn_btc
  282. https://data.gateio.co/api2/1/orderBook/xmc_usdt
  283. https://data.gateio.co/api2/1/orderBook/xmc_btc
  284. https://data.gateio.co/api2/1/orderBook/pps_usdt
  285. https://data.gateio.co/api2/1/orderBook/atp_usdt
  286. https://data.gateio.co/api2/1/orderBook/atp_eth
  287. https://data.gateio.co/api2/1/orderBook/boe_eth
  288. https://data.gateio.co/api2/1/orderBook/boe_usdt
  289. https://data.gateio.co/api2/1/orderBook/nbot_eth
  290. https://data.gateio.co/api2/1/orderBook/nbot_usdt
  291. https://data.gateio.co/api2/1/orderBook/ply_eth
  292. https://data.gateio.co/api2/1/orderBook/medx_usdt
  293. https://data.gateio.co/api2/1/orderBook/medx_eth
  294. https://data.gateio.co/api2/1/orderBook/grin_usdt
  295. https://data.gateio.co/api2/1/orderBook/grin_eth
  296. https://data.gateio.co/api2/1/orderBook/grin_btc
  297. https://data.gateio.co/api2/1/orderBook/beam_usdt
  298. https://data.gateio.co/api2/1/orderBook/beam_eth
  299. https://data.gateio.co/api2/1/orderBook/beam_btc
  300. https://data.gateio.co/api2/1/orderBook/vtho_eth
  301. https://data.gateio.co/api2/1/orderBook/btt_usdt
  302. https://data.gateio.co/api2/1/orderBook/btt_eth
  303. https://data.gateio.co/api2/1/orderBook/tfuel_eth
  304. https://data.gateio.co/api2/1/orderBook/tfuel_usdt
  305. https://data.gateio.co/api2/1/orderBook/celr_eth
  306. https://data.gateio.co/api2/1/orderBook/celr_usdt
  307. https://data.gateio.co/api2/1/orderBook/cs_eth
  308. https://data.gateio.co/api2/1/orderBook/cs_usdt
  309. https://data.gateio.co/api2/1/orderBook/man_eth
  310. https://data.gateio.co/api2/1/orderBook/man_usdt
  311. https://data.gateio.co/api2/1/orderBook/rem_eth
  312. https://data.gateio.co/api2/1/orderBook/rem_usdt
  313. https://data.gateio.co/api2/1/orderBook/lym_eth
  314. https://data.gateio.co/api2/1/orderBook/lym_btc
  315. https://data.gateio.co/api2/1/orderBook/lym_usdt
  316. https://data.gateio.co/api2/1/orderBook/instar_eth
  317. https://data.gateio.co/api2/1/orderBook/ong_eth
  318. https://data.gateio.co/api2/1/orderBook/ong_usdt
  319. https://data.gateio.co/api2/1/orderBook/ont_eth
  320. https://data.gateio.co/api2/1/orderBook/ont_usdt
  321. https://data.gateio.co/api2/1/orderBook/bft_eth
  322. https://data.gateio.co/api2/1/orderBook/bft_usdt
  323. https://data.gateio.co/api2/1/orderBook/iht_eth
  324. https://data.gateio.co/api2/1/orderBook/iht_usdt
  325. https://data.gateio.co/api2/1/orderBook/senc_eth
  326. https://data.gateio.co/api2/1/orderBook/senc_usdt
  327. https://data.gateio.co/api2/1/orderBook/tomo_eth
  328. https://data.gateio.co/api2/1/orderBook/tomo_usdt
  329. https://data.gateio.co/api2/1/orderBook/elec_eth
  330. https://data.gateio.co/api2/1/orderBook/elec_usdt
  331. https://data.gateio.co/api2/1/orderBook/ship_eth
  332. https://data.gateio.co/api2/1/orderBook/tfd_eth
  333. https://data.gateio.co/api2/1/orderBook/hav_eth
  334. https://data.gateio.co/api2/1/orderBook/hav_usdt
  335. https://data.gateio.co/api2/1/orderBook/hur_eth
  336. https://data.gateio.co/api2/1/orderBook/lst_eth
  337. https://data.gateio.co/api2/1/orderBook/swth_eth
  338. https://data.gateio.co/api2/1/orderBook/swth_usdt
  339. https://data.gateio.co/api2/1/orderBook/nkn_eth
  340. https://data.gateio.co/api2/1/orderBook/nkn_usdt
  341. https://data.gateio.co/api2/1/orderBook/soul_eth
  342. https://data.gateio.co/api2/1/orderBook/soul_usdt
  343. https://data.gateio.co/api2/1/orderBook/lrn_eth
  344. https://data.gateio.co/api2/1/orderBook/lrn_usdt
  345. https://data.gateio.co/api2/1/orderBook/eosdac_eth
  346. https://data.gateio.co/api2/1/orderBook/eosdac_usdt
  347. https://data.gateio.co/api2/1/orderBook/add_eth
  348. https://data.gateio.co/api2/1/orderBook/iq_eth
  349. https://data.gateio.co/api2/1/orderBook/meetone_eth
  350. https://data.gateio.co/api2/1/orderBook/dock_usdt
  351. https://data.gateio.co/api2/1/orderBook/dock_eth
  352. https://data.gateio.co/api2/1/orderBook/gse_usdt
  353. https://data.gateio.co/api2/1/orderBook/gse_eth
  354. https://data.gateio.co/api2/1/orderBook/rating_usdt
  355. https://data.gateio.co/api2/1/orderBook/rating_eth
  356. https://data.gateio.co/api2/1/orderBook/hsc_usdt
  357. https://data.gateio.co/api2/1/orderBook/hsc_eth
  358. https://data.gateio.co/api2/1/orderBook/hit_usdt
  359. https://data.gateio.co/api2/1/orderBook/hit_eth
  360. https://data.gateio.co/api2/1/orderBook/dx_usdt
  361. https://data.gateio.co/api2/1/orderBook/dx_eth
  362. https://data.gateio.co/api2/1/orderBook/bxc_usdt
  363. https://data.gateio.co/api2/1/orderBook/bxc_eth
  364. https://data.gateio.co/api2/1/orderBook/pax_usdt
  365. https://data.gateio.co/api2/1/orderBook/pax_cnyx
  366. https://data.gateio.co/api2/1/orderBook/usdc_cnyx
  367. https://data.gateio.co/api2/1/orderBook/usdc_usdt
  368. https://data.gateio.co/api2/1/orderBook/tusd_cnyx
  369. https://data.gateio.co/api2/1/orderBook/tusd_usdt
  370. https://data.gateio.co/api2/1/orderBook/hc_usdt
  371. https://data.gateio.co/api2/1/orderBook/hc_btc
  372. https://data.gateio.co/api2/1/orderBook/hc_eth
  373. https://data.gateio.co/api2/1/orderBook/gard_usdt
  374. https://data.gateio.co/api2/1/orderBook/gard_eth
  375. https://data.gateio.co/api2/1/orderBook/fti_usdt
  376. https://data.gateio.co/api2/1/orderBook/fti_eth
  377. https://data.gateio.co/api2/1/orderBook/sop_eth
  378. https://data.gateio.co/api2/1/orderBook/sop_usdt
  379. https://data.gateio.co/api2/1/orderBook/lemo_usdt
  380. https://data.gateio.co/api2/1/orderBook/lemo_eth
  381. https://data.gateio.co/api2/1/orderBook/eon_eth
  382. https://data.gateio.co/api2/1/orderBook/npxs_eth
  383. https://data.gateio.co/api2/1/orderBook/qkc_usdt
  384. https://data.gateio.co/api2/1/orderBook/qkc_eth
  385. https://data.gateio.co/api2/1/orderBook/iotx_usdt
  386. https://data.gateio.co/api2/1/orderBook/iotx_eth
  387. https://data.gateio.co/api2/1/orderBook/red_usdt
  388. https://data.gateio.co/api2/1/orderBook/red_eth
  389. https://data.gateio.co/api2/1/orderBook/lba_usdt
  390. https://data.gateio.co/api2/1/orderBook/lba_eth
  391. https://data.gateio.co/api2/1/orderBook/open_usdt
  392. https://data.gateio.co/api2/1/orderBook/open_eth
  393. https://data.gateio.co/api2/1/orderBook/mith_usdt
  394. https://data.gateio.co/api2/1/orderBook/mith_eth
  395. https://data.gateio.co/api2/1/orderBook/skm_usdt
  396. https://data.gateio.co/api2/1/orderBook/skm_eth
  397. https://data.gateio.co/api2/1/orderBook/xvg_usdt
  398. https://data.gateio.co/api2/1/orderBook/xvg_btc
  399. https://data.gateio.co/api2/1/orderBook/nano_usdt
  400. https://data.gateio.co/api2/1/orderBook/nano_btc
  401. https://data.gateio.co/api2/1/orderBook/nbai_eth
  402. https://data.gateio.co/api2/1/orderBook/upp_eth
  403. https://data.gateio.co/api2/1/orderBook/atmi_eth
  404. https://data.gateio.co/api2/1/orderBook/tmt_eth
  405. https://data.gateio.co/api2/1/orderBook/ht_usdt
  406. https://data.gateio.co/api2/1/orderBook/bnb_usdt
  407. https://data.gateio.co/api2/1/orderBook/bbk_eth
  408. https://data.gateio.co/api2/1/orderBook/edr_eth
  409. https://data.gateio.co/api2/1/orderBook/met_eth
  410. https://data.gateio.co/api2/1/orderBook/met_usdt
  411. https://data.gateio.co/api2/1/orderBook/tct_eth
  412. https://data.gateio.co/api2/1/orderBook/tct_usdt
  413. https://data.gateio.co/api2/1/orderBook/mxc_usdt
  414. https://data.gateio.co/api2/1/orderBook/mxc_btc
  415. https://data.gateio.co/api2/1/orderBook/mxc_eth

Return data example:

    # Request
    GET: https://data.gateio.co/api2/1/orderBook/eth_btc
    # Response
      {
        "result": "true",
        "asks": [
                [29500,    4.07172355],
                [29499,    0.00203397],
                [29495,    1],
                [29488,    0.0672],
                [29475,    0.001]
            ],
        "bids": [
                [28001, 0.0477],
                [28000, 0.35714018],
                [28000, 2.56222976],
                [27800, 0.0015],
                [27777, 0.1]
            ]
        }
            

History API

Return the most recent 80 trade history records:

URL: https://data.gateio.co/api2/1/tradeHistory/[CURR_A]_[CURR_B]

Return data example:

    # Request
    GET: https://data.gateio.co/api2/1/tradeHistory/eth_btc
    # Response
    {
        "result": "true",
        "data": [
            {
                "tradeID": "27734287",
                "date": "2017-09-29 11:52:05",
                "timestamp": "1506657125",
                "type": "buy",
                "rate": 0.1,
                "amount": 0.01,
                "total": 0.001
            }
        ],
        "elapsed": "6.901ms"
    }
            

Return at most 1,000 trade history records after [TID]:

URL: https://data.gateio.co/api2/1/tradeHistory/[CURR_A]_[CURR_B]/[TID]

Replace [CURR_A] and [CURR_B] with the selected currencies.

Links:

  1. https://data.gateio.co/api2/1/tradeHistory/usdt_cnyx
  2. https://data.gateio.co/api2/1/tradeHistory/btc_cnyx
  3. https://data.gateio.co/api2/1/tradeHistory/eth_cnyx
  4. https://data.gateio.co/api2/1/tradeHistory/eos_cnyx
  5. https://data.gateio.co/api2/1/tradeHistory/bch_cnyx
  6. https://data.gateio.co/api2/1/tradeHistory/xrp_cnyx
  7. https://data.gateio.co/api2/1/tradeHistory/doge_cnyx
  8. https://data.gateio.co/api2/1/tradeHistory/tips_cnyx
  9. https://data.gateio.co/api2/1/tradeHistory/btc_usdt
  10. https://data.gateio.co/api2/1/tradeHistory/bch_usdt
  11. https://data.gateio.co/api2/1/tradeHistory/eth_usdt
  12. https://data.gateio.co/api2/1/tradeHistory/etc_usdt
  13. https://data.gateio.co/api2/1/tradeHistory/qtum_usdt
  14. https://data.gateio.co/api2/1/tradeHistory/ltc_usdt
  15. https://data.gateio.co/api2/1/tradeHistory/dash_usdt
  16. https://data.gateio.co/api2/1/tradeHistory/zec_usdt
  17. https://data.gateio.co/api2/1/tradeHistory/btm_usdt
  18. https://data.gateio.co/api2/1/tradeHistory/eos_usdt
  19. https://data.gateio.co/api2/1/tradeHistory/req_usdt
  20. https://data.gateio.co/api2/1/tradeHistory/snt_usdt
  21. https://data.gateio.co/api2/1/tradeHistory/omg_usdt
  22. https://data.gateio.co/api2/1/tradeHistory/pay_usdt
  23. https://data.gateio.co/api2/1/tradeHistory/cvc_usdt
  24. https://data.gateio.co/api2/1/tradeHistory/zrx_usdt
  25. https://data.gateio.co/api2/1/tradeHistory/tnt_usdt
  26. https://data.gateio.co/api2/1/tradeHistory/xmr_usdt
  27. https://data.gateio.co/api2/1/tradeHistory/xrp_usdt
  28. https://data.gateio.co/api2/1/tradeHistory/doge_usdt
  29. https://data.gateio.co/api2/1/tradeHistory/bat_usdt
  30. https://data.gateio.co/api2/1/tradeHistory/pst_usdt
  31. https://data.gateio.co/api2/1/tradeHistory/btg_usdt
  32. https://data.gateio.co/api2/1/tradeHistory/dpy_usdt
  33. https://data.gateio.co/api2/1/tradeHistory/lrc_usdt
  34. https://data.gateio.co/api2/1/tradeHistory/storj_usdt
  35. https://data.gateio.co/api2/1/tradeHistory/rdn_usdt
  36. https://data.gateio.co/api2/1/tradeHistory/stx_usdt
  37. https://data.gateio.co/api2/1/tradeHistory/knc_usdt
  38. https://data.gateio.co/api2/1/tradeHistory/link_usdt
  39. https://data.gateio.co/api2/1/tradeHistory/cdt_usdt
  40. https://data.gateio.co/api2/1/tradeHistory/ae_usdt
  41. https://data.gateio.co/api2/1/tradeHistory/ae_eth
  42. https://data.gateio.co/api2/1/tradeHistory/ae_btc
  43. https://data.gateio.co/api2/1/tradeHistory/cdt_eth
  44. https://data.gateio.co/api2/1/tradeHistory/rdn_eth
  45. https://data.gateio.co/api2/1/tradeHistory/stx_eth
  46. https://data.gateio.co/api2/1/tradeHistory/knc_eth
  47. https://data.gateio.co/api2/1/tradeHistory/link_eth
  48. https://data.gateio.co/api2/1/tradeHistory/req_eth
  49. https://data.gateio.co/api2/1/tradeHistory/rcn_eth
  50. https://data.gateio.co/api2/1/tradeHistory/trx_eth
  51. https://data.gateio.co/api2/1/tradeHistory/arn_eth
  52. https://data.gateio.co/api2/1/tradeHistory/kick_eth
  53. https://data.gateio.co/api2/1/tradeHistory/bnt_eth
  54. https://data.gateio.co/api2/1/tradeHistory/vet_eth
  55. https://data.gateio.co/api2/1/tradeHistory/mco_eth
  56. https://data.gateio.co/api2/1/tradeHistory/fun_eth
  57. https://data.gateio.co/api2/1/tradeHistory/data_eth
  58. https://data.gateio.co/api2/1/tradeHistory/rlc_eth
  59. https://data.gateio.co/api2/1/tradeHistory/rlc_usdt
  60. https://data.gateio.co/api2/1/tradeHistory/zsc_eth
  61. https://data.gateio.co/api2/1/tradeHistory/wings_eth
  62. https://data.gateio.co/api2/1/tradeHistory/mda_eth
  63. https://data.gateio.co/api2/1/tradeHistory/rcn_usdt
  64. https://data.gateio.co/api2/1/tradeHistory/trx_usdt
  65. https://data.gateio.co/api2/1/tradeHistory/kick_usdt
  66. https://data.gateio.co/api2/1/tradeHistory/vet_usdt
  67. https://data.gateio.co/api2/1/tradeHistory/mco_usdt
  68. https://data.gateio.co/api2/1/tradeHistory/fun_usdt
  69. https://data.gateio.co/api2/1/tradeHistory/data_usdt
  70. https://data.gateio.co/api2/1/tradeHistory/zsc_usdt
  71. https://data.gateio.co/api2/1/tradeHistory/mda_usdt
  72. https://data.gateio.co/api2/1/tradeHistory/xtz_usdt
  73. https://data.gateio.co/api2/1/tradeHistory/xtz_btc
  74. https://data.gateio.co/api2/1/tradeHistory/xtz_eth
  75. https://data.gateio.co/api2/1/tradeHistory/gnt_usdt
  76. https://data.gateio.co/api2/1/tradeHistory/gnt_eth
  77. https://data.gateio.co/api2/1/tradeHistory/gem_usdt
  78. https://data.gateio.co/api2/1/tradeHistory/gem_eth
  79. https://data.gateio.co/api2/1/tradeHistory/rfr_usdt
  80. https://data.gateio.co/api2/1/tradeHistory/rfr_eth
  81. https://data.gateio.co/api2/1/tradeHistory/dadi_usdt
  82. https://data.gateio.co/api2/1/tradeHistory/dadi_eth
  83. https://data.gateio.co/api2/1/tradeHistory/abt_usdt
  84. https://data.gateio.co/api2/1/tradeHistory/abt_eth
  85. https://data.gateio.co/api2/1/tradeHistory/ledu_btc
  86. https://data.gateio.co/api2/1/tradeHistory/ledu_eth
  87. https://data.gateio.co/api2/1/tradeHistory/ost_usdt
  88. https://data.gateio.co/api2/1/tradeHistory/ost_eth
  89. https://data.gateio.co/api2/1/tradeHistory/xlm_usdt
  90. https://data.gateio.co/api2/1/tradeHistory/xlm_eth
  91. https://data.gateio.co/api2/1/tradeHistory/xlm_btc
  92. https://data.gateio.co/api2/1/tradeHistory/mobi_usdt
  93. https://data.gateio.co/api2/1/tradeHistory/mobi_eth
  94. https://data.gateio.co/api2/1/tradeHistory/mobi_btc
  95. https://data.gateio.co/api2/1/tradeHistory/ocn_usdt
  96. https://data.gateio.co/api2/1/tradeHistory/ocn_eth
  97. https://data.gateio.co/api2/1/tradeHistory/ocn_btc
  98. https://data.gateio.co/api2/1/tradeHistory/zpt_usdt
  99. https://data.gateio.co/api2/1/tradeHistory/zpt_eth
  100. https://data.gateio.co/api2/1/tradeHistory/zpt_btc
  101. https://data.gateio.co/api2/1/tradeHistory/cofi_usdt
  102. https://data.gateio.co/api2/1/tradeHistory/cofi_eth
  103. https://data.gateio.co/api2/1/tradeHistory/jnt_usdt
  104. https://data.gateio.co/api2/1/tradeHistory/jnt_eth
  105. https://data.gateio.co/api2/1/tradeHistory/jnt_btc
  106. https://data.gateio.co/api2/1/tradeHistory/blz_usdt
  107. https://data.gateio.co/api2/1/tradeHistory/blz_eth
  108. https://data.gateio.co/api2/1/tradeHistory/gxs_usdt
  109. https://data.gateio.co/api2/1/tradeHistory/gxs_btc
  110. https://data.gateio.co/api2/1/tradeHistory/mtn_usdt
  111. https://data.gateio.co/api2/1/tradeHistory/mtn_eth
  112. https://data.gateio.co/api2/1/tradeHistory/ruff_usdt
  113. https://data.gateio.co/api2/1/tradeHistory/ruff_eth
  114. https://data.gateio.co/api2/1/tradeHistory/ruff_btc
  115. https://data.gateio.co/api2/1/tradeHistory/tnc_usdt
  116. https://data.gateio.co/api2/1/tradeHistory/tnc_eth
  117. https://data.gateio.co/api2/1/tradeHistory/tnc_btc
  118. https://data.gateio.co/api2/1/tradeHistory/zil_usdt
  119. https://data.gateio.co/api2/1/tradeHistory/zil_eth
  120. https://data.gateio.co/api2/1/tradeHistory/bto_usdt
  121. https://data.gateio.co/api2/1/tradeHistory/bto_eth
  122. https://data.gateio.co/api2/1/tradeHistory/theta_usdt
  123. https://data.gateio.co/api2/1/tradeHistory/theta_eth
  124. https://data.gateio.co/api2/1/tradeHistory/ddd_usdt
  125. https://data.gateio.co/api2/1/tradeHistory/ddd_eth
  126. https://data.gateio.co/api2/1/tradeHistory/ddd_btc
  127. https://data.gateio.co/api2/1/tradeHistory/mkr_usdt
  128. https://data.gateio.co/api2/1/tradeHistory/mkr_eth
  129. https://data.gateio.co/api2/1/tradeHistory/dai_usdt
  130. https://data.gateio.co/api2/1/tradeHistory/smt_usdt
  131. https://data.gateio.co/api2/1/tradeHistory/smt_eth
  132. https://data.gateio.co/api2/1/tradeHistory/mdt_usdt
  133. https://data.gateio.co/api2/1/tradeHistory/mdt_eth
  134. https://data.gateio.co/api2/1/tradeHistory/mdt_btc
  135. https://data.gateio.co/api2/1/tradeHistory/mana_usdt
  136. https://data.gateio.co/api2/1/tradeHistory/mana_eth
  137. https://data.gateio.co/api2/1/tradeHistory/lun_usdt
  138. https://data.gateio.co/api2/1/tradeHistory/lun_eth
  139. https://data.gateio.co/api2/1/tradeHistory/salt_usdt
  140. https://data.gateio.co/api2/1/tradeHistory/salt_eth
  141. https://data.gateio.co/api2/1/tradeHistory/fuel_usdt
  142. https://data.gateio.co/api2/1/tradeHistory/fuel_eth
  143. https://data.gateio.co/api2/1/tradeHistory/elf_usdt
  144. https://data.gateio.co/api2/1/tradeHistory/elf_eth
  145. https://data.gateio.co/api2/1/tradeHistory/drgn_usdt
  146. https://data.gateio.co/api2/1/tradeHistory/drgn_eth
  147. https://data.gateio.co/api2/1/tradeHistory/gtc_usdt
  148. https://data.gateio.co/api2/1/tradeHistory/gtc_eth
  149. https://data.gateio.co/api2/1/tradeHistory/gtc_btc
  150. https://data.gateio.co/api2/1/tradeHistory/qlc_usdt
  151. https://data.gateio.co/api2/1/tradeHistory/qlc_btc
  152. https://data.gateio.co/api2/1/tradeHistory/qlc_eth
  153. https://data.gateio.co/api2/1/tradeHistory/dbc_usdt
  154. https://data.gateio.co/api2/1/tradeHistory/dbc_btc
  155. https://data.gateio.co/api2/1/tradeHistory/dbc_eth
  156. https://data.gateio.co/api2/1/tradeHistory/bnty_usdt
  157. https://data.gateio.co/api2/1/tradeHistory/bnty_eth
  158. https://data.gateio.co/api2/1/tradeHistory/lend_usdt
  159. https://data.gateio.co/api2/1/tradeHistory/lend_eth
  160. https://data.gateio.co/api2/1/tradeHistory/icx_usdt
  161. https://data.gateio.co/api2/1/tradeHistory/icx_eth
  162. https://data.gateio.co/api2/1/tradeHistory/btf_usdt
  163. https://data.gateio.co/api2/1/tradeHistory/btf_btc
  164. https://data.gateio.co/api2/1/tradeHistory/ada_usdt
  165. https://data.gateio.co/api2/1/tradeHistory/ada_btc
  166. https://data.gateio.co/api2/1/tradeHistory/lsk_usdt
  167. https://data.gateio.co/api2/1/tradeHistory/lsk_btc
  168. https://data.gateio.co/api2/1/tradeHistory/waves_usdt
  169. https://data.gateio.co/api2/1/tradeHistory/waves_btc
  170. https://data.gateio.co/api2/1/tradeHistory/bifi_usdt
  171. https://data.gateio.co/api2/1/tradeHistory/bifi_btc
  172. https://data.gateio.co/api2/1/tradeHistory/mds_eth
  173. https://data.gateio.co/api2/1/tradeHistory/mds_usdt
  174. https://data.gateio.co/api2/1/tradeHistory/dgd_usdt
  175. https://data.gateio.co/api2/1/tradeHistory/dgd_eth
  176. https://data.gateio.co/api2/1/tradeHistory/qash_usdt
  177. https://data.gateio.co/api2/1/tradeHistory/qash_eth
  178. https://data.gateio.co/api2/1/tradeHistory/qash_btc
  179. https://data.gateio.co/api2/1/tradeHistory/powr_usdt
  180. https://data.gateio.co/api2/1/tradeHistory/powr_eth
  181. https://data.gateio.co/api2/1/tradeHistory/powr_btc
  182. https://data.gateio.co/api2/1/tradeHistory/fil_usdt
  183. https://data.gateio.co/api2/1/tradeHistory/bcd_usdt
  184. https://data.gateio.co/api2/1/tradeHistory/bcd_btc
  185. https://data.gateio.co/api2/1/tradeHistory/sbtc_usdt
  186. https://data.gateio.co/api2/1/tradeHistory/sbtc_btc
  187. https://data.gateio.co/api2/1/tradeHistory/god_usdt
  188. https://data.gateio.co/api2/1/tradeHistory/god_btc
  189. https://data.gateio.co/api2/1/tradeHistory/bcx_usdt
  190. https://data.gateio.co/api2/1/tradeHistory/bcx_btc
  191. https://data.gateio.co/api2/1/tradeHistory/qsp_usdt
  192. https://data.gateio.co/api2/1/tradeHistory/qsp_eth
  193. https://data.gateio.co/api2/1/tradeHistory/ink_btc
  194. https://data.gateio.co/api2/1/tradeHistory/ink_usdt
  195. https://data.gateio.co/api2/1/tradeHistory/ink_eth
  196. https://data.gateio.co/api2/1/tradeHistory/ink_qtum
  197. https://data.gateio.co/api2/1/tradeHistory/med_qtum
  198. https://data.gateio.co/api2/1/tradeHistory/med_eth
  199. https://data.gateio.co/api2/1/tradeHistory/med_usdt
  200. https://data.gateio.co/api2/1/tradeHistory/bot_qtum
  201. https://data.gateio.co/api2/1/tradeHistory/bot_usdt
  202. https://data.gateio.co/api2/1/tradeHistory/bot_eth
  203. https://data.gateio.co/api2/1/tradeHistory/qbt_qtum
  204. https://data.gateio.co/api2/1/tradeHistory/qbt_eth
  205. https://data.gateio.co/api2/1/tradeHistory/qbt_usdt
  206. https://data.gateio.co/api2/1/tradeHistory/tsl_qtum
  207. https://data.gateio.co/api2/1/tradeHistory/tsl_usdt
  208. https://data.gateio.co/api2/1/tradeHistory/gnx_usdt
  209. https://data.gateio.co/api2/1/tradeHistory/gnx_eth
  210. https://data.gateio.co/api2/1/tradeHistory/neo_usdt
  211. https://data.gateio.co/api2/1/tradeHistory/gas_usdt
  212. https://data.gateio.co/api2/1/tradeHistory/neo_btc
  213. https://data.gateio.co/api2/1/tradeHistory/gas_btc
  214. https://data.gateio.co/api2/1/tradeHistory/iota_usdt
  215. https://data.gateio.co/api2/1/tradeHistory/iota_btc
  216. https://data.gateio.co/api2/1/tradeHistory/nas_usdt
  217. https://data.gateio.co/api2/1/tradeHistory/nas_eth
  218. https://data.gateio.co/api2/1/tradeHistory/nas_btc
  219. https://data.gateio.co/api2/1/tradeHistory/eth_btc
  220. https://data.gateio.co/api2/1/tradeHistory/etc_btc
  221. https://data.gateio.co/api2/1/tradeHistory/etc_eth
  222. https://data.gateio.co/api2/1/tradeHistory/zec_btc
  223. https://data.gateio.co/api2/1/tradeHistory/dash_btc
  224. https://data.gateio.co/api2/1/tradeHistory/ltc_btc
  225. https://data.gateio.co/api2/1/tradeHistory/bch_btc
  226. https://data.gateio.co/api2/1/tradeHistory/btg_btc
  227. https://data.gateio.co/api2/1/tradeHistory/qtum_btc
  228. https://data.gateio.co/api2/1/tradeHistory/qtum_eth
  229. https://data.gateio.co/api2/1/tradeHistory/xrp_btc
  230. https://data.gateio.co/api2/1/tradeHistory/doge_btc
  231. https://data.gateio.co/api2/1/tradeHistory/xmr_btc
  232. https://data.gateio.co/api2/1/tradeHistory/zrx_btc
  233. https://data.gateio.co/api2/1/tradeHistory/zrx_eth
  234. https://data.gateio.co/api2/1/tradeHistory/dnt_eth
  235. https://data.gateio.co/api2/1/tradeHistory/dpy_eth
  236. https://data.gateio.co/api2/1/tradeHistory/oax_btc
  237. https://data.gateio.co/api2/1/tradeHistory/oax_usdt
  238. https://data.gateio.co/api2/1/tradeHistory/oax_eth
  239. https://data.gateio.co/api2/1/tradeHistory/rep_eth
  240. https://data.gateio.co/api2/1/tradeHistory/lrc_eth
  241. https://data.gateio.co/api2/1/tradeHistory/lrc_btc
  242. https://data.gateio.co/api2/1/tradeHistory/pst_eth
  243. https://data.gateio.co/api2/1/tradeHistory/bcdn_eth
  244. https://data.gateio.co/api2/1/tradeHistory/bcdn_usdt
  245. https://data.gateio.co/api2/1/tradeHistory/tnt_eth
  246. https://data.gateio.co/api2/1/tradeHistory/snt_eth
  247. https://data.gateio.co/api2/1/tradeHistory/snt_btc
  248. https://data.gateio.co/api2/1/tradeHistory/btm_eth
  249. https://data.gateio.co/api2/1/tradeHistory/btm_btc
  250. https://data.gateio.co/api2/1/tradeHistory/snet_eth
  251. https://data.gateio.co/api2/1/tradeHistory/snet_usdt
  252. https://data.gateio.co/api2/1/tradeHistory/llt_snet
  253. https://data.gateio.co/api2/1/tradeHistory/omg_eth
  254. https://data.gateio.co/api2/1/tradeHistory/omg_btc
  255. https://data.gateio.co/api2/1/tradeHistory/pay_eth
  256. https://data.gateio.co/api2/1/tradeHistory/pay_btc
  257. https://data.gateio.co/api2/1/tradeHistory/bat_eth
  258. https://data.gateio.co/api2/1/tradeHistory/bat_btc
  259. https://data.gateio.co/api2/1/tradeHistory/cvc_eth
  260. https://data.gateio.co/api2/1/tradeHistory/storj_eth
  261. https://data.gateio.co/api2/1/tradeHistory/storj_btc
  262. https://data.gateio.co/api2/1/tradeHistory/eos_eth
  263. https://data.gateio.co/api2/1/tradeHistory/eos_btc
  264. https://data.gateio.co/api2/1/tradeHistory/bts_usdt
  265. https://data.gateio.co/api2/1/tradeHistory/bts_btc
  266. https://data.gateio.co/api2/1/tradeHistory/tips_eth
  267. https://data.gateio.co/api2/1/tradeHistory/gt_btc
  268. https://data.gateio.co/api2/1/tradeHistory/gt_usdt
  269. https://data.gateio.co/api2/1/tradeHistory/xem_eth
  270. https://data.gateio.co/api2/1/tradeHistory/xem_usdt
  271. https://data.gateio.co/api2/1/tradeHistory/xem_btc
  272. https://data.gateio.co/api2/1/tradeHistory/bu_usdt
  273. https://data.gateio.co/api2/1/tradeHistory/bu_eth
  274. https://data.gateio.co/api2/1/tradeHistory/bu_btc
  275. https://data.gateio.co/api2/1/tradeHistory/bchsv_usdt
  276. https://data.gateio.co/api2/1/tradeHistory/bchsv_cnyx
  277. https://data.gateio.co/api2/1/tradeHistory/bchsv_btc
  278. https://data.gateio.co/api2/1/tradeHistory/dcr_usdt
  279. https://data.gateio.co/api2/1/tradeHistory/dcr_btc
  280. https://data.gateio.co/api2/1/tradeHistory/bcn_usdt
  281. https://data.gateio.co/api2/1/tradeHistory/bcn_btc
  282. https://data.gateio.co/api2/1/tradeHistory/xmc_usdt
  283. https://data.gateio.co/api2/1/tradeHistory/xmc_btc
  284. https://data.gateio.co/api2/1/tradeHistory/pps_usdt
  285. https://data.gateio.co/api2/1/tradeHistory/atp_usdt
  286. https://data.gateio.co/api2/1/tradeHistory/atp_eth
  287. https://data.gateio.co/api2/1/tradeHistory/boe_eth
  288. https://data.gateio.co/api2/1/tradeHistory/boe_usdt
  289. https://data.gateio.co/api2/1/tradeHistory/nbot_eth
  290. https://data.gateio.co/api2/1/tradeHistory/nbot_usdt
  291. https://data.gateio.co/api2/1/tradeHistory/ply_eth
  292. https://data.gateio.co/api2/1/tradeHistory/medx_usdt
  293. https://data.gateio.co/api2/1/tradeHistory/medx_eth
  294. https://data.gateio.co/api2/1/tradeHistory/grin_usdt
  295. https://data.gateio.co/api2/1/tradeHistory/grin_eth
  296. https://data.gateio.co/api2/1/tradeHistory/grin_btc
  297. https://data.gateio.co/api2/1/tradeHistory/beam_usdt
  298. https://data.gateio.co/api2/1/tradeHistory/beam_eth
  299. https://data.gateio.co/api2/1/tradeHistory/beam_btc
  300. https://data.gateio.co/api2/1/tradeHistory/vtho_eth
  301. https://data.gateio.co/api2/1/tradeHistory/btt_usdt
  302. https://data.gateio.co/api2/1/tradeHistory/btt_eth
  303. https://data.gateio.co/api2/1/tradeHistory/tfuel_eth
  304. https://data.gateio.co/api2/1/tradeHistory/tfuel_usdt
  305. https://data.gateio.co/api2/1/tradeHistory/celr_eth
  306. https://data.gateio.co/api2/1/tradeHistory/celr_usdt
  307. https://data.gateio.co/api2/1/tradeHistory/cs_eth
  308. https://data.gateio.co/api2/1/tradeHistory/cs_usdt
  309. https://data.gateio.co/api2/1/tradeHistory/man_eth
  310. https://data.gateio.co/api2/1/tradeHistory/man_usdt
  311. https://data.gateio.co/api2/1/tradeHistory/rem_eth
  312. https://data.gateio.co/api2/1/tradeHistory/rem_usdt
  313. https://data.gateio.co/api2/1/tradeHistory/lym_eth
  314. https://data.gateio.co/api2/1/tradeHistory/lym_btc
  315. https://data.gateio.co/api2/1/tradeHistory/lym_usdt
  316. https://data.gateio.co/api2/1/tradeHistory/instar_eth
  317. https://data.gateio.co/api2/1/tradeHistory/ong_eth
  318. https://data.gateio.co/api2/1/tradeHistory/ong_usdt
  319. https://data.gateio.co/api2/1/tradeHistory/ont_eth
  320. https://data.gateio.co/api2/1/tradeHistory/ont_usdt
  321. https://data.gateio.co/api2/1/tradeHistory/bft_eth
  322. https://data.gateio.co/api2/1/tradeHistory/bft_usdt
  323. https://data.gateio.co/api2/1/tradeHistory/iht_eth
  324. https://data.gateio.co/api2/1/tradeHistory/iht_usdt
  325. https://data.gateio.co/api2/1/tradeHistory/senc_eth
  326. https://data.gateio.co/api2/1/tradeHistory/senc_usdt
  327. https://data.gateio.co/api2/1/tradeHistory/tomo_eth
  328. https://data.gateio.co/api2/1/tradeHistory/tomo_usdt
  329. https://data.gateio.co/api2/1/tradeHistory/elec_eth
  330. https://data.gateio.co/api2/1/tradeHistory/elec_usdt
  331. https://data.gateio.co/api2/1/tradeHistory/ship_eth
  332. https://data.gateio.co/api2/1/tradeHistory/tfd_eth
  333. https://data.gateio.co/api2/1/tradeHistory/hav_eth
  334. https://data.gateio.co/api2/1/tradeHistory/hav_usdt
  335. https://data.gateio.co/api2/1/tradeHistory/hur_eth
  336. https://data.gateio.co/api2/1/tradeHistory/lst_eth
  337. https://data.gateio.co/api2/1/tradeHistory/swth_eth
  338. https://data.gateio.co/api2/1/tradeHistory/swth_usdt
  339. https://data.gateio.co/api2/1/tradeHistory/nkn_eth
  340. https://data.gateio.co/api2/1/tradeHistory/nkn_usdt
  341. https://data.gateio.co/api2/1/tradeHistory/soul_eth
  342. https://data.gateio.co/api2/1/tradeHistory/soul_usdt
  343. https://data.gateio.co/api2/1/tradeHistory/lrn_eth
  344. https://data.gateio.co/api2/1/tradeHistory/lrn_usdt
  345. https://data.gateio.co/api2/1/tradeHistory/eosdac_eth
  346. https://data.gateio.co/api2/1/tradeHistory/eosdac_usdt
  347. https://data.gateio.co/api2/1/tradeHistory/add_eth
  348. https://data.gateio.co/api2/1/tradeHistory/iq_eth
  349. https://data.gateio.co/api2/1/tradeHistory/meetone_eth
  350. https://data.gateio.co/api2/1/tradeHistory/dock_usdt
  351. https://data.gateio.co/api2/1/tradeHistory/dock_eth
  352. https://data.gateio.co/api2/1/tradeHistory/gse_usdt
  353. https://data.gateio.co/api2/1/tradeHistory/gse_eth
  354. https://data.gateio.co/api2/1/tradeHistory/rating_usdt
  355. https://data.gateio.co/api2/1/tradeHistory/rating_eth
  356. https://data.gateio.co/api2/1/tradeHistory/hsc_usdt
  357. https://data.gateio.co/api2/1/tradeHistory/hsc_eth
  358. https://data.gateio.co/api2/1/tradeHistory/hit_usdt
  359. https://data.gateio.co/api2/1/tradeHistory/hit_eth
  360. https://data.gateio.co/api2/1/tradeHistory/dx_usdt
  361. https://data.gateio.co/api2/1/tradeHistory/dx_eth
  362. https://data.gateio.co/api2/1/tradeHistory/bxc_usdt
  363. https://data.gateio.co/api2/1/tradeHistory/bxc_eth
  364. https://data.gateio.co/api2/1/tradeHistory/pax_usdt
  365. https://data.gateio.co/api2/1/tradeHistory/pax_cnyx
  366. https://data.gateio.co/api2/1/tradeHistory/usdc_cnyx
  367. https://data.gateio.co/api2/1/tradeHistory/usdc_usdt
  368. https://data.gateio.co/api2/1/tradeHistory/tusd_cnyx
  369. https://data.gateio.co/api2/1/tradeHistory/tusd_usdt
  370. https://data.gateio.co/api2/1/tradeHistory/hc_usdt
  371. https://data.gateio.co/api2/1/tradeHistory/hc_btc
  372. https://data.gateio.co/api2/1/tradeHistory/hc_eth
  373. https://data.gateio.co/api2/1/tradeHistory/gard_usdt
  374. https://data.gateio.co/api2/1/tradeHistory/gard_eth
  375. https://data.gateio.co/api2/1/tradeHistory/fti_usdt
  376. https://data.gateio.co/api2/1/tradeHistory/fti_eth
  377. https://data.gateio.co/api2/1/tradeHistory/sop_eth
  378. https://data.gateio.co/api2/1/tradeHistory/sop_usdt
  379. https://data.gateio.co/api2/1/tradeHistory/lemo_usdt
  380. https://data.gateio.co/api2/1/tradeHistory/lemo_eth
  381. https://data.gateio.co/api2/1/tradeHistory/eon_eth
  382. https://data.gateio.co/api2/1/tradeHistory/npxs_eth
  383. https://data.gateio.co/api2/1/tradeHistory/qkc_usdt
  384. https://data.gateio.co/api2/1/tradeHistory/qkc_eth
  385. https://data.gateio.co/api2/1/tradeHistory/iotx_usdt
  386. https://data.gateio.co/api2/1/tradeHistory/iotx_eth
  387. https://data.gateio.co/api2/1/tradeHistory/red_usdt
  388. https://data.gateio.co/api2/1/tradeHistory/red_eth
  389. https://data.gateio.co/api2/1/tradeHistory/lba_usdt
  390. https://data.gateio.co/api2/1/tradeHistory/lba_eth
  391. https://data.gateio.co/api2/1/tradeHistory/open_usdt
  392. https://data.gateio.co/api2/1/tradeHistory/open_eth
  393. https://data.gateio.co/api2/1/tradeHistory/mith_usdt
  394. https://data.gateio.co/api2/1/tradeHistory/mith_eth
  395. https://data.gateio.co/api2/1/tradeHistory/skm_usdt
  396. https://data.gateio.co/api2/1/tradeHistory/skm_eth
  397. https://data.gateio.co/api2/1/tradeHistory/xvg_usdt
  398. https://data.gateio.co/api2/1/tradeHistory/xvg_btc
  399. https://data.gateio.co/api2/1/tradeHistory/nano_usdt
  400. https://data.gateio.co/api2/1/tradeHistory/nano_btc
  401. https://data.gateio.co/api2/1/tradeHistory/nbai_eth
  402. https://data.gateio.co/api2/1/tradeHistory/upp_eth
  403. https://data.gateio.co/api2/1/tradeHistory/atmi_eth
  404. https://data.gateio.co/api2/1/tradeHistory/tmt_eth
  405. https://data.gateio.co/api2/1/tradeHistory/ht_usdt
  406. https://data.gateio.co/api2/1/tradeHistory/bnb_usdt
  407. https://data.gateio.co/api2/1/tradeHistory/bbk_eth
  408. https://data.gateio.co/api2/1/tradeHistory/edr_eth
  409. https://data.gateio.co/api2/1/tradeHistory/met_eth
  410. https://data.gateio.co/api2/1/tradeHistory/met_usdt
  411. https://data.gateio.co/api2/1/tradeHistory/tct_eth
  412. https://data.gateio.co/api2/1/tradeHistory/tct_usdt
  413. https://data.gateio.co/api2/1/tradeHistory/mxc_usdt
  414. https://data.gateio.co/api2/1/tradeHistory/mxc_btc
  415. https://data.gateio.co/api2/1/tradeHistory/mxc_eth

Return data example:

    # Request
    GET: https://data.gateio.co/api2/1/tradeHistory/eth_btc/3275876
    # Response
    {
        "result": "true",
        "data": [
                {
                "tradeID": 3175762,
                "date": "2017-08-25 07:24:28",
                "type": "sell",
                "rate": 29011,
                "amount": 0.0019,
                "total": 55.1209
                },
                {
                "tradeID": 3175771,
                "date": "2017-08-25 07:24:41",
                "type": "sell",
                "rate": 29011,
                "amount": 0.0032,
                "total": 92.8352
                }
            ],
        "elapsed": "31.518ms"
    }
            

K-line data in trading market

Return K line data in the most recent time period of the market

URL: https://data.gateio.co/api2/1/candlestick2/[CURR_A]_[CURR_B]?group_sec=[GROUP_SEC]&range_hour=[RANGE_HOUR]

Return data example:

    # Request
    https://data.gateio.co/api2/1/candlestick2/btc_usdt?group_sec=60&range_hour=1
    # Response
    {
		"result": "true",
		"data": [
			[1524556800000, 12.8756391686, 9266.02, 9266.21, 9231.01, 9233.99],
			[1524558600000, 18.3153691562, 9255.79, 9284, 9251.01, 9252],
			[1524560400000, 17.5693326481, 9255, 9290.37, 9238.89, 9255.79],
			[1524562200000, 13.0314933662, 9281.92, 9295, 9239, 9255.4],
			[1524564000000, 26.0352948098, 9290.92, 9327.46, 9282, 9282],
			[1524565800000, 24.5813921079, 9300, 9340, 9290, 9297.5],
			[1524567600000, 27.8742949471, 9345, 9348.99, 9291.91, 9300],
			[1524569400000, 29.3344591996, 9299.99, 9349.99, 9290, 9343.93],
			[1524571200000, 28.4720072519, 9305, 9327.99, 9286.32, 9290.02],
			...
		]
	}
            

Return to K line data in [range_hour] range:

URL: https://data.gateio.co/api2/1/candlestick2/[CURR_A]_[CURR_B]?group_sec=[GROUP_SEC]&range_hour=[RANGE_HOUR]

Replace [CURR_A] and [CURR_B] for the currencies you need to view, GROUP_SEC and RANGE_HOUR for the time zone you need to obtain.

Links:

  1. https://data.gateio.co/api2/1/candlestick2/usdt_cnyx?group_set=60&range_hour=1
  2. https://data.gateio.co/api2/1/candlestick2/btc_cnyx?group_set=60&range_hour=1
  3. https://data.gateio.co/api2/1/candlestick2/eth_cnyx?group_set=60&range_hour=1
  4. https://data.gateio.co/api2/1/candlestick2/eos_cnyx?group_set=60&range_hour=1
  5. https://data.gateio.co/api2/1/candlestick2/bch_cnyx?group_set=60&range_hour=1
  6. https://data.gateio.co/api2/1/candlestick2/xrp_cnyx?group_set=60&range_hour=1
  7. https://data.gateio.co/api2/1/candlestick2/doge_cnyx?group_set=60&range_hour=1
  8. https://data.gateio.co/api2/1/candlestick2/tips_cnyx?group_set=60&range_hour=1
  9. https://data.gateio.co/api2/1/candlestick2/btc_usdt?group_set=60&range_hour=1
  10. https://data.gateio.co/api2/1/candlestick2/bch_usdt?group_set=60&range_hour=1
  11. https://data.gateio.co/api2/1/candlestick2/eth_usdt?group_set=60&range_hour=1
  12. https://data.gateio.co/api2/1/candlestick2/etc_usdt?group_set=60&range_hour=1
  13. https://data.gateio.co/api2/1/candlestick2/qtum_usdt?group_set=60&range_hour=1
  14. https://data.gateio.co/api2/1/candlestick2/ltc_usdt?group_set=60&range_hour=1
  15. https://data.gateio.co/api2/1/candlestick2/dash_usdt?group_set=60&range_hour=1
  16. https://data.gateio.co/api2/1/candlestick2/zec_usdt?group_set=60&range_hour=1
  17. https://data.gateio.co/api2/1/candlestick2/btm_usdt?group_set=60&range_hour=1
  18. https://data.gateio.co/api2/1/candlestick2/eos_usdt?group_set=60&range_hour=1
  19. https://data.gateio.co/api2/1/candlestick2/req_usdt?group_set=60&range_hour=1
  20. https://data.gateio.co/api2/1/candlestick2/snt_usdt?group_set=60&range_hour=1
  21. https://data.gateio.co/api2/1/candlestick2/omg_usdt?group_set=60&range_hour=1
  22. https://data.gateio.co/api2/1/candlestick2/pay_usdt?group_set=60&range_hour=1
  23. https://data.gateio.co/api2/1/candlestick2/cvc_usdt?group_set=60&range_hour=1
  24. https://data.gateio.co/api2/1/candlestick2/zrx_usdt?group_set=60&range_hour=1
  25. https://data.gateio.co/api2/1/candlestick2/tnt_usdt?group_set=60&range_hour=1
  26. https://data.gateio.co/api2/1/candlestick2/xmr_usdt?group_set=60&range_hour=1
  27. https://data.gateio.co/api2/1/candlestick2/xrp_usdt?group_set=60&range_hour=1
  28. https://data.gateio.co/api2/1/candlestick2/doge_usdt?group_set=60&range_hour=1
  29. https://data.gateio.co/api2/1/candlestick2/bat_usdt?group_set=60&range_hour=1
  30. https://data.gateio.co/api2/1/candlestick2/pst_usdt?group_set=60&range_hour=1
  31. https://data.gateio.co/api2/1/candlestick2/btg_usdt?group_set=60&range_hour=1
  32. https://data.gateio.co/api2/1/candlestick2/dpy_usdt?group_set=60&range_hour=1
  33. https://data.gateio.co/api2/1/candlestick2/lrc_usdt?group_set=60&range_hour=1
  34. https://data.gateio.co/api2/1/candlestick2/storj_usdt?group_set=60&range_hour=1
  35. https://data.gateio.co/api2/1/candlestick2/rdn_usdt?group_set=60&range_hour=1
  36. https://data.gateio.co/api2/1/candlestick2/stx_usdt?group_set=60&range_hour=1
  37. https://data.gateio.co/api2/1/candlestick2/knc_usdt?group_set=60&range_hour=1
  38. https://data.gateio.co/api2/1/candlestick2/link_usdt?group_set=60&range_hour=1
  39. https://data.gateio.co/api2/1/candlestick2/cdt_usdt?group_set=60&range_hour=1
  40. https://data.gateio.co/api2/1/candlestick2/ae_usdt?group_set=60&range_hour=1
  41. https://data.gateio.co/api2/1/candlestick2/ae_eth?group_set=60&range_hour=1
  42. https://data.gateio.co/api2/1/candlestick2/ae_btc?group_set=60&range_hour=1
  43. https://data.gateio.co/api2/1/candlestick2/cdt_eth?group_set=60&range_hour=1
  44. https://data.gateio.co/api2/1/candlestick2/rdn_eth?group_set=60&range_hour=1
  45. https://data.gateio.co/api2/1/candlestick2/stx_eth?group_set=60&range_hour=1
  46. https://data.gateio.co/api2/1/candlestick2/knc_eth?group_set=60&range_hour=1
  47. https://data.gateio.co/api2/1/candlestick2/link_eth?group_set=60&range_hour=1
  48. https://data.gateio.co/api2/1/candlestick2/req_eth?group_set=60&range_hour=1
  49. https://data.gateio.co/api2/1/candlestick2/rcn_eth?group_set=60&range_hour=1
  50. https://data.gateio.co/api2/1/candlestick2/trx_eth?group_set=60&range_hour=1
  51. https://data.gateio.co/api2/1/candlestick2/arn_eth?group_set=60&range_hour=1
  52. https://data.gateio.co/api2/1/candlestick2/kick_eth?group_set=60&range_hour=1
  53. https://data.gateio.co/api2/1/candlestick2/bnt_eth?group_set=60&range_hour=1
  54. https://data.gateio.co/api2/1/candlestick2/vet_eth?group_set=60&range_hour=1
  55. https://data.gateio.co/api2/1/candlestick2/mco_eth?group_set=60&range_hour=1
  56. https://data.gateio.co/api2/1/candlestick2/fun_eth?group_set=60&range_hour=1
  57. https://data.gateio.co/api2/1/candlestick2/data_eth?group_set=60&range_hour=1
  58. https://data.gateio.co/api2/1/candlestick2/rlc_eth?group_set=60&range_hour=1
  59. https://data.gateio.co/api2/1/candlestick2/rlc_usdt?group_set=60&range_hour=1
  60. https://data.gateio.co/api2/1/candlestick2/zsc_eth?group_set=60&range_hour=1
  61. https://data.gateio.co/api2/1/candlestick2/wings_eth?group_set=60&range_hour=1
  62. https://data.gateio.co/api2/1/candlestick2/mda_eth?group_set=60&range_hour=1
  63. https://data.gateio.co/api2/1/candlestick2/rcn_usdt?group_set=60&range_hour=1
  64. https://data.gateio.co/api2/1/candlestick2/trx_usdt?group_set=60&range_hour=1
  65. https://data.gateio.co/api2/1/candlestick2/kick_usdt?group_set=60&range_hour=1
  66. https://data.gateio.co/api2/1/candlestick2/vet_usdt?group_set=60&range_hour=1
  67. https://data.gateio.co/api2/1/candlestick2/mco_usdt?group_set=60&range_hour=1
  68. https://data.gateio.co/api2/1/candlestick2/fun_usdt?group_set=60&range_hour=1
  69. https://data.gateio.co/api2/1/candlestick2/data_usdt?group_set=60&range_hour=1
  70. https://data.gateio.co/api2/1/candlestick2/zsc_usdt?group_set=60&range_hour=1
  71. https://data.gateio.co/api2/1/candlestick2/mda_usdt?group_set=60&range_hour=1
  72. https://data.gateio.co/api2/1/candlestick2/xtz_usdt?group_set=60&range_hour=1
  73. https://data.gateio.co/api2/1/candlestick2/xtz_btc?group_set=60&range_hour=1
  74. https://data.gateio.co/api2/1/candlestick2/xtz_eth?group_set=60&range_hour=1
  75. https://data.gateio.co/api2/1/candlestick2/gnt_usdt?group_set=60&range_hour=1
  76. https://data.gateio.co/api2/1/candlestick2/gnt_eth?group_set=60&range_hour=1
  77. https://data.gateio.co/api2/1/candlestick2/gem_usdt?group_set=60&range_hour=1
  78. https://data.gateio.co/api2/1/candlestick2/gem_eth?group_set=60&range_hour=1
  79. https://data.gateio.co/api2/1/candlestick2/rfr_usdt?group_set=60&range_hour=1
  80. https://data.gateio.co/api2/1/candlestick2/rfr_eth?group_set=60&range_hour=1
  81. https://data.gateio.co/api2/1/candlestick2/dadi_usdt?group_set=60&range_hour=1
  82. https://data.gateio.co/api2/1/candlestick2/dadi_eth?group_set=60&range_hour=1
  83. https://data.gateio.co/api2/1/candlestick2/abt_usdt?group_set=60&range_hour=1
  84. https://data.gateio.co/api2/1/candlestick2/abt_eth?group_set=60&range_hour=1
  85. https://data.gateio.co/api2/1/candlestick2/ledu_btc?group_set=60&range_hour=1
  86. https://data.gateio.co/api2/1/candlestick2/ledu_eth?group_set=60&range_hour=1
  87. https://data.gateio.co/api2/1/candlestick2/ost_usdt?group_set=60&range_hour=1
  88. https://data.gateio.co/api2/1/candlestick2/ost_eth?group_set=60&range_hour=1
  89. https://data.gateio.co/api2/1/candlestick2/xlm_usdt?group_set=60&range_hour=1
  90. https://data.gateio.co/api2/1/candlestick2/xlm_eth?group_set=60&range_hour=1
  91. https://data.gateio.co/api2/1/candlestick2/xlm_btc?group_set=60&range_hour=1
  92. https://data.gateio.co/api2/1/candlestick2/mobi_usdt?group_set=60&range_hour=1
  93. https://data.gateio.co/api2/1/candlestick2/mobi_eth?group_set=60&range_hour=1
  94. https://data.gateio.co/api2/1/candlestick2/mobi_btc?group_set=60&range_hour=1
  95. https://data.gateio.co/api2/1/candlestick2/ocn_usdt?group_set=60&range_hour=1
  96. https://data.gateio.co/api2/1/candlestick2/ocn_eth?group_set=60&range_hour=1
  97. https://data.gateio.co/api2/1/candlestick2/ocn_btc?group_set=60&range_hour=1
  98. https://data.gateio.co/api2/1/candlestick2/zpt_usdt?group_set=60&range_hour=1
  99. https://data.gateio.co/api2/1/candlestick2/zpt_eth?group_set=60&range_hour=1
  100. https://data.gateio.co/api2/1/candlestick2/zpt_btc?group_set=60&range_hour=1
  101. https://data.gateio.co/api2/1/candlestick2/cofi_usdt?group_set=60&range_hour=1
  102. https://data.gateio.co/api2/1/candlestick2/cofi_eth?group_set=60&range_hour=1
  103. https://data.gateio.co/api2/1/candlestick2/jnt_usdt?group_set=60&range_hour=1
  104. https://data.gateio.co/api2/1/candlestick2/jnt_eth?group_set=60&range_hour=1
  105. https://data.gateio.co/api2/1/candlestick2/jnt_btc?group_set=60&range_hour=1
  106. https://data.gateio.co/api2/1/candlestick2/blz_usdt?group_set=60&range_hour=1
  107. https://data.gateio.co/api2/1/candlestick2/blz_eth?group_set=60&range_hour=1
  108. https://data.gateio.co/api2/1/candlestick2/gxs_usdt?group_set=60&range_hour=1
  109. https://data.gateio.co/api2/1/candlestick2/gxs_btc?group_set=60&range_hour=1
  110. https://data.gateio.co/api2/1/candlestick2/mtn_usdt?group_set=60&range_hour=1
  111. https://data.gateio.co/api2/1/candlestick2/mtn_eth?group_set=60&range_hour=1
  112. https://data.gateio.co/api2/1/candlestick2/ruff_usdt?group_set=60&range_hour=1
  113. https://data.gateio.co/api2/1/candlestick2/ruff_eth?group_set=60&range_hour=1
  114. https://data.gateio.co/api2/1/candlestick2/ruff_btc?group_set=60&range_hour=1
  115. https://data.gateio.co/api2/1/candlestick2/tnc_usdt?group_set=60&range_hour=1
  116. https://data.gateio.co/api2/1/candlestick2/tnc_eth?group_set=60&range_hour=1
  117. https://data.gateio.co/api2/1/candlestick2/tnc_btc?group_set=60&range_hour=1
  118. https://data.gateio.co/api2/1/candlestick2/zil_usdt?group_set=60&range_hour=1
  119. https://data.gateio.co/api2/1/candlestick2/zil_eth?group_set=60&range_hour=1
  120. https://data.gateio.co/api2/1/candlestick2/bto_usdt?group_set=60&range_hour=1
  121. https://data.gateio.co/api2/1/candlestick2/bto_eth?group_set=60&range_hour=1
  122. https://data.gateio.co/api2/1/candlestick2/theta_usdt?group_set=60&range_hour=1
  123. https://data.gateio.co/api2/1/candlestick2/theta_eth?group_set=60&range_hour=1
  124. https://data.gateio.co/api2/1/candlestick2/ddd_usdt?group_set=60&range_hour=1
  125. https://data.gateio.co/api2/1/candlestick2/ddd_eth?group_set=60&range_hour=1
  126. https://data.gateio.co/api2/1/candlestick2/ddd_btc?group_set=60&range_hour=1
  127. https://data.gateio.co/api2/1/candlestick2/mkr_usdt?group_set=60&range_hour=1
  128. https://data.gateio.co/api2/1/candlestick2/mkr_eth?group_set=60&range_hour=1
  129. https://data.gateio.co/api2/1/candlestick2/dai_usdt?group_set=60&range_hour=1
  130. https://data.gateio.co/api2/1/candlestick2/smt_usdt?group_set=60&range_hour=1
  131. https://data.gateio.co/api2/1/candlestick2/smt_eth?group_set=60&range_hour=1
  132. https://data.gateio.co/api2/1/candlestick2/mdt_usdt?group_set=60&range_hour=1
  133. https://data.gateio.co/api2/1/candlestick2/mdt_eth?group_set=60&range_hour=1
  134. https://data.gateio.co/api2/1/candlestick2/mdt_btc?group_set=60&range_hour=1
  135. https://data.gateio.co/api2/1/candlestick2/mana_usdt?group_set=60&range_hour=1
  136. https://data.gateio.co/api2/1/candlestick2/mana_eth?group_set=60&range_hour=1
  137. https://data.gateio.co/api2/1/candlestick2/lun_usdt?group_set=60&range_hour=1
  138. https://data.gateio.co/api2/1/candlestick2/lun_eth?group_set=60&range_hour=1
  139. https://data.gateio.co/api2/1/candlestick2/salt_usdt?group_set=60&range_hour=1
  140. https://data.gateio.co/api2/1/candlestick2/salt_eth?group_set=60&range_hour=1
  141. https://data.gateio.co/api2/1/candlestick2/fuel_usdt?group_set=60&range_hour=1
  142. https://data.gateio.co/api2/1/candlestick2/fuel_eth?group_set=60&range_hour=1
  143. https://data.gateio.co/api2/1/candlestick2/elf_usdt?group_set=60&range_hour=1
  144. https://data.gateio.co/api2/1/candlestick2/elf_eth?group_set=60&range_hour=1
  145. https://data.gateio.co/api2/1/candlestick2/drgn_usdt?group_set=60&range_hour=1
  146. https://data.gateio.co/api2/1/candlestick2/drgn_eth?group_set=60&range_hour=1
  147. https://data.gateio.co/api2/1/candlestick2/gtc_usdt?group_set=60&range_hour=1
  148. https://data.gateio.co/api2/1/candlestick2/gtc_eth?group_set=60&range_hour=1
  149. https://data.gateio.co/api2/1/candlestick2/gtc_btc?group_set=60&range_hour=1
  150. https://data.gateio.co/api2/1/candlestick2/qlc_usdt?group_set=60&range_hour=1
  151. https://data.gateio.co/api2/1/candlestick2/qlc_btc?group_set=60&range_hour=1
  152. https://data.gateio.co/api2/1/candlestick2/qlc_eth?group_set=60&range_hour=1
  153. https://data.gateio.co/api2/1/candlestick2/dbc_usdt?group_set=60&range_hour=1
  154. https://data.gateio.co/api2/1/candlestick2/dbc_btc?group_set=60&range_hour=1
  155. https://data.gateio.co/api2/1/candlestick2/dbc_eth?group_set=60&range_hour=1
  156. https://data.gateio.co/api2/1/candlestick2/bnty_usdt?group_set=60&range_hour=1
  157. https://data.gateio.co/api2/1/candlestick2/bnty_eth?group_set=60&range_hour=1
  158. https://data.gateio.co/api2/1/candlestick2/lend_usdt?group_set=60&range_hour=1
  159. https://data.gateio.co/api2/1/candlestick2/lend_eth?group_set=60&range_hour=1
  160. https://data.gateio.co/api2/1/candlestick2/icx_usdt?group_set=60&range_hour=1
  161. https://data.gateio.co/api2/1/candlestick2/icx_eth?group_set=60&range_hour=1
  162. https://data.gateio.co/api2/1/candlestick2/btf_usdt?group_set=60&range_hour=1
  163. https://data.gateio.co/api2/1/candlestick2/btf_btc?group_set=60&range_hour=1
  164. https://data.gateio.co/api2/1/candlestick2/ada_usdt?group_set=60&range_hour=1
  165. https://data.gateio.co/api2/1/candlestick2/ada_btc?group_set=60&range_hour=1
  166. https://data.gateio.co/api2/1/candlestick2/lsk_usdt?group_set=60&range_hour=1
  167. https://data.gateio.co/api2/1/candlestick2/lsk_btc?group_set=60&range_hour=1
  168. https://data.gateio.co/api2/1/candlestick2/waves_usdt?group_set=60&range_hour=1
  169. https://data.gateio.co/api2/1/candlestick2/waves_btc?group_set=60&range_hour=1
  170. https://data.gateio.co/api2/1/candlestick2/bifi_usdt?group_set=60&range_hour=1
  171. https://data.gateio.co/api2/1/candlestick2/bifi_btc?group_set=60&range_hour=1
  172. https://data.gateio.co/api2/1/candlestick2/mds_eth?group_set=60&range_hour=1
  173. https://data.gateio.co/api2/1/candlestick2/mds_usdt?group_set=60&range_hour=1
  174. https://data.gateio.co/api2/1/candlestick2/dgd_usdt?group_set=60&range_hour=1
  175. https://data.gateio.co/api2/1/candlestick2/dgd_eth?group_set=60&range_hour=1
  176. https://data.gateio.co/api2/1/candlestick2/qash_usdt?group_set=60&range_hour=1
  177. https://data.gateio.co/api2/1/candlestick2/qash_eth?group_set=60&range_hour=1
  178. https://data.gateio.co/api2/1/candlestick2/qash_btc?group_set=60&range_hour=1
  179. https://data.gateio.co/api2/1/candlestick2/powr_usdt?group_set=60&range_hour=1
  180. https://data.gateio.co/api2/1/candlestick2/powr_eth?group_set=60&range_hour=1
  181. https://data.gateio.co/api2/1/candlestick2/powr_btc?group_set=60&range_hour=1
  182. https://data.gateio.co/api2/1/candlestick2/fil_usdt?group_set=60&range_hour=1
  183. https://data.gateio.co/api2/1/candlestick2/bcd_usdt?group_set=60&range_hour=1
  184. https://data.gateio.co/api2/1/candlestick2/bcd_btc?group_set=60&range_hour=1
  185. https://data.gateio.co/api2/1/candlestick2/sbtc_usdt?group_set=60&range_hour=1
  186. https://data.gateio.co/api2/1/candlestick2/sbtc_btc?group_set=60&range_hour=1
  187. https://data.gateio.co/api2/1/candlestick2/god_usdt?group_set=60&range_hour=1
  188. https://data.gateio.co/api2/1/candlestick2/god_btc?group_set=60&range_hour=1
  189. https://data.gateio.co/api2/1/candlestick2/bcx_usdt?group_set=60&range_hour=1
  190. https://data.gateio.co/api2/1/candlestick2/bcx_btc?group_set=60&range_hour=1
  191. https://data.gateio.co/api2/1/candlestick2/qsp_usdt?group_set=60&range_hour=1
  192. https://data.gateio.co/api2/1/candlestick2/qsp_eth?group_set=60&range_hour=1
  193. https://data.gateio.co/api2/1/candlestick2/ink_btc?group_set=60&range_hour=1
  194. https://data.gateio.co/api2/1/candlestick2/ink_usdt?group_set=60&range_hour=1
  195. https://data.gateio.co/api2/1/candlestick2/ink_eth?group_set=60&range_hour=1
  196. https://data.gateio.co/api2/1/candlestick2/ink_qtum?group_set=60&range_hour=1
  197. https://data.gateio.co/api2/1/candlestick2/med_qtum?group_set=60&range_hour=1
  198. https://data.gateio.co/api2/1/candlestick2/med_eth?group_set=60&range_hour=1
  199. https://data.gateio.co/api2/1/candlestick2/med_usdt?group_set=60&range_hour=1
  200. https://data.gateio.co/api2/1/candlestick2/bot_qtum?group_set=60&range_hour=1
  201. https://data.gateio.co/api2/1/candlestick2/bot_usdt?group_set=60&range_hour=1
  202. https://data.gateio.co/api2/1/candlestick2/bot_eth?group_set=60&range_hour=1
  203. https://data.gateio.co/api2/1/candlestick2/qbt_qtum?group_set=60&range_hour=1
  204. https://data.gateio.co/api2/1/candlestick2/qbt_eth?group_set=60&range_hour=1
  205. https://data.gateio.co/api2/1/candlestick2/qbt_usdt?group_set=60&range_hour=1
  206. https://data.gateio.co/api2/1/candlestick2/tsl_qtum?group_set=60&range_hour=1
  207. https://data.gateio.co/api2/1/candlestick2/tsl_usdt?group_set=60&range_hour=1
  208. https://data.gateio.co/api2/1/candlestick2/gnx_usdt?group_set=60&range_hour=1
  209. https://data.gateio.co/api2/1/candlestick2/gnx_eth?group_set=60&range_hour=1
  210. https://data.gateio.co/api2/1/candlestick2/neo_usdt?group_set=60&range_hour=1
  211. https://data.gateio.co/api2/1/candlestick2/gas_usdt?group_set=60&range_hour=1
  212. https://data.gateio.co/api2/1/candlestick2/neo_btc?group_set=60&range_hour=1
  213. https://data.gateio.co/api2/1/candlestick2/gas_btc?group_set=60&range_hour=1
  214. https://data.gateio.co/api2/1/candlestick2/iota_usdt?group_set=60&range_hour=1
  215. https://data.gateio.co/api2/1/candlestick2/iota_btc?group_set=60&range_hour=1
  216. https://data.gateio.co/api2/1/candlestick2/nas_usdt?group_set=60&range_hour=1
  217. https://data.gateio.co/api2/1/candlestick2/nas_eth?group_set=60&range_hour=1
  218. https://data.gateio.co/api2/1/candlestick2/nas_btc?group_set=60&range_hour=1
  219. https://data.gateio.co/api2/1/candlestick2/eth_btc?group_set=60&range_hour=1
  220. https://data.gateio.co/api2/1/candlestick2/etc_btc?group_set=60&range_hour=1
  221. https://data.gateio.co/api2/1/candlestick2/etc_eth?group_set=60&range_hour=1
  222. https://data.gateio.co/api2/1/candlestick2/zec_btc?group_set=60&range_hour=1
  223. https://data.gateio.co/api2/1/candlestick2/dash_btc?group_set=60&range_hour=1
  224. https://data.gateio.co/api2/1/candlestick2/ltc_btc?group_set=60&range_hour=1
  225. https://data.gateio.co/api2/1/candlestick2/bch_btc?group_set=60&range_hour=1
  226. https://data.gateio.co/api2/1/candlestick2/btg_btc?group_set=60&range_hour=1
  227. https://data.gateio.co/api2/1/candlestick2/qtum_btc?group_set=60&range_hour=1
  228. https://data.gateio.co/api2/1/candlestick2/qtum_eth?group_set=60&range_hour=1
  229. https://data.gateio.co/api2/1/candlestick2/xrp_btc?group_set=60&range_hour=1
  230. https://data.gateio.co/api2/1/candlestick2/doge_btc?group_set=60&range_hour=1
  231. https://data.gateio.co/api2/1/candlestick2/xmr_btc?group_set=60&range_hour=1
  232. https://data.gateio.co/api2/1/candlestick2/zrx_btc?group_set=60&range_hour=1
  233. https://data.gateio.co/api2/1/candlestick2/zrx_eth?group_set=60&range_hour=1
  234. https://data.gateio.co/api2/1/candlestick2/dnt_eth?group_set=60&range_hour=1
  235. https://data.gateio.co/api2/1/candlestick2/dpy_eth?group_set=60&range_hour=1
  236. https://data.gateio.co/api2/1/candlestick2/oax_btc?group_set=60&range_hour=1
  237. https://data.gateio.co/api2/1/candlestick2/oax_usdt?group_set=60&range_hour=1
  238. https://data.gateio.co/api2/1/candlestick2/oax_eth?group_set=60&range_hour=1
  239. https://data.gateio.co/api2/1/candlestick2/rep_eth?group_set=60&range_hour=1
  240. https://data.gateio.co/api2/1/candlestick2/lrc_eth?group_set=60&range_hour=1
  241. https://data.gateio.co/api2/1/candlestick2/lrc_btc?group_set=60&range_hour=1
  242. https://data.gateio.co/api2/1/candlestick2/pst_eth?group_set=60&range_hour=1
  243. https://data.gateio.co/api2/1/candlestick2/bcdn_eth?group_set=60&range_hour=1
  244. https://data.gateio.co/api2/1/candlestick2/bcdn_usdt?group_set=60&range_hour=1
  245. https://data.gateio.co/api2/1/candlestick2/tnt_eth?group_set=60&range_hour=1
  246. https://data.gateio.co/api2/1/candlestick2/snt_eth?group_set=60&range_hour=1
  247. https://data.gateio.co/api2/1/candlestick2/snt_btc?group_set=60&range_hour=1
  248. https://data.gateio.co/api2/1/candlestick2/btm_eth?group_set=60&range_hour=1
  249. https://data.gateio.co/api2/1/candlestick2/btm_btc?group_set=60&range_hour=1
  250. https://data.gateio.co/api2/1/candlestick2/snet_eth?group_set=60&range_hour=1
  251. https://data.gateio.co/api2/1/candlestick2/snet_usdt?group_set=60&range_hour=1
  252. https://data.gateio.co/api2/1/candlestick2/llt_snet?group_set=60&range_hour=1
  253. https://data.gateio.co/api2/1/candlestick2/omg_eth?group_set=60&range_hour=1
  254. https://data.gateio.co/api2/1/candlestick2/omg_btc?group_set=60&range_hour=1
  255. https://data.gateio.co/api2/1/candlestick2/pay_eth?group_set=60&range_hour=1
  256. https://data.gateio.co/api2/1/candlestick2/pay_btc?group_set=60&range_hour=1
  257. https://data.gateio.co/api2/1/candlestick2/bat_eth?group_set=60&range_hour=1
  258. https://data.gateio.co/api2/1/candlestick2/bat_btc?group_set=60&range_hour=1
  259. https://data.gateio.co/api2/1/candlestick2/cvc_eth?group_set=60&range_hour=1
  260. https://data.gateio.co/api2/1/candlestick2/storj_eth?group_set=60&range_hour=1
  261. https://data.gateio.co/api2/1/candlestick2/storj_btc?group_set=60&range_hour=1
  262. https://data.gateio.co/api2/1/candlestick2/eos_eth?group_set=60&range_hour=1
  263. https://data.gateio.co/api2/1/candlestick2/eos_btc?group_set=60&range_hour=1
  264. https://data.gateio.co/api2/1/candlestick2/bts_usdt?group_set=60&range_hour=1
  265. https://data.gateio.co/api2/1/candlestick2/bts_btc?group_set=60&range_hour=1
  266. https://data.gateio.co/api2/1/candlestick2/tips_eth?group_set=60&range_hour=1
  267. https://data.gateio.co/api2/1/candlestick2/gt_btc?group_set=60&range_hour=1
  268. https://data.gateio.co/api2/1/candlestick2/gt_usdt?group_set=60&range_hour=1
  269. https://data.gateio.co/api2/1/candlestick2/xem_eth?group_set=60&range_hour=1
  270. https://data.gateio.co/api2/1/candlestick2/xem_usdt?group_set=60&range_hour=1
  271. https://data.gateio.co/api2/1/candlestick2/xem_btc?group_set=60&range_hour=1
  272. https://data.gateio.co/api2/1/candlestick2/bu_usdt?group_set=60&range_hour=1
  273. https://data.gateio.co/api2/1/candlestick2/bu_eth?group_set=60&range_hour=1
  274. https://data.gateio.co/api2/1/candlestick2/bu_btc?group_set=60&range_hour=1
  275. https://data.gateio.co/api2/1/candlestick2/bchsv_usdt?group_set=60&range_hour=1
  276. https://data.gateio.co/api2/1/candlestick2/bchsv_cnyx?group_set=60&range_hour=1
  277. https://data.gateio.co/api2/1/candlestick2/bchsv_btc?group_set=60&range_hour=1
  278. https://data.gateio.co/api2/1/candlestick2/dcr_usdt?group_set=60&range_hour=1
  279. https://data.gateio.co/api2/1/candlestick2/dcr_btc?group_set=60&range_hour=1
  280. https://data.gateio.co/api2/1/candlestick2/bcn_usdt?group_set=60&range_hour=1
  281. https://data.gateio.co/api2/1/candlestick2/bcn_btc?group_set=60&range_hour=1
  282. https://data.gateio.co/api2/1/candlestick2/xmc_usdt?group_set=60&range_hour=1
  283. https://data.gateio.co/api2/1/candlestick2/xmc_btc?group_set=60&range_hour=1
  284. https://data.gateio.co/api2/1/candlestick2/pps_usdt?group_set=60&range_hour=1
  285. https://data.gateio.co/api2/1/candlestick2/atp_usdt?group_set=60&range_hour=1
  286. https://data.gateio.co/api2/1/candlestick2/atp_eth?group_set=60&range_hour=1
  287. https://data.gateio.co/api2/1/candlestick2/boe_eth?group_set=60&range_hour=1
  288. https://data.gateio.co/api2/1/candlestick2/boe_usdt?group_set=60&range_hour=1
  289. https://data.gateio.co/api2/1/candlestick2/nbot_eth?group_set=60&range_hour=1
  290. https://data.gateio.co/api2/1/candlestick2/nbot_usdt?group_set=60&range_hour=1
  291. https://data.gateio.co/api2/1/candlestick2/ply_eth?group_set=60&range_hour=1
  292. https://data.gateio.co/api2/1/candlestick2/medx_usdt?group_set=60&range_hour=1
  293. https://data.gateio.co/api2/1/candlestick2/medx_eth?group_set=60&range_hour=1
  294. https://data.gateio.co/api2/1/candlestick2/grin_usdt?group_set=60&range_hour=1
  295. https://data.gateio.co/api2/1/candlestick2/grin_eth?group_set=60&range_hour=1
  296. https://data.gateio.co/api2/1/candlestick2/grin_btc?group_set=60&range_hour=1
  297. https://data.gateio.co/api2/1/candlestick2/beam_usdt?group_set=60&range_hour=1
  298. https://data.gateio.co/api2/1/candlestick2/beam_eth?group_set=60&range_hour=1
  299. https://data.gateio.co/api2/1/candlestick2/beam_btc?group_set=60&range_hour=1
  300. https://data.gateio.co/api2/1/candlestick2/vtho_eth?group_set=60&range_hour=1
  301. https://data.gateio.co/api2/1/candlestick2/btt_usdt?group_set=60&range_hour=1
  302. https://data.gateio.co/api2/1/candlestick2/btt_eth?group_set=60&range_hour=1
  303. https://data.gateio.co/api2/1/candlestick2/tfuel_eth?group_set=60&range_hour=1
  304. https://data.gateio.co/api2/1/candlestick2/tfuel_usdt?group_set=60&range_hour=1
  305. https://data.gateio.co/api2/1/candlestick2/celr_eth?group_set=60&range_hour=1
  306. https://data.gateio.co/api2/1/candlestick2/celr_usdt?group_set=60&range_hour=1
  307. https://data.gateio.co/api2/1/candlestick2/cs_eth?group_set=60&range_hour=1
  308. https://data.gateio.co/api2/1/candlestick2/cs_usdt?group_set=60&range_hour=1
  309. https://data.gateio.co/api2/1/candlestick2/man_eth?group_set=60&range_hour=1
  310. https://data.gateio.co/api2/1/candlestick2/man_usdt?group_set=60&range_hour=1
  311. https://data.gateio.co/api2/1/candlestick2/rem_eth?group_set=60&range_hour=1
  312. https://data.gateio.co/api2/1/candlestick2/rem_usdt?group_set=60&range_hour=1
  313. https://data.gateio.co/api2/1/candlestick2/lym_eth?group_set=60&range_hour=1
  314. https://data.gateio.co/api2/1/candlestick2/lym_btc?group_set=60&range_hour=1
  315. https://data.gateio.co/api2/1/candlestick2/lym_usdt?group_set=60&range_hour=1
  316. https://data.gateio.co/api2/1/candlestick2/instar_eth?group_set=60&range_hour=1
  317. https://data.gateio.co/api2/1/candlestick2/ong_eth?group_set=60&range_hour=1
  318. https://data.gateio.co/api2/1/candlestick2/ong_usdt?group_set=60&range_hour=1
  319. https://data.gateio.co/api2/1/candlestick2/ont_eth?group_set=60&range_hour=1
  320. https://data.gateio.co/api2/1/candlestick2/ont_usdt?group_set=60&range_hour=1
  321. https://data.gateio.co/api2/1/candlestick2/bft_eth?group_set=60&range_hour=1
  322. https://data.gateio.co/api2/1/candlestick2/bft_usdt?group_set=60&range_hour=1
  323. https://data.gateio.co/api2/1/candlestick2/iht_eth?group_set=60&range_hour=1
  324. https://data.gateio.co/api2/1/candlestick2/iht_usdt?group_set=60&range_hour=1
  325. https://data.gateio.co/api2/1/candlestick2/senc_eth?group_set=60&range_hour=1
  326. https://data.gateio.co/api2/1/candlestick2/senc_usdt?group_set=60&range_hour=1
  327. https://data.gateio.co/api2/1/candlestick2/tomo_eth?group_set=60&range_hour=1
  328. https://data.gateio.co/api2/1/candlestick2/tomo_usdt?group_set=60&range_hour=1
  329. https://data.gateio.co/api2/1/candlestick2/elec_eth?group_set=60&range_hour=1
  330. https://data.gateio.co/api2/1/candlestick2/elec_usdt?group_set=60&range_hour=1
  331. https://data.gateio.co/api2/1/candlestick2/ship_eth?group_set=60&range_hour=1
  332. https://data.gateio.co/api2/1/candlestick2/tfd_eth?group_set=60&range_hour=1
  333. https://data.gateio.co/api2/1/candlestick2/hav_eth?group_set=60&range_hour=1
  334. https://data.gateio.co/api2/1/candlestick2/hav_usdt?group_set=60&range_hour=1
  335. https://data.gateio.co/api2/1/candlestick2/hur_eth?group_set=60&range_hour=1
  336. https://data.gateio.co/api2/1/candlestick2/lst_eth?group_set=60&range_hour=1
  337. https://data.gateio.co/api2/1/candlestick2/swth_eth?group_set=60&range_hour=1
  338. https://data.gateio.co/api2/1/candlestick2/swth_usdt?group_set=60&range_hour=1
  339. https://data.gateio.co/api2/1/candlestick2/nkn_eth?group_set=60&range_hour=1
  340. https://data.gateio.co/api2/1/candlestick2/nkn_usdt?group_set=60&range_hour=1
  341. https://data.gateio.co/api2/1/candlestick2/soul_eth?group_set=60&range_hour=1
  342. https://data.gateio.co/api2/1/candlestick2/soul_usdt?group_set=60&range_hour=1
  343. https://data.gateio.co/api2/1/candlestick2/lrn_eth?group_set=60&range_hour=1
  344. https://data.gateio.co/api2/1/candlestick2/lrn_usdt?group_set=60&range_hour=1
  345. https://data.gateio.co/api2/1/candlestick2/eosdac_eth?group_set=60&range_hour=1
  346. https://data.gateio.co/api2/1/candlestick2/eosdac_usdt?group_set=60&range_hour=1
  347. https://data.gateio.co/api2/1/candlestick2/add_eth?group_set=60&range_hour=1
  348. https://data.gateio.co/api2/1/candlestick2/iq_eth?group_set=60&range_hour=1
  349. https://data.gateio.co/api2/1/candlestick2/meetone_eth?group_set=60&range_hour=1
  350. https://data.gateio.co/api2/1/candlestick2/dock_usdt?group_set=60&range_hour=1
  351. https://data.gateio.co/api2/1/candlestick2/dock_eth?group_set=60&range_hour=1
  352. https://data.gateio.co/api2/1/candlestick2/gse_usdt?group_set=60&range_hour=1
  353. https://data.gateio.co/api2/1/candlestick2/gse_eth?group_set=60&range_hour=1
  354. https://data.gateio.co/api2/1/candlestick2/rating_usdt?group_set=60&range_hour=1
  355. https://data.gateio.co/api2/1/candlestick2/rating_eth?group_set=60&range_hour=1
  356. https://data.gateio.co/api2/1/candlestick2/hsc_usdt?group_set=60&range_hour=1
  357. https://data.gateio.co/api2/1/candlestick2/hsc_eth?group_set=60&range_hour=1
  358. https://data.gateio.co/api2/1/candlestick2/hit_usdt?group_set=60&range_hour=1
  359. https://data.gateio.co/api2/1/candlestick2/hit_eth?group_set=60&range_hour=1
  360. https://data.gateio.co/api2/1/candlestick2/dx_usdt?group_set=60&range_hour=1
  361. https://data.gateio.co/api2/1/candlestick2/dx_eth?group_set=60&range_hour=1
  362. https://data.gateio.co/api2/1/candlestick2/bxc_usdt?group_set=60&range_hour=1
  363. https://data.gateio.co/api2/1/candlestick2/bxc_eth?group_set=60&range_hour=1
  364. https://data.gateio.co/api2/1/candlestick2/pax_usdt?group_set=60&range_hour=1
  365. https://data.gateio.co/api2/1/candlestick2/pax_cnyx?group_set=60&range_hour=1
  366. https://data.gateio.co/api2/1/candlestick2/usdc_cnyx?group_set=60&range_hour=1
  367. https://data.gateio.co/api2/1/candlestick2/usdc_usdt?group_set=60&range_hour=1
  368. https://data.gateio.co/api2/1/candlestick2/tusd_cnyx?group_set=60&range_hour=1
  369. https://data.gateio.co/api2/1/candlestick2/tusd_usdt?group_set=60&range_hour=1
  370. https://data.gateio.co/api2/1/candlestick2/hc_usdt?group_set=60&range_hour=1
  371. https://data.gateio.co/api2/1/candlestick2/hc_btc?group_set=60&range_hour=1
  372. https://data.gateio.co/api2/1/candlestick2/hc_eth?group_set=60&range_hour=1
  373. https://data.gateio.co/api2/1/candlestick2/gard_usdt?group_set=60&range_hour=1
  374. https://data.gateio.co/api2/1/candlestick2/gard_eth?group_set=60&range_hour=1
  375. https://data.gateio.co/api2/1/candlestick2/fti_usdt?group_set=60&range_hour=1
  376. https://data.gateio.co/api2/1/candlestick2/fti_eth?group_set=60&range_hour=1
  377. https://data.gateio.co/api2/1/candlestick2/sop_eth?group_set=60&range_hour=1
  378. https://data.gateio.co/api2/1/candlestick2/sop_usdt?group_set=60&range_hour=1
  379. https://data.gateio.co/api2/1/candlestick2/lemo_usdt?group_set=60&range_hour=1
  380. https://data.gateio.co/api2/1/candlestick2/lemo_eth?group_set=60&range_hour=1
  381. https://data.gateio.co/api2/1/candlestick2/eon_eth?group_set=60&range_hour=1
  382. https://data.gateio.co/api2/1/candlestick2/npxs_eth?group_set=60&range_hour=1
  383. https://data.gateio.co/api2/1/candlestick2/qkc_usdt?group_set=60&range_hour=1
  384. https://data.gateio.co/api2/1/candlestick2/qkc_eth?group_set=60&range_hour=1
  385. https://data.gateio.co/api2/1/candlestick2/iotx_usdt?group_set=60&range_hour=1
  386. https://data.gateio.co/api2/1/candlestick2/iotx_eth?group_set=60&range_hour=1
  387. https://data.gateio.co/api2/1/candlestick2/red_usdt?group_set=60&range_hour=1
  388. https://data.gateio.co/api2/1/candlestick2/red_eth?group_set=60&range_hour=1
  389. https://data.gateio.co/api2/1/candlestick2/lba_usdt?group_set=60&range_hour=1
  390. https://data.gateio.co/api2/1/candlestick2/lba_eth?group_set=60&range_hour=1
  391. https://data.gateio.co/api2/1/candlestick2/open_usdt?group_set=60&range_hour=1
  392. https://data.gateio.co/api2/1/candlestick2/open_eth?group_set=60&range_hour=1
  393. https://data.gateio.co/api2/1/candlestick2/mith_usdt?group_set=60&range_hour=1
  394. https://data.gateio.co/api2/1/candlestick2/mith_eth?group_set=60&range_hour=1
  395. https://data.gateio.co/api2/1/candlestick2/skm_usdt?group_set=60&range_hour=1
  396. https://data.gateio.co/api2/1/candlestick2/skm_eth?group_set=60&range_hour=1
  397. https://data.gateio.co/api2/1/candlestick2/xvg_usdt?group_set=60&range_hour=1
  398. https://data.gateio.co/api2/1/candlestick2/xvg_btc?group_set=60&range_hour=1
  399. https://data.gateio.co/api2/1/candlestick2/nano_usdt?group_set=60&range_hour=1
  400. https://data.gateio.co/api2/1/candlestick2/nano_btc?group_set=60&range_hour=1
  401. https://data.gateio.co/api2/1/candlestick2/nbai_eth?group_set=60&range_hour=1
  402. https://data.gateio.co/api2/1/candlestick2/upp_eth?group_set=60&range_hour=1
  403. https://data.gateio.co/api2/1/candlestick2/atmi_eth?group_set=60&range_hour=1
  404. https://data.gateio.co/api2/1/candlestick2/tmt_eth?group_set=60&range_hour=1
  405. https://data.gateio.co/api2/1/candlestick2/ht_usdt?group_set=60&range_hour=1
  406. https://data.gateio.co/api2/1/candlestick2/bnb_usdt?group_set=60&range_hour=1
  407. https://data.gateio.co/api2/1/candlestick2/bbk_eth?group_set=60&range_hour=1
  408. https://data.gateio.co/api2/1/candlestick2/edr_eth?group_set=60&range_hour=1
  409. https://data.gateio.co/api2/1/candlestick2/met_eth?group_set=60&range_hour=1
  410. https://data.gateio.co/api2/1/candlestick2/met_usdt?group_set=60&range_hour=1
  411. https://data.gateio.co/api2/1/candlestick2/tct_eth?group_set=60&range_hour=1
  412. https://data.gateio.co/api2/1/candlestick2/tct_usdt?group_set=60&range_hour=1
  413. https://data.gateio.co/api2/1/candlestick2/mxc_usdt?group_set=60&range_hour=1
  414. https://data.gateio.co/api2/1/candlestick2/mxc_btc?group_set=60&range_hour=1
  415. https://data.gateio.co/api2/1/candlestick2/mxc_eth?group_set=60&range_hour=1

Return data example:

    # Request
    GET: https://data.gateio.co/api2/1/candlestick2/btc_usdt?group_sec=60&range_hour=1
    # Response
    {
		"result": "true",
		"data": [
			[1524556800000, 12.8756391686, 9266.02, 9266.21, 9231.01, 9233.99],
			[1524558600000, 18.3153691562, 9255.79, 9284, 9251.01, 9252],
			[1524560400000, 17.5693326481, 9255, 9290.37, 9238.89, 9255.79],
			[1524562200000, 13.0314933662, 9281.92, 9295, 9239, 9255.4],
			[1524564000000, 26.0352948098, 9290.92, 9327.46, 9282, 9282],
			[1524565800000, 24.5813921079, 9300, 9340, 9290, 9297.5],
			[1524567600000, 27.8742949471, 9345, 9348.99, 9291.91, 9300],
			[1524569400000, 29.3344591996, 9299.99, 9349.99, 9290, 9343.93],
			[1524571200000, 28.4720072519, 9305, 9327.99, 9286.32, 9290.02],
			...
		]
	}
            

Response description

   time
   trading volume
   close price
   highest price
   lowest price
   open price				

C2C Depth API

Return the C2C market depth including ask and bid orders.

URL: https://data.gateio.co/api2/1/orderBooks_c2c


Current market depth API

Return the C2C market depth including ask and bid orders.

URL: https://data.gateio.co/api2/1/orderBook_c2c/[CURR_A]_[CURR_B]

Replace [CURR_A] and [CURR_B] with the selected currencies.

Links:

  1. https://data.gateio.co/api2/1/orderBook_c2c/usdt_cny
  2. https://data.gateio.co/api2/1/orderBook_c2c/btc_cny
  3. https://data.gateio.co/api2/1/orderBook_c2c/cnyx_cny
  4. https://data.gateio.co/api2/1/orderBook_c2c/usdt_krw

Return data example:

    # Request
    GET: https://data.gateio.co/api2/1/orderBook_c2c/usdt_cny
    # Response
	{
		"result": "true",
		"asks": [
			["6.86", "306.1114", "100.0000", "30000.0000"],
			["6.86", "808.0467", "100.0000", "4220.0000"],
			["6.86", "12922.3622", "200.0000", "24131.4000"],
			["6.86", "4412.0000", "300.0000", "4412.0000"]
		],
		"bids": [
			["6.84", "3654.9707", "3654.0000", "3654.9700"],
			["6.84", "17487.1700", "1500.0000", "30000.0000"],
			["6.84", "21.1317", "20.0000", "1461.9883"],
			["6.83", "27846.0000", "800.0000", "30000.0000"]
		]
	},
            

Trade API

Error codes details from system

The user has to go through firstthis linkGet Key and Secret for API interface authentication. Secret is used as the password in the program. Sign is obtained by signing the data that POST needs to send to the server through SHA512 encryption. Key and ign are returned in the Header part of HTTPS request. Please refer to the following interface instructions and example programs to set up

Get account balance API

API URL: https://api.gateio.co/api2/1/private/balances

Parameter data submission: POST

Parameters: no

Return data format: JSON

Return data example:

    # Request
    POST: https://api.gateio.co/api2/1/private/balances
    # Response
    {
        "result": "true",
        "available": {
            "BTC": "1000",
            "ETH": "968.8",
            "ETC": "0",
            },
        "locked": {
            "ETH": "1"
            }
    }
            

Get leverage account balance API

API URL: https://api.gateio.co/api2/1/private/marginbalances

Parameter data submission: POST

Parameters: no

Return data format: JSON

Return data example:

    # Request
    POST: https://api.gateio.co/api2/1/private/marginbalances
    # Response
    {
        "result": "true",
        "datas": [
            {
                "market": "BTC_USDT",
                "curr_a": "BTC",
                "curr_b": "USDT",
                "available_a": "99.993214",
                "available_b": "9994.000035",
                "frozen_a": "0.000000",
                "frozen_b": "0.000000",
                "borrowed_a": "0.000000",
                "borrowed_b": "0.000000"
            }
        ]
    }
                    

Get the financial account balance API

API URL: https://api.gateio.co/api2/1/private/fundingbalances

Parameter data submission: POST

Parameters: no

Return data format: JSON

Return data example:

    # Request
    POST: https://api.gateio.co/api2/1/private/fundingbalances
    # Response
    {
        "result": "true",
        "datas": [
            {
                "asset": "BTC",
                "available": "0.000000",
                "freeze": "10.000000",
                "lent": "0.000000",
                "total_lend": "10.000000"
            },
            {
                "asset": "USDT",
                "available": "0.000000",
                "freeze": "0.000000",
                "lent": "0.000000",
                "total_lend": "0.000000"
            },
            {
                "asset": "ETH",
                "available": "99987.911780",
                "freeze": "0.000000",
                "lent": "0.000000",
                "total_lend": "0.000000"
            }
        ]
    }
                    

Get the recharge address API

API URL: https://api.gateio.co/api2/1/private/depositAddress

Parameter data submission: POST

Return data format: JSON

Request parameters

Parameter Parameter type Required Description
currency String yes Currencies such as (BTC, LTC)

Return data example:

    # Request
    POST: https://api.gateio.co/api2/1/private/depositAddress
    # Response
    {
        "result": "true",
        "addr": "LPXtk1kWHioP62SzfqwKbYE3Z7Wt2ujYEc",
        "message": "Sucess",
        "code": 0
    }
            

Get repaid history API

API URL: https://api.gateio.co/api2/1/private/depositsWithdrawals

Parameter data submission: POST

Return data format: JSON

Request parameters

Parameter Parameter type Required Description
start String no Start UNIX time (e.g. 1469092370)
end String no Termination of UNIX time (e.g. 1469713981)

Return data example:

    # Request
    POST: https://api.gateio.co/api2/1/private/depositsWithdrawals
    # Response
    {
        "result": "true",
        "deposits": [
                {
                "id": "c204730",
                "currency": "ETH",
                "address": "1111 1111 1111 1111 1111 1",
                "amount": "222.61",
                "txid": "210496",
                "timestamp": "1474962729",
                "status": "DONE"
                }

            ],
        "withdraws": [
                {
                "currency": "ETC",
                "address": "addr2",
                "amount": "600000000",
                "txid": "2104963",
                "timestamp": "1469092378",
                "status": "DONE"
                }
            ],
        "message": "Success"
    }
            

Order and buy API

API URL: https://api.gateio.co/api2/1/private/buy

Parameter data submission: POST

Return data format: JSON

Request parameters

Parameter Parameter type Required Description Return data example:
currencyPair String yes Trade currency pairs (such as ltc_btc,ltc_btc) ltc_btc
rate String yes Price 1000
amount String yes 30-day Volume 800
orderType String no Order type ("": Ordinary order (default); "ioc": Immediate-Or-Cancel (IOC)) ioc

Return data example:

    # Request
    POST: https://api.gateio.co/api2/1/private/buy
    # Response
    {
		"result":"true",
		"orderNumber":"123456",
		"rate":"1000",
		"leftAmount":"0",
		"filledAmount":"0.1",
		"filledRate":"800.00",
		"message":"Success"
    }


Place an order and trade to sell API

API URL: https://api.gateio.co/api2/1/private/sell

Parameter data submission: POST

Return data format: JSON

Request parameters

Parameter Parameter type Required Description Return data example:
currencyPair String yes Trade currency pairs (such as ltc_btc,ltc_btc) ltc_btc
rate String yes Price 1000
amount String yes Volume 800
orderType String no Order type ("": Ordinary order (default); "ioc": Immediate-Or-Cancel (IOC)) ioc

Return data example:

    # Request
    POST: https://api.gateio.co/api2/1/private/sell
    # Response
    {
		"result":"true",
		"orderNumber":"123456",
		"rate":"1000",
		"leftAmount":"0",
		"filledAmount":"0.1",
		"filledRate":"800.00",
		"message":"Success"
    }


Cancel the order API

API URL: https://api.gateio.co/api2/1/private/cancelOrder

Parameter data submission: POST

Return data format: JSON

Request parameters

Parameter Parameter type Required Description
orderNumber String yes The serial number of the order
currencyPair String yes Trading currency pairs (such as ltc_btc)

Return data example:

    # Request
    POST: https://api.gateio.co/api2/1/private/cancelOrder
    # Response
   {"result":"true","message":"Success"}

Cancel multiple order apis

API URL: https://api.gateio.co/api2/1/private/cancelOrders

Parameter data submission: POST

Return data format: JSON

Request parameters

Parameter Parameter type Required Description
orders_json String yes [ { "orderNumber":"7942422" "currencyPair":"ltc_btc" }, { "orderNumber":"7942423" "currencyPair":"ltc_btc" } ]

Return data example:

    # Request
    POST: https://api.gateio.co/api2/1/private/cancelOrders
    # Response
   {"result":"true","message":"Success"}

Cancel all ordering apis

API URL: https://api.gateio.co/api2/1/private/cancelAllOrders

Parameter data submission: POST

Return data format: JSON

Request parameters

Parameter Parameter type Required Description
type int yes Order type (0: sell,1: buy,-1: unlimited)
currencyPair String yes Trade currency pairs (example: LTC BTC)

Return data example:

    # Request
    POST: https://api.gateio.co/api2/1/private/cancelAllOrders
    # Response
   {"result":"true","message":"Success"}

Get the order status API

API URL: https://api.gateio.co/api2/1/private/getOrder

Parameter data submission: POST

Return data format: JSON

Request parameters

Parameter Parameter type Required Description
orderNumber String yes The serial number of the order
currencyPair String yes Exchange currency pair (e.g. Eth BTC)

Return data example:

    # Request
    POST: https://api.gateio.co/api2/1/private/getOrder
    # Response
    {
        "result":"true",
        "order":{
            "id":"15088",
            "status":"cancelled",
            "currencyPair":"eth_btc",
            "type":"sell",
            "rate":811,
            "amount":"0.39901357",
            "initialRate":811,
            "initialAmount":"1"
            },
        "message":"Success"
    }

Gets my current list API

API URL: https://api.gateio.co/api2/1/private/openOrders

Parameter data submission: POST

Request parameters

Parameter Parameter type Required Description
currencyPair String no Exchange currency pair (e.g. Eth BTC)

Returns all trading market pending when the currencyPair parameter is empty

Return data format: JSON

Return data example:

    # Request
    POST: https://api.gateio.co/api2/1/private/openOrders
    # Response
    {
        "result": "true", "message": "Success", "code": 0,"elapsed": "6.262ms",
        "orders": [
                {
                "orderNumber": "30032151",
                "type": "buy",
                "rate": 21367.521367521,
                "amount": "0.0936",
                "total": "2000",
                "initialRate": 21367.521367521,
                "initialAmount": "0.0936",
                "filledRate": 0,
                "filledAmount": 0,
                "currencyPair": "eth_btc",
                "timestamp": "1407828913",
                "status": "open"
                }
            ]
        }

Get my transaction record API within 24 hours

API URL: https://api.gateio.co/api2/1/private/tradeHistory

Parameter data submission: POST

Return data format: JSON

Parameters:

Parameter Parameter type Required Description
currencyPair String yes Currency pair
orderNumber String no Order number

Return data example:

    # Request
    POST: https://api.gateio.co/api2/1/private/tradeHistory
    # Response
    {
        "result": "true",
        "message": "Success",
        "trades": [
                {
                "id": "7942422",
                "orderid": "38100491",
                "pair": "ltc_btc",
                "type": "buy",
                "rate": "0.01719",
                "amount": "0.0588",
                "time": "06-12 02:49:11",
                "time_unix": "1402512551"
                }
            ]
    }

Withdrawal API

API URL: https://api.gateio.co/api2/1/private/withdraw

Parameter data submission: POST

Return data format: JSON

Request parameters

Parameter Parameter type Required Description
currency String yes Currency (e.g. : BTC)
amount String yes Withdraw amount
address String yes Address(Transaction MEMO can be entered after the address separated by a space, format: Address MEMO)

Return data example:

    # Request
    POST: https://api.gateio.co/api2/1/private/withdraw
    # Response
    { "result": "true",  "message": "Success"}

Error code

Error codes details from system

Error codes Details
1 Invalid request
2 Invalid version
3 Invalid request
4 Forbidden access
5,6 Invalid sign
7 Currency is not supported
8,9 Currency is not supported
10 Verified failed
11 Obtaining address failed
12 Empty params
13 Internal error, please report to administrator
14 Invalid user
15 Cancel order too fast, please wait 1 min and try again
16 Invalid order id or order is already closed
17 Invalid orderid
18 Invalid amount
19 Not permitted or trade is disabled
20 Your order size is too small
21 You don't have enough fund
40 Too many attempts

Demos

Example codes in PHP (More:JAVA, NODEJS, PYTHON, GO, PHP, CSHARP, PERL )

					

	<?php

		function gateio_query($path, array $req = array()) {
			// API settings, add your Key and Secret at here
			$key = '';
			$secret = '';

			// generate a nonce to avoid problems with 32bits systems
			$mt = explode(' ', microtime());
			$req['nonce'] = $mt[1].substr($mt[0], 2, 6);

			// generate the POST data string
			$post_data = http_build_query($req, '', '&');
			$sign = hash_hmac('sha512', urldecode($post_data), $secret);

			// generate the extra headers
			$headers = array(
				'KEY: '.$key,
				'SIGN: '.$sign
			);

			//!!! please set Content-Type to application/x-www-form-urlencoded if it's not the default value

			// curl handle (initialize if required)
			static $ch = null;
			if (is_null($ch)) {
				$ch = curl_init();
				curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
				curl_setopt($ch, CURLOPT_USERAGENT, 'Mozilla/4.0 (compatible; gateio PHP bot; '.php_uname('a').'; PHP/'.phpversion().')');
			}

			curl_setopt($ch, CURLOPT_URL, 'https://api.gateio.co/api2/'.$path);
			curl_setopt($ch, CURLOPT_POSTFIELDS, $post_data);
			curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
			curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
			curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, FALSE);


			// run the query
			$res = curl_exec($ch);

			if ($res === false) throw new Exception('Could not get reply: '.curl_error($ch));
			//var_dump($res);
			//print_r($res);
			$dec = json_decode($res, true);
			if (!$dec) throw new Exception('Invalid data received, please make sure connection is working and requested API exists: '.$res);

			return $dec;
		}


		function curl_file_get_contents($url) {

			// our curl handle (initialize if required)
			static $ch = null;
			if (is_null($ch)) {
				$ch = curl_init();
				curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
				curl_setopt($ch, CURLOPT_USERAGENT,
					'Mozilla/4.0 (compatible; gateio PHP bot; '.php_uname('a').'; PHP/'.phpversion().')'
					);
			}
			curl_setopt($ch, CURLOPT_URL, 'https://data.gateio.co/api2/'.$url);
			curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);

			// run the query
			$res = curl_exec($ch);
			if ($res === false) throw new Exception('Could not get reply: '.curl_error($ch));
			//echo $res;
			$dec = json_decode($res, true);
			if (!$dec) throw new Exception('Invalid data: '.$res);

			return $dec;
		}

		function get_top_rate($currency_pair, $type='BUY') {

			$url = '1/orderBook/'.strtoupper($currency_pair);
			$json = curl_file_get_contents($url);

			$rate = 0;

			if (strtoupper($type) == 'BUY') {
				$r =  $json['bids'][0];
				$rate = $r[0];
			} else  {
				$r = end($json['asks']);
				$rate = $r[0];
			}

			return $rate;
		}

		function get_pairs() {

			$url = '1/pairs';
			$json = curl_file_get_contents($url);

			return $json;
		}

		function get_marketinfo(){

			$url = '1/marketinfo';
			$json = curl_file_get_contents($url);

			return $json;
		}

		function get_tickers(){

			$url = '1/tickers';
			$json = curl_file_get_contents($url);

			return $json;
		}

		function get_ticker($current_pairs){

			$url = '1/ticker/'.strtoupper($current_pairs);
			$json = curl_file_get_contents($url);

			return $json;
		}

		function get_orderbooks(){

			$url = '1/orderBooks';
			$json = curl_file_get_contents($url);

			return $json;
		}

		function get_orderbook($current_pairs){

			$url = '1/orderBook/'.strtoupper($current_pairs);
			$json = curl_file_get_contents($url);

			return $json;
		}

		function get_trade_history($current_pairs, $tid){

			$url = '1/tradeHistory/'.strtoupper($current_pairs).'/'.$tid;
			$json = curl_file_get_contents($url);

			return $json;
		}

		function get_balances() {

			return gateio_query('1/private/balances');
		}

		function withdraw($currency, $amount, $address) {

			return gateio_query('1/private/withdraw',
				array(
					'currency' => strtoupper($currency),
					'amount' => $amount,
					'address' => $address
				)
			);
		}

		function get_order($order_number, $currency_pair) {

			return gateio_query('1/private/getOrder',
				array(
					'currencyPair' => strtoupper($currency_pair),
					'orderNumber' => $order_number
				)
			);
		}

		function cancel_order($order_number, $currency_pair) {

			return gateio_query('1/private/cancelOrder',
				array(
					'currencyPair' => strtoupper($currency_pair),
					'orderNumber' => $order_number
				)
			);
		}

		function cancel_all_orders($type, $currency_pair) {

			return gateio_query('1/private/cancelAllOrders',
				array(
					'type' => $type,
					'currencyPair' => strtoupper($currency_pair)
				)
			);
		}

		function sell($currency_pair, $rate, $amount) {

			return gateio_query('1/private/sell',
				array(
					'currencyPair' => strtoupper($currency_pair),
					'rate' => $rate,
					'amount' => $amount,
				)
			);
		}

		function buy($currency_pair, $rate, $amount) {

			return gateio_query('1/private/buy',
				array(
					'currencyPair' => strtoupper($currency_pair),
					'rate' => $rate,
					'amount' => $amount,
				)
			);
		}

		function get_my_trade_history($currency_pair, $order_number) {

			return gateio_query('1/private/tradeHistory',
				array(
					'currencyPair' => strtoupper($currency_pair),
					'orderNumber' => $order_number
				)
			);
		}

		function open_orders() {

			return gateio_query('1/private/openOrders');
		}

		function deposit_address($currency) {

			return gateio_query('1/private/depositAddress',
				array(
					'currency' => strtoupper($currency)
				)
			);
		}


		try {
			// example 1: get balances
			var_dump(get_balances());

			// example 2: place a buy order
			$pair = 'ltc_btc';
			$rate = get_top_rate($pair, $type) * 1.01;
			var_dump(buy($pair, $rate, '0.01'));

			// example 3: cancel an order
			var_dump(cancel_order(125811, $pair));

			// example 4: get order status
			var_dump(get_order(15088, $pair));

			// example 5: list all open orders
			var_dump(open_orders());

		} catch (Exception $e) {
			echo "Error:".$e->getMessage();

		}
	?>