|
1 | 1 | { |
2 | 2 | "openapi": "3.0.1", |
3 | 3 | "info": { |
4 | | - "title": "REST API", |
| 4 | + "title": "Exchange Rates Historical REST API", |
5 | 5 | "contact": { |
6 | | - "name": "COINAPI LTD", |
| 6 | + "name": "API BRICKS LTD", |
7 | 7 | "url": "https://www.coinapi.io", |
8 | | - "email": "support@coinapi.io" |
| 8 | + "email": "support@apibricks.io" |
9 | 9 | }, |
10 | 10 | "license": { |
11 | 11 | "name": "MIT License", |
12 | | - "url": "https://github.com/coinapi/coinapi-sdk/blob/master/LICENSE" |
| 12 | + "url": "https://github.com/api-bricks/api-bricks-sdk/blob/master/LICENSE" |
13 | 13 | }, |
14 | 14 | "version": "v1" |
15 | 15 | }, |
|
638 | 638 | "examples": { |
639 | 639 | "Example response": { |
640 | 640 | "value": { |
641 | | - "time": "2025-05-14T12:54:01.0184456Z", |
| 641 | + "time": "2025-05-14T13:03:29.4970763Z", |
642 | 642 | "asset_id_base": "BTC", |
643 | 643 | "asset_id_quote": "USD", |
644 | 644 | "rate": 10000.0 |
|
653 | 653 | "examples": { |
654 | 654 | "Example response": { |
655 | 655 | "value": { |
656 | | - "time": "2025-05-14T12:54:01.0184456Z", |
| 656 | + "time": "2025-05-14T13:03:29.4970763Z", |
657 | 657 | "asset_id_base": "BTC", |
658 | 658 | "asset_id_quote": "USD", |
659 | 659 | "rate": 10000.0 |
|
668 | 668 | "examples": { |
669 | 669 | "Example response": { |
670 | 670 | "value": { |
671 | | - "time": "2025-05-14T12:54:01.0184456Z", |
| 671 | + "time": "2025-05-14T13:03:29.4970763Z", |
672 | 672 | "asset_id_base": "BTC", |
673 | 673 | "asset_id_quote": "USD", |
674 | 674 | "rate": 10000.0 |
|
730 | 730 | "content": { |
731 | 731 | "text/plain": { |
732 | 732 | "schema": { |
733 | | - "$ref": "#/components/schemas/v1.ExchangeRates`1" |
| 733 | + "$ref": "#/components/schemas/v1.ExchangeRates" |
734 | 734 | }, |
735 | 735 | "examples": { |
736 | 736 | "Example response": { |
|
764 | 764 | }, |
765 | 765 | "application/json": { |
766 | 766 | "schema": { |
767 | | - "$ref": "#/components/schemas/v1.ExchangeRates`1" |
| 767 | + "$ref": "#/components/schemas/v1.ExchangeRates" |
768 | 768 | }, |
769 | 769 | "examples": { |
770 | 770 | "Example response": { |
|
798 | 798 | }, |
799 | 799 | "text/json": { |
800 | 800 | "schema": { |
801 | | - "$ref": "#/components/schemas/v1.ExchangeRates`1" |
| 801 | + "$ref": "#/components/schemas/v1.ExchangeRates" |
802 | 802 | }, |
803 | 803 | "examples": { |
804 | 804 | "Example response": { |
|
1349 | 1349 | "additionalProperties": false, |
1350 | 1350 | "description": "Represents an exchange rate." |
1351 | 1351 | }, |
| 1352 | + "v1.ExchangeRates": { |
| 1353 | + "type": "object", |
| 1354 | + "properties": { |
| 1355 | + "asset_id_base": { |
| 1356 | + "type": "string", |
| 1357 | + "description": "Gets or sets the base asset ID.", |
| 1358 | + "nullable": true |
| 1359 | + }, |
| 1360 | + "rates": { |
| 1361 | + "type": "array", |
| 1362 | + "items": { |
| 1363 | + "$ref": "#/components/schemas/v1.ExchangeRatesRate" |
| 1364 | + }, |
| 1365 | + "description": "Gets or sets the list of exchange rates.", |
| 1366 | + "nullable": true |
| 1367 | + } |
| 1368 | + }, |
| 1369 | + "additionalProperties": false, |
| 1370 | + "description": "Represents exchange rates for a specific base asset." |
| 1371 | + }, |
1352 | 1372 | "v1.ExchangeRatesRate": { |
1353 | 1373 | "type": "object", |
1354 | 1374 | "properties": { |
|
1424 | 1444 | "additionalProperties": false, |
1425 | 1445 | "description": "Represents an item in the exchange rate timeseries." |
1426 | 1446 | }, |
1427 | | - "v1.ExchangeRates`1": { |
1428 | | - "type": "object", |
1429 | | - "properties": { |
1430 | | - "asset_id_base": { |
1431 | | - "type": "string", |
1432 | | - "description": "Gets or sets the base asset ID.", |
1433 | | - "nullable": true |
1434 | | - }, |
1435 | | - "rates": { |
1436 | | - "type": "array", |
1437 | | - "items": { |
1438 | | - "$ref": "#/components/schemas/v1.ExchangeRatesRate" |
1439 | | - }, |
1440 | | - "description": "Gets or sets the list of exchange rates.", |
1441 | | - "nullable": true |
1442 | | - } |
1443 | | - }, |
1444 | | - "additionalProperties": false, |
1445 | | - "description": "Represents exchange rates for a specific base asset." |
1446 | | - }, |
1447 | 1447 | "v1.Icon": { |
1448 | 1448 | "type": "object", |
1449 | 1449 | "properties": { |
|
0 commit comments