Markets/HTTP
If you do not know your token, please contact relevant personnel to request it
65b31e26-312c-4e71-89ae-f5e33073d1c8-1676446387481Please encode the following fields, the backend service will decode them upon receiving { "trace": "enim occaecat dolore esse voluptate", "data": { "symbol_list": [ { "code": "GBPJPY" }, { "code": "CADJPY" } ] } } trace: Trace code, used for log query, please ensure it is unique for each request code: Please refer to the code list and select the code you want to query
%7B%20%20%20%20%22trace%22%3A%20%22enim%20occaecat%20dolore%20esse%20voluptate%22%2C%20%20%20%20%22data%22%3A%20%7B%20%20%20%20%20%20%20%20%22symbol_list%22%3A%20%5B%20%20%20%20%20%20%20%20%20%20%20%20%7B%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%22code%22%3A%20%22GBPJPY%22%20%20%20%20%20%20%20%20%20%20%20%20%7D%2C%20%20%20%20%20%20%20%20%20%20%20%20%7B%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%22code%22%3A%20%22CADJPY%22%20%20%20%20%20%20%20%20%20%20%20%20%7D%20%20%20%20%20%20%20%20%5D%20%20%20%20%7D%7DGET /openapi-b/quote-b-api/depth-tick?token=text&query=text HTTP/1.1
Host: pre-api-test.cmfbl.com
Accept: */*
{
"ret": 200,
"msg": "ok",
"trace": "asdfsdfa",
"data": {
"tick_list": [
{
"code": "857.HK",
"seq": "30686349",
"tick_time": "1677830357227",
"bids": [
{
"price": "136.424",
"volume": "100000.00"
}
],
"asks": [
{
"price": "136.427",
"volume": "400000.00"
}
]
}
]
}
}If you do not know your token, please contact relevant personnel to request it
e945d7d9-9e6e-4721-922a-7251a9d311d0-1678159756806Please encode the following fields, the backend service will decode them upon receiving { "trace": "enim occaecat dolore esse voluptate", "data": { "symbol_list": [ { "code": "GBPJPY" }, { "code": "CADJPY" } ] } } trace: Trace code, used for log query, please ensure it is unique for each request code: Please refer to the code list and select the code you want to query
%7B%20%20%20%20%22trace%22%3A%20%22enim%20occaecat%20dolore%20esse%20voluptate%22%2C%20%20%20%20%22data%22%3A%20%7B%20%20%20%20%20%20%20%20%22symbol_list%22%3A%20%5B%20%20%20%20%20%20%20%20%20%20%20%20%7B%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%22code%22%3A%20%22GBPJPY%22%20%20%20%20%20%20%20%20%20%20%20%20%7D%2C%20%20%20%20%20%20%20%20%20%20%20%20%7B%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%22code%22%3A%20%22CADJPY%22%20%20%20%20%20%20%20%20%20%20%20%20%7D%20%20%20%20%20%20%20%20%5D%20%20%20%20%7D%7DGET /openapi-b/quote-stock-b-api/depth-tick?token=text&query=text HTTP/1.1
Host: pre-api-test.cmfbl.com
Accept: */*
{
"ret": 200,
"msg": "ok",
"trace": "asdfsdfa",
"data": {
"tick_list": [
{
"code": "857.HK",
"seq": "30686349",
"tick_time": "1677830357227",
"bids": [
{
"price": "136.424",
"volume": "100000.00"
}
],
"asks": [
{
"price": "136.427",
"volume": "400000.00"
}
]
}
]
}
}If you do not know your token, please contact relevant personnel to request it
65b31e26-312c-4e71-89ae-f5e33073d1c8-1676446387481Please encode the following fields, the backend service will decode them upon receiving { "trace": "enim occaecat dolore esse voluptate", "data": { "symbol_list": [ { "code": "GBPJPY" }, { "code": "CADJPY" } ] } } trace: Trace code, used for log query, please ensure it is unique for each request code: Please refer to the code list and select the code you want to query
%7B%20%20%20%20%22trace%22%3A%20%22enim%20occaecat%20dolore%20esse%20voluptate%22%2C%20%20%20%20%22data%22%3A%20%7B%20%20%20%20%20%20%20%20%22symbol_list%22%3A%20%5B%20%20%20%20%20%20%20%20%20%20%20%20%7B%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%22code%22%3A%20%22GBPJPY%22%20%20%20%20%20%20%20%20%20%20%20%20%7D%2C%20%20%20%20%20%20%20%20%20%20%20%20%7B%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%22code%22%3A%20%22CADJPY%22%20%20%20%20%20%20%20%20%20%20%20%20%7D%20%20%20%20%20%20%20%20%5D%20%20%20%20%7D%7DGET /openapi-b/quote-b-api/trade-tick?token=text&query=text HTTP/1.1
Host: pre-api-test.cmfbl.com
Accept: */*
{
"ret": 200,
"msg": "ok",
"trace": "asdfsdfa",
"data": {
"tick_list": [
{
"code": "857.HK",
"seq": "30841439",
"tick_time": "1677831545217",
"price": "136.302",
"volume": "0",
"turnover": "0",
"trade_direction": 0
}
]
}
}If you do not know your token, please contact relevant personnel to request it
e945d7d9-9e6e-4721-922a-7251a9d311d0-1678159756806Please encode the following fields, the backend service will decode them upon receiving { "trace": "enim occaecat dolore esse voluptate", "data": { "symbol_list": [ { "code": "GBPJPY" }, { "code": "CADJPY" } ] } } trace: Trace code, used for log query, please ensure it is unique for each request code: Please refer to the code list and select the code you want to query
%7B%20%20%20%20%22trace%22%3A%20%22enim%20occaecat%20dolore%20esse%20voluptate%22%2C%20%20%20%20%22data%22%3A%20%7B%20%20%20%20%20%20%20%20%22symbol_list%22%3A%20%5B%20%20%20%20%20%20%20%20%20%20%20%20%7B%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%22code%22%3A%20%22GBPJPY%22%20%20%20%20%20%20%20%20%20%20%20%20%7D%2C%20%20%20%20%20%20%20%20%20%20%20%20%7B%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%22code%22%3A%20%22CADJPY%22%20%20%20%20%20%20%20%20%20%20%20%20%7D%20%20%20%20%20%20%20%20%5D%20%20%20%20%7D%7DGET /openapi-b/quote-stock-b-api/trade-tick?token=text&query=text HTTP/1.1
Host: pre-api-test.cmfbl.com
Accept: */*
{
"ret": 200,
"msg": "ok",
"trace": "asdfsdfa",
"data": {
"tick_list": [
{
"code": "857.HK",
"seq": "30841439",
"tick_time": "1677831545217",
"price": "136.302",
"volume": "0",
"turnover": "0",
"trade_direction": 0
}
]
}
}If you do not know your token, please contact relevant personnel to request it
65b31e26-312c-4e71-89ae-f5e33073d1c8-1676446387481Please encode the following fields, the backend service will decode after receiving { "trace": "culpa cillum ea reprehenderit occaecat", "data": { "code": "GBPJPY", "kline_type": 1, "kline_timestamp_end": 0, "query_kline_num": 2, "adjust_type": 0 } } trace: tracking code, used for log query, please ensure it is unique for each request code: please refer to the code list, select the code you want to query kline_type: k-line type, 1 for 1-minute K, 2 for 5-minute K, 3 for 15-minute K, 4 for 30-minute K, 5 for hourly K, 6 for 2-hour K, 7 for 4-hour K, 8 for daily K, 9 for weekly K, 10 for monthly K kline_timestamp_end: the time point to query from, 0 means from current time, only valid for non-stock codes query_kline_num: how many K-lines to query, maximum of 1000 adjust_type: adjustment type, only valid for stock codes, e.g. 0: ex-rights, 1: pre-adjustment
{% '{"trace": "culpa cillum ea reprehenderit occaecat","data": {"code": "GBPJPY", "kline_type": 1,"kline_timestamp_end": 0,"query_kline_num": 2,"adjust_type": 0}}'|encodeURIComponent %}GET /openapi-b/quote-b-api/kline?token=text&query=text HTTP/1.1
Host: pre-api-test.cmfbl.com
Accept: */*
{
"ret": 200,
"msg": "ok",
"trace": "asdfsdfa",
"data": {
"code": "857.HK",
"kline_type": 1,
"kline_list": [
{
"timestamp": "1677829200",
"open_price": "136.421",
"close_price": "136.412",
"high_price": "136.422",
"low_price": "136.407",
"volume": "0",
"turnover": "0"
},
{
"timestamp": "1677829260",
"open_price": "136.412",
"close_price": "136.401",
"high_price": "136.415",
"low_price": "136.397",
"volume": "0",
"turnover": "0"
}
]
}
}If you do not know your token, please contact relevant personnel to request it
65b31e26-312c-4e71-89ae-f5e33073d1c8-1676446387481GET /openapi-b/quote-b-api/batch-kline?token=text HTTP/1.1
Host: pre-api-test.cmfbl.com
Content-Type: application/json
Accept: */*
Content-Length: 235
{
"trace": "{{mock_trace}}",
"data": {
"data_list": [
{
"code": "EURJPY",
"kline_type": 1,
"kline_timestamp_end": 0,
"query_kline_num": 2,
"adjust_type": 0
},
{
"code": "EURJPY",
"kline_type": 1,
"kline_timestamp_end": 0,
"query_kline_num": 2,
"adjust_type": 0
}
]
}
}{
"ret": 200,
"msg": "ok",
"trace": "asdfsdfa",
"data": {
"code": "857.HK",
"kline_type": 1,
"kline_list": [
{
"timestamp": "1677829200",
"open_price": "136.421",
"close_price": "136.412",
"high_price": "136.422",
"low_price": "136.407",
"volume": "0",
"turnover": "0"
},
{
"timestamp": "1677829260",
"open_price": "136.412",
"close_price": "136.401",
"high_price": "136.415",
"low_price": "136.397",
"volume": "0",
"turnover": "0"
}
]
}
}If you do not know your token, please contact relevant personnel to request it
e945d7d9-9e6e-4721-922a-7251a9d311d0-1678159756806Please encode the following fields, the backend service will decode after receiving { "trace": "culpa cillum ea reprehenderit occaecat", "data": { "code": "GBPJPY", "kline_type": 1, "kline_timestamp_end": 0, "query_kline_num": 2, "adjust_type": 0 } } trace: tracking code, used for log query, please ensure it is unique for each request code: please refer to the code list, select the code you want to query kline_type: k-line type, 1 for 1-minute K, 2 for 5-minute K, 3 for 15-minute K, 4 for 30-minute K, 5 for hourly K, 6 for 2-hour K, 7 for 4-hour K, 8 for daily K, 9 for weekly K, 10 for monthly K kline_timestamp_end: the time point to query from, 0 means from current time, only valid for non-stock codes query_kline_num: how many K-lines to query, maximum of 1000 adjust_type: adjustment type, only valid for stock codes, e.g. 0: ex-rights, 1: pre-adjustment
{% '{"trace": "culpa cillum ea reprehenderit occaecat","data": {"code": "GBPJPY", "kline_type": 1,"kline_timestamp_end": 0,"query_kline_num": 2,"adjust_type": 0}}'|encodeURIComponent %}GET /openapi-b/quote-stock-b-api/kline?token=text&query=text HTTP/1.1
Host: pre-api-test.cmfbl.com
Accept: */*
{
"ret": 200,
"msg": "ok",
"trace": "asdfsdfa",
"data": {
"code": "857.HK",
"kline_type": 1,
"kline_list": [
{
"timestamp": "1677829200",
"open_price": "136.421",
"close_price": "136.412",
"high_price": "136.422",
"low_price": "136.407",
"volume": "0",
"turnover": "0"
},
{
"timestamp": "1677829260",
"open_price": "136.412",
"close_price": "136.401",
"high_price": "136.415",
"low_price": "136.397",
"volume": "0",
"turnover": "0"
}
]
}
}If you do not know your token, please contact relevant personnel to request it
e945d7d9-9e6e-4721-922a-7251a9d311d0-1678159756806GET /openapi-b/quote-stock-b-api/batch-kline?token=text HTTP/1.1
Host: pre-api-test.cmfbl.com
Content-Type: application/json
Accept: */*
Content-Length: 235
{
"trace": "{{mock_trace}}",
"data": {
"data_list": [
{
"code": "EURJPY",
"kline_type": 1,
"kline_timestamp_end": 0,
"query_kline_num": 2,
"adjust_type": 0
},
{
"code": "USDJPY",
"kline_type": 1,
"kline_timestamp_end": 0,
"query_kline_num": 2,
"adjust_type": 0
}
]
}
}{
"ret": 200,
"msg": "ok",
"trace": "asdfsdfa",
"data": {
"code": "857.HK",
"kline_type": 1,
"kline_list": [
{
"timestamp": "1677829200",
"open_price": "136.421",
"close_price": "136.412",
"high_price": "136.422",
"low_price": "136.407",
"volume": "0",
"turnover": "0"
},
{
"timestamp": "1677829260",
"open_price": "136.412",
"close_price": "136.401",
"high_price": "136.415",
"low_price": "136.397",
"volume": "0",
"turnover": "0"
}
]
}
}Last updated