Market Trading Days
This API is used to obtain the trading days of the market.
SDK Links
ℹ️Info
Request
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| market | string | Yes | Market Optional value: US - US marketHK - HK marketCN - CN marketSG - SG market |
| beg_day | string | Yes | begin day, in YYMMDD format, for example: 20220401 |
| end_day | string | Yes | begin day, in YYMMDD format, for example: 20220420 Check rules: The interval cannot be greater than one month Only supports query data of the most recent year |
Protobuf
protobuf
message MarketTradeDayRequest {
string market = 1;
string beg_day = 2;
string end_day = 3;
}Request Example
Response
Response Properties
| Name | Type | Description |
|---|---|---|
| trade_day | string[] | Trading days, in YYMMDD format |
| half_trade_day | string[] | Half trading days, in YYMMDD format |
Protobuf
protobuf
message MarketTradeDayResponse {
repeated string trade_day = 1;
repeated string half_trade_day = 2;
}Response JSON Example
json
{
"trade_day": [
"20220120",
"20220121",
"20220124",
"20220125",
"20220126",
"20220127",
"20220128",
"20220204",
"20220207",
"20220208",
"20220209",
"20220210"
],
"half_trade_day": ["20220131"]
}Error Code
| Protocol Error Code | Business Error Code | Description | Troubleshooting Suggestions |
|---|---|---|---|
| 3 | 301600 | Invalid request | Invalid request parameters or unpacking request failed |
| 3 | 301606 | Request rate limit | Reduce the frequency of requests |
| 7 | 301602 | Server error | Please try again or contact a technician to resolve the issue |
| 7 | 301600 | Invalue request parameters | Please check the request parameter: market, beg_day, end_day |