查看原始 JSON
{
"type": "object",
"required": [
"queryParams"
],
"properties": {
"queryParams": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"exchange",
"pair"
],
"~standard": {
"vendor": "zod",
"version": 1,
"jsonSchema": {}
},
"properties": {
"to": {
"type": "string",
"minLength": 1,
"description": "交易所标识。"
},
"from": {
"type": "string",
"minLength": 1,
"description": "交易对。"
},
"pair": {
"type": "string",
"minLength": 1,
"description": "时间周期。"
},
"limit": {
"type": "integer",
"default": 100,
"maximum": 300,
"minimum": 1,
"description": "开始时间。"
},
"offset": {
"type": "integer",
"default": 0,
"maximum": 9007199254740991,
"minimum": 0,
"description": "结束时间。"
},
"exchange": {
"enum": [
"bithumb",
"upbit",
"hashkey",
"bitflyer",
"coinone",
"korbit"
],
"type": "string",
"description": "最大数据点数。"
},
"interval": {
"enum": [
"5m",
"4h",
"1w"
],
"type": "string",
"default": "5m",
"description": "分页游标。"
},
"include_synthetic": {
"type": "boolean",
"default": true,
"description": "是否包含未完成 K 线。"
}
},
"additionalProperties": false
}
},
"additionalProperties": false
}