|
1062 | 1062 | "examples": { |
1063 | 1063 | "Example response": { |
1064 | 1064 | "value": { |
1065 | | - "time": "2025-11-04T06:04:32.6249074Z", |
| 1065 | + "time": "2025-11-05T06:03:55.7280986Z", |
1066 | 1066 | "asset_id_base": "BTC", |
1067 | 1067 | "asset_id_quote": "USD", |
1068 | 1068 | "rate": 10000.0 |
|
1077 | 1077 | "examples": { |
1078 | 1078 | "Example response": { |
1079 | 1079 | "value": { |
1080 | | - "time": "2025-11-04T06:04:32.6249074Z", |
| 1080 | + "time": "2025-11-05T06:03:55.7280986Z", |
1081 | 1081 | "asset_id_base": "BTC", |
1082 | 1082 | "asset_id_quote": "USD", |
1083 | 1083 | "rate": 10000.0 |
|
1092 | 1092 | "examples": { |
1093 | 1093 | "Example response": { |
1094 | 1094 | "value": { |
1095 | | - "time": "2025-11-04T06:04:32.6249074Z", |
| 1095 | + "time": "2025-11-05T06:03:55.7280986Z", |
1096 | 1096 | "asset_id_base": "BTC", |
1097 | 1097 | "asset_id_quote": "USD", |
1098 | 1098 | "rate": 10000.0 |
|
1107 | 1107 | "examples": { |
1108 | 1108 | "Example response": { |
1109 | 1109 | "value": { |
1110 | | - "time": "2025-11-04T06:04:32.6249074Z", |
| 1110 | + "time": "2025-11-05T06:03:55.7280986Z", |
1111 | 1111 | "asset_id_base": "BTC", |
1112 | 1112 | "asset_id_quote": "USD", |
1113 | 1113 | "rate": 10000.0 |
|
6159 | 6159 | } |
6160 | 6160 | } |
6161 | 6161 | }, |
6162 | | - "/v1/orderbooks/{symbol_id}/latest": { |
6163 | | - "get": { |
6164 | | - "tags": [ |
6165 | | - "Order Book" |
6166 | | - ], |
6167 | | - "summary": "Latest data", |
6168 | | - "description": "Get latest order book snapshots for a specific symbol, returned in time descending order.\n \n:::info\nThe historical order book data via the REST API is currently limited by a number of updates and to the maximum number of 20 levels.\n:::", |
6169 | | - "parameters": [ |
6170 | | - { |
6171 | | - "name": "symbol_id", |
6172 | | - "in": "path", |
6173 | | - "description": "Symbol identifier of requested timeseries (from the Metadata -> Symbols)", |
6174 | | - "required": true, |
6175 | | - "schema": { |
6176 | | - "type": "string" |
6177 | | - } |
6178 | | - }, |
6179 | | - { |
6180 | | - "name": "limit", |
6181 | | - "in": "query", |
6182 | | - "description": "Amount of items to return (optional, mininum is 1, maximum is 100000, default value is 100, if the parameter is used then every 100 output items are counted as one request)", |
6183 | | - "schema": { |
6184 | | - "type": "integer", |
6185 | | - "format": "int32", |
6186 | | - "default": 100 |
6187 | | - } |
6188 | | - }, |
6189 | | - { |
6190 | | - "name": "limit_levels", |
6191 | | - "in": "query", |
6192 | | - "description": "Maximum amount of levels from each side of the book to include in response (optional)", |
6193 | | - "schema": { |
6194 | | - "type": "integer", |
6195 | | - "format": "int32" |
6196 | | - } |
6197 | | - } |
6198 | | - ], |
6199 | | - "responses": { |
6200 | | - "200": { |
6201 | | - "description": "successful operation", |
6202 | | - "content": { |
6203 | | - "text/plain": { |
6204 | | - "schema": { |
6205 | | - "type": "array", |
6206 | | - "items": { |
6207 | | - "$ref": "#/components/schemas/v1.OrderBook" |
6208 | | - } |
6209 | | - }, |
6210 | | - "examples": { |
6211 | | - "Example response": { |
6212 | | - "value": [ |
6213 | | - { |
6214 | | - "symbol_id": "BITSTAMP_SPOT_BTC_USD", |
6215 | | - "time_exchange": "2013-09-28T22:40:50.0000000Z", |
6216 | | - "time_coinapi": "2017-03-18T22:42:21.3763342Z", |
6217 | | - "asks": [ |
6218 | | - { |
6219 | | - "price": 456.35, |
6220 | | - "size": 123 |
6221 | | - }, |
6222 | | - { |
6223 | | - "price": 456.36, |
6224 | | - "size": 23 |
6225 | | - } |
6226 | | - ], |
6227 | | - "bids": [ |
6228 | | - { |
6229 | | - "price": 456.1, |
6230 | | - "size": 42 |
6231 | | - }, |
6232 | | - { |
6233 | | - "price": 456.09, |
6234 | | - "size": 5 |
6235 | | - } |
6236 | | - ] |
6237 | | - } |
6238 | | -] |
6239 | | - } |
6240 | | - } |
6241 | | - }, |
6242 | | - "application/json": { |
6243 | | - "schema": { |
6244 | | - "type": "array", |
6245 | | - "items": { |
6246 | | - "$ref": "#/components/schemas/v1.OrderBook" |
6247 | | - } |
6248 | | - }, |
6249 | | - "examples": { |
6250 | | - "Example response": { |
6251 | | - "value": [ |
6252 | | - { |
6253 | | - "symbol_id": "BITSTAMP_SPOT_BTC_USD", |
6254 | | - "time_exchange": "2013-09-28T22:40:50.0000000Z", |
6255 | | - "time_coinapi": "2017-03-18T22:42:21.3763342Z", |
6256 | | - "asks": [ |
6257 | | - { |
6258 | | - "price": 456.35, |
6259 | | - "size": 123 |
6260 | | - }, |
6261 | | - { |
6262 | | - "price": 456.36, |
6263 | | - "size": 23 |
6264 | | - } |
6265 | | - ], |
6266 | | - "bids": [ |
6267 | | - { |
6268 | | - "price": 456.1, |
6269 | | - "size": 42 |
6270 | | - }, |
6271 | | - { |
6272 | | - "price": 456.09, |
6273 | | - "size": 5 |
6274 | | - } |
6275 | | - ] |
6276 | | - } |
6277 | | -] |
6278 | | - } |
6279 | | - } |
6280 | | - }, |
6281 | | - "text/json": { |
6282 | | - "schema": { |
6283 | | - "type": "array", |
6284 | | - "items": { |
6285 | | - "$ref": "#/components/schemas/v1.OrderBook" |
6286 | | - } |
6287 | | - }, |
6288 | | - "examples": { |
6289 | | - "Example response": { |
6290 | | - "value": [ |
6291 | | - { |
6292 | | - "symbol_id": "BITSTAMP_SPOT_BTC_USD", |
6293 | | - "time_exchange": "2013-09-28T22:40:50.0000000Z", |
6294 | | - "time_coinapi": "2017-03-18T22:42:21.3763342Z", |
6295 | | - "asks": [ |
6296 | | - { |
6297 | | - "price": 456.35, |
6298 | | - "size": 123 |
6299 | | - }, |
6300 | | - { |
6301 | | - "price": 456.36, |
6302 | | - "size": 23 |
6303 | | - } |
6304 | | - ], |
6305 | | - "bids": [ |
6306 | | - { |
6307 | | - "price": 456.1, |
6308 | | - "size": 42 |
6309 | | - }, |
6310 | | - { |
6311 | | - "price": 456.09, |
6312 | | - "size": 5 |
6313 | | - } |
6314 | | - ] |
6315 | | - } |
6316 | | -] |
6317 | | - } |
6318 | | - } |
6319 | | - }, |
6320 | | - "application/x-msgpack": { |
6321 | | - "schema": { |
6322 | | - "type": "array", |
6323 | | - "items": { |
6324 | | - "$ref": "#/components/schemas/v1.OrderBook" |
6325 | | - } |
6326 | | - }, |
6327 | | - "examples": { |
6328 | | - "Example response": { |
6329 | | - "value": [ |
6330 | | - { |
6331 | | - "symbol_id": "BITSTAMP_SPOT_BTC_USD", |
6332 | | - "time_exchange": "2013-09-28T22:40:50.0000000Z", |
6333 | | - "time_coinapi": "2017-03-18T22:42:21.3763342Z", |
6334 | | - "asks": [ |
6335 | | - { |
6336 | | - "price": 456.35, |
6337 | | - "size": 123 |
6338 | | - }, |
6339 | | - { |
6340 | | - "price": 456.36, |
6341 | | - "size": 23 |
6342 | | - } |
6343 | | - ], |
6344 | | - "bids": [ |
6345 | | - { |
6346 | | - "price": 456.1, |
6347 | | - "size": 42 |
6348 | | - }, |
6349 | | - { |
6350 | | - "price": 456.09, |
6351 | | - "size": 5 |
6352 | | - } |
6353 | | - ] |
6354 | | - } |
6355 | | -] |
6356 | | - } |
6357 | | - } |
6358 | | - } |
6359 | | - } |
6360 | | - } |
6361 | | - } |
6362 | | - } |
6363 | | - }, |
6364 | 6162 | "/v1/orderbooks3/current": { |
6365 | 6163 | "get": { |
6366 | 6164 | "tags": [ |
|
0 commit comments