Skip to content
iTick
  1. 文档
  2. REST API
  3. 外汇数据
  4. 实时盘口

实时盘口

全球主流外汇货币对的实时盘口,包含EUR、GBP、JPY、CHF等主要货币对的多档买卖价格与挂单量。数据实时更新,展现完整的市场流动性深度。

GET/forex/depth

请求参数

regionenum必填

市场代码

codestring必填

产品代码

响应参数

codenumber

响应code

msgstring

响应描述

dataobject▶响应结果
sstring

symbol标的代码

aarray(object)▶卖盘
pointeger

档位

pnumber

价格

vnumber

挂单量

onumber

订单数量

barray(object)▶买盘
pointeger

档位

pnumber

价格

vnumber

挂单量

onumber

订单数量

代码示例

import requests

url = "https://api.itick.org/forex/depth?region=GB&code=EURUSD"

headers = {
"accept": "application/json"
"token": "Your Token"
}

response = requests.get(url, headers=headers)

print(response.text)

查询 URL

GEThttps://api.itick.org/forex/depth?region=GB&code=EURUSD

,即可运行查询

响应结果

{
  "code": 0,
  "msg": null,
  "data": {
    "s": "EURUSD",
    "a": [
      {
        "po": 1,
        "p": 1.16423,
        "v": 0,
        "o": 1
      }
    ],
    "b": [
      {
        "po": 1,
        "p": 1.16421,
        "v": 0,
        "o": 1
      }
    ]
  }
}