Skip to content

Commit f9cb9c0

Browse files
committed
update openapi file
1 parent c6e61a3 commit f9cb9c0

File tree

2 files changed

+624
-8
lines changed

2 files changed

+624
-8
lines changed

coinapi/market-data-api-rest/spec/openapi.json

Lines changed: 330 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1062,7 +1062,7 @@
10621062
"examples": {
10631063
"Example response": {
10641064
"value": {
1065-
"time": "2025-07-07T06:03:51.6721806Z",
1065+
"time": "2025-07-26T06:50:32.7786092Z",
10661066
"asset_id_base": "BTC",
10671067
"asset_id_quote": "USD",
10681068
"rate": 10000.0
@@ -1077,7 +1077,7 @@
10771077
"examples": {
10781078
"Example response": {
10791079
"value": {
1080-
"time": "2025-07-07T06:03:51.6721806Z",
1080+
"time": "2025-07-26T06:50:32.7786092Z",
10811081
"asset_id_base": "BTC",
10821082
"asset_id_quote": "USD",
10831083
"rate": 10000.0
@@ -1092,7 +1092,7 @@
10921092
"examples": {
10931093
"Example response": {
10941094
"value": {
1095-
"time": "2025-07-07T06:03:51.6721806Z",
1095+
"time": "2025-07-26T06:50:32.7786092Z",
10961096
"asset_id_base": "BTC",
10971097
"asset_id_quote": "USD",
10981098
"rate": 10000.0
@@ -1107,7 +1107,7 @@
11071107
"examples": {
11081108
"Example response": {
11091109
"value": {
1110-
"time": "2025-07-07T06:03:51.6721806Z",
1110+
"time": "2025-07-26T06:50:32.7786092Z",
11111111
"asset_id_base": "BTC",
11121112
"asset_id_quote": "USD",
11131113
"rate": 10000.0
@@ -8249,6 +8249,332 @@
82498249
"price_precision": 0.000000010,
82508250
"size_precision": 0.000000010
82518251
}
8252+
]
8253+
}
8254+
}
8255+
}
8256+
}
8257+
}
8258+
}
8259+
}
8260+
},
8261+
"/v1/symbols/{exchange_id}/history": {
8262+
"get": {
8263+
"tags": [
8264+
"Metadata"
8265+
],
8266+
"summary": "Get symbol history for an exchange with pagination.",
8267+
"parameters": [
8268+
{
8269+
"name": "exchange_id",
8270+
"in": "path",
8271+
"description": "The ID of the exchange.",
8272+
"required": true,
8273+
"schema": {
8274+
"type": "string"
8275+
}
8276+
},
8277+
{
8278+
"name": "page",
8279+
"in": "query",
8280+
"description": "The page number.",
8281+
"schema": {
8282+
"type": "integer",
8283+
"format": "int32",
8284+
"default": 1
8285+
}
8286+
},
8287+
{
8288+
"name": "limit",
8289+
"in": "query",
8290+
"description": "Number of records to return.",
8291+
"schema": {
8292+
"type": "integer",
8293+
"format": "int32",
8294+
"default": 100
8295+
}
8296+
}
8297+
],
8298+
"responses": {
8299+
"200": {
8300+
"description": "successful operation",
8301+
"content": {
8302+
"text/plain": {
8303+
"schema": {
8304+
"type": "array",
8305+
"items": {
8306+
"$ref": "#/components/schemas/v1.Symbol"
8307+
}
8308+
},
8309+
"examples": {
8310+
"Example response": {
8311+
"value": [
8312+
{
8313+
"symbol_id": "KRAKENFTS_PERP_BTC_USD",
8314+
"exchange_id": "KRAKENFTS",
8315+
"symbol_type": "PERPETUAL",
8316+
"asset_id_base": "BTC",
8317+
"asset_id_quote": "USD",
8318+
"asset_id_unit": "USD",
8319+
"future_contract_unit": 1.000000000,
8320+
"future_contract_unit_asset": "USD",
8321+
"data_start": "2019-10-30",
8322+
"data_end": "2021-03-03",
8323+
"data_quote_start": "2019-10-30T16:53:10.3262317Z",
8324+
"data_quote_end": "2021-03-03T13:51:45.6970000Z",
8325+
"data_orderbook_start": "2019-10-30T16:53:10.3262317Z",
8326+
"data_orderbook_end": "2020-08-05T14:37:32.0080000Z",
8327+
"data_trade_start": "2019-10-30T16:38:52.1620000Z",
8328+
"data_trade_end": "2021-03-03T13:46:25.7810000Z",
8329+
"volume_1hrs": 22897091,
8330+
"volume_1hrs_usd": 22897091.00,
8331+
"volume_1day": 459390289,
8332+
"volume_1day_usd": 459390289.00,
8333+
"volume_1mth": 12875674995,
8334+
"volume_1mth_usd": 12875674995.00,
8335+
"price": 51266,
8336+
"symbol_id_exchange": "pi_xbtusd",
8337+
"asset_id_base_exchange": "XBT",
8338+
"asset_id_quote_exchange": "USD",
8339+
"price_precision": 0.100000000,
8340+
"size_precision": 1.000000000
8341+
},
8342+
{
8343+
"symbol_id": "POLONIEX_SPOT_LTC_USDC",
8344+
"exchange_id": "POLONIEX",
8345+
"symbol_type": "SPOT",
8346+
"asset_id_base": "LTC",
8347+
"asset_id_quote": "USDC",
8348+
"data_start": "2018-11-20",
8349+
"data_end": "2021-03-01",
8350+
"data_quote_start": "2018-11-20T15:24:58.4128803Z",
8351+
"data_quote_end": "2021-03-01T16:07:09.3475456Z",
8352+
"data_orderbook_start": "2018-11-20T15:24:58.4128803Z",
8353+
"data_orderbook_end": "2020-08-05T14:37:20.2695780Z",
8354+
"data_trade_start": "2018-11-20T15:25:38.0000000Z",
8355+
"data_trade_end": "2021-03-01T16:03:18.0000000Z",
8356+
"volume_1hrs": 51.68645899,
8357+
"volume_1hrs_usd": 9036.44,
8358+
"volume_1day": 465.568863,
8359+
"volume_1day_usd": 81396.28,
8360+
"volume_1mth": 22528.27638495,
8361+
"volume_1mth_usd": 3938661.00,
8362+
"symbol_id_exchange": "USDC_LTC",
8363+
"asset_id_base_exchange": "LTC",
8364+
"asset_id_quote_exchange": "USDC",
8365+
"price_precision": 0.000000010,
8366+
"size_precision": 0.000000010
8367+
}
8368+
]
8369+
}
8370+
}
8371+
},
8372+
"application/json": {
8373+
"schema": {
8374+
"type": "array",
8375+
"items": {
8376+
"$ref": "#/components/schemas/v1.Symbol"
8377+
}
8378+
},
8379+
"examples": {
8380+
"Example response": {
8381+
"value": [
8382+
{
8383+
"symbol_id": "KRAKENFTS_PERP_BTC_USD",
8384+
"exchange_id": "KRAKENFTS",
8385+
"symbol_type": "PERPETUAL",
8386+
"asset_id_base": "BTC",
8387+
"asset_id_quote": "USD",
8388+
"asset_id_unit": "USD",
8389+
"future_contract_unit": 1.000000000,
8390+
"future_contract_unit_asset": "USD",
8391+
"data_start": "2019-10-30",
8392+
"data_end": "2021-03-03",
8393+
"data_quote_start": "2019-10-30T16:53:10.3262317Z",
8394+
"data_quote_end": "2021-03-03T13:51:45.6970000Z",
8395+
"data_orderbook_start": "2019-10-30T16:53:10.3262317Z",
8396+
"data_orderbook_end": "2020-08-05T14:37:32.0080000Z",
8397+
"data_trade_start": "2019-10-30T16:38:52.1620000Z",
8398+
"data_trade_end": "2021-03-03T13:46:25.7810000Z",
8399+
"volume_1hrs": 22897091,
8400+
"volume_1hrs_usd": 22897091.00,
8401+
"volume_1day": 459390289,
8402+
"volume_1day_usd": 459390289.00,
8403+
"volume_1mth": 12875674995,
8404+
"volume_1mth_usd": 12875674995.00,
8405+
"price": 51266,
8406+
"symbol_id_exchange": "pi_xbtusd",
8407+
"asset_id_base_exchange": "XBT",
8408+
"asset_id_quote_exchange": "USD",
8409+
"price_precision": 0.100000000,
8410+
"size_precision": 1.000000000
8411+
},
8412+
{
8413+
"symbol_id": "POLONIEX_SPOT_LTC_USDC",
8414+
"exchange_id": "POLONIEX",
8415+
"symbol_type": "SPOT",
8416+
"asset_id_base": "LTC",
8417+
"asset_id_quote": "USDC",
8418+
"data_start": "2018-11-20",
8419+
"data_end": "2021-03-01",
8420+
"data_quote_start": "2018-11-20T15:24:58.4128803Z",
8421+
"data_quote_end": "2021-03-01T16:07:09.3475456Z",
8422+
"data_orderbook_start": "2018-11-20T15:24:58.4128803Z",
8423+
"data_orderbook_end": "2020-08-05T14:37:20.2695780Z",
8424+
"data_trade_start": "2018-11-20T15:25:38.0000000Z",
8425+
"data_trade_end": "2021-03-01T16:03:18.0000000Z",
8426+
"volume_1hrs": 51.68645899,
8427+
"volume_1hrs_usd": 9036.44,
8428+
"volume_1day": 465.568863,
8429+
"volume_1day_usd": 81396.28,
8430+
"volume_1mth": 22528.27638495,
8431+
"volume_1mth_usd": 3938661.00,
8432+
"symbol_id_exchange": "USDC_LTC",
8433+
"asset_id_base_exchange": "LTC",
8434+
"asset_id_quote_exchange": "USDC",
8435+
"price_precision": 0.000000010,
8436+
"size_precision": 0.000000010
8437+
}
8438+
]
8439+
}
8440+
}
8441+
},
8442+
"text/json": {
8443+
"schema": {
8444+
"type": "array",
8445+
"items": {
8446+
"$ref": "#/components/schemas/v1.Symbol"
8447+
}
8448+
},
8449+
"examples": {
8450+
"Example response": {
8451+
"value": [
8452+
{
8453+
"symbol_id": "KRAKENFTS_PERP_BTC_USD",
8454+
"exchange_id": "KRAKENFTS",
8455+
"symbol_type": "PERPETUAL",
8456+
"asset_id_base": "BTC",
8457+
"asset_id_quote": "USD",
8458+
"asset_id_unit": "USD",
8459+
"future_contract_unit": 1.000000000,
8460+
"future_contract_unit_asset": "USD",
8461+
"data_start": "2019-10-30",
8462+
"data_end": "2021-03-03",
8463+
"data_quote_start": "2019-10-30T16:53:10.3262317Z",
8464+
"data_quote_end": "2021-03-03T13:51:45.6970000Z",
8465+
"data_orderbook_start": "2019-10-30T16:53:10.3262317Z",
8466+
"data_orderbook_end": "2020-08-05T14:37:32.0080000Z",
8467+
"data_trade_start": "2019-10-30T16:38:52.1620000Z",
8468+
"data_trade_end": "2021-03-03T13:46:25.7810000Z",
8469+
"volume_1hrs": 22897091,
8470+
"volume_1hrs_usd": 22897091.00,
8471+
"volume_1day": 459390289,
8472+
"volume_1day_usd": 459390289.00,
8473+
"volume_1mth": 12875674995,
8474+
"volume_1mth_usd": 12875674995.00,
8475+
"price": 51266,
8476+
"symbol_id_exchange": "pi_xbtusd",
8477+
"asset_id_base_exchange": "XBT",
8478+
"asset_id_quote_exchange": "USD",
8479+
"price_precision": 0.100000000,
8480+
"size_precision": 1.000000000
8481+
},
8482+
{
8483+
"symbol_id": "POLONIEX_SPOT_LTC_USDC",
8484+
"exchange_id": "POLONIEX",
8485+
"symbol_type": "SPOT",
8486+
"asset_id_base": "LTC",
8487+
"asset_id_quote": "USDC",
8488+
"data_start": "2018-11-20",
8489+
"data_end": "2021-03-01",
8490+
"data_quote_start": "2018-11-20T15:24:58.4128803Z",
8491+
"data_quote_end": "2021-03-01T16:07:09.3475456Z",
8492+
"data_orderbook_start": "2018-11-20T15:24:58.4128803Z",
8493+
"data_orderbook_end": "2020-08-05T14:37:20.2695780Z",
8494+
"data_trade_start": "2018-11-20T15:25:38.0000000Z",
8495+
"data_trade_end": "2021-03-01T16:03:18.0000000Z",
8496+
"volume_1hrs": 51.68645899,
8497+
"volume_1hrs_usd": 9036.44,
8498+
"volume_1day": 465.568863,
8499+
"volume_1day_usd": 81396.28,
8500+
"volume_1mth": 22528.27638495,
8501+
"volume_1mth_usd": 3938661.00,
8502+
"symbol_id_exchange": "USDC_LTC",
8503+
"asset_id_base_exchange": "LTC",
8504+
"asset_id_quote_exchange": "USDC",
8505+
"price_precision": 0.000000010,
8506+
"size_precision": 0.000000010
8507+
}
8508+
]
8509+
}
8510+
}
8511+
},
8512+
"application/x-msgpack": {
8513+
"schema": {
8514+
"type": "array",
8515+
"items": {
8516+
"$ref": "#/components/schemas/v1.Symbol"
8517+
}
8518+
},
8519+
"examples": {
8520+
"Example response": {
8521+
"value": [
8522+
{
8523+
"symbol_id": "KRAKENFTS_PERP_BTC_USD",
8524+
"exchange_id": "KRAKENFTS",
8525+
"symbol_type": "PERPETUAL",
8526+
"asset_id_base": "BTC",
8527+
"asset_id_quote": "USD",
8528+
"asset_id_unit": "USD",
8529+
"future_contract_unit": 1.000000000,
8530+
"future_contract_unit_asset": "USD",
8531+
"data_start": "2019-10-30",
8532+
"data_end": "2021-03-03",
8533+
"data_quote_start": "2019-10-30T16:53:10.3262317Z",
8534+
"data_quote_end": "2021-03-03T13:51:45.6970000Z",
8535+
"data_orderbook_start": "2019-10-30T16:53:10.3262317Z",
8536+
"data_orderbook_end": "2020-08-05T14:37:32.0080000Z",
8537+
"data_trade_start": "2019-10-30T16:38:52.1620000Z",
8538+
"data_trade_end": "2021-03-03T13:46:25.7810000Z",
8539+
"volume_1hrs": 22897091,
8540+
"volume_1hrs_usd": 22897091.00,
8541+
"volume_1day": 459390289,
8542+
"volume_1day_usd": 459390289.00,
8543+
"volume_1mth": 12875674995,
8544+
"volume_1mth_usd": 12875674995.00,
8545+
"price": 51266,
8546+
"symbol_id_exchange": "pi_xbtusd",
8547+
"asset_id_base_exchange": "XBT",
8548+
"asset_id_quote_exchange": "USD",
8549+
"price_precision": 0.100000000,
8550+
"size_precision": 1.000000000
8551+
},
8552+
{
8553+
"symbol_id": "POLONIEX_SPOT_LTC_USDC",
8554+
"exchange_id": "POLONIEX",
8555+
"symbol_type": "SPOT",
8556+
"asset_id_base": "LTC",
8557+
"asset_id_quote": "USDC",
8558+
"data_start": "2018-11-20",
8559+
"data_end": "2021-03-01",
8560+
"data_quote_start": "2018-11-20T15:24:58.4128803Z",
8561+
"data_quote_end": "2021-03-01T16:07:09.3475456Z",
8562+
"data_orderbook_start": "2018-11-20T15:24:58.4128803Z",
8563+
"data_orderbook_end": "2020-08-05T14:37:20.2695780Z",
8564+
"data_trade_start": "2018-11-20T15:25:38.0000000Z",
8565+
"data_trade_end": "2021-03-01T16:03:18.0000000Z",
8566+
"volume_1hrs": 51.68645899,
8567+
"volume_1hrs_usd": 9036.44,
8568+
"volume_1day": 465.568863,
8569+
"volume_1day_usd": 81396.28,
8570+
"volume_1mth": 22528.27638495,
8571+
"volume_1mth_usd": 3938661.00,
8572+
"symbol_id_exchange": "USDC_LTC",
8573+
"asset_id_base_exchange": "LTC",
8574+
"asset_id_quote_exchange": "USDC",
8575+
"price_precision": 0.000000010,
8576+
"size_precision": 0.000000010
8577+
}
82528578
]
82538579
}
82548580
}

0 commit comments

Comments
 (0)