From ec7dc4714e073d6b028c6c7847fd6142640e4d3e Mon Sep 17 00:00:00 2001 From: svisstack Date: Thu, 9 Jan 2025 10:04:10 +0000 Subject: [PATCH] update openapi file --- indexes-api/coinapi-indexes-rest.yaml | 79 +++++++++++++++++++++++++++ 1 file changed, 79 insertions(+) diff --git a/indexes-api/coinapi-indexes-rest.yaml b/indexes-api/coinapi-indexes-rest.yaml index 5073a551c..6ef3da6d7 100644 --- a/indexes-api/coinapi-indexes-rest.yaml +++ b/indexes-api/coinapi-indexes-rest.yaml @@ -724,6 +724,70 @@ paths: "value_count": 0 } ] + /v1/indexdef/multiasset: + get: + tags: + - Indexes + summary: Get all multi-asset weights + responses: + '200': + description: successful operation + content: + text/plain: + schema: + type: array + items: + $ref: '#/components/schemas/Indexes.IndexMultiAssetWeight' + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/Indexes.IndexMultiAssetWeight' + text/json: + schema: + type: array + items: + $ref: '#/components/schemas/Indexes.IndexMultiAssetWeight' + application/x-msgpack: + schema: + type: array + items: + $ref: '#/components/schemas/Indexes.IndexMultiAssetWeight' + '/v1/indexdef/multiasset/{index_id}': + get: + tags: + - Indexes + summary: Get multi-asset weights for specific index + parameters: + - name: index_id + in: path + required: true + schema: + type: string + responses: + '200': + description: successful operation + content: + text/plain: + schema: + type: array + items: + $ref: '#/components/schemas/Indexes.IndexMultiAssetWeight' + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/Indexes.IndexMultiAssetWeight' + text/json: + schema: + type: array + items: + $ref: '#/components/schemas/Indexes.IndexMultiAssetWeight' + application/x-msgpack: + schema: + type: array + items: + $ref: '#/components/schemas/Indexes.IndexMultiAssetWeight' '/v1/indexdef/input-data/{index_definition_id}': get: tags: @@ -930,6 +994,19 @@ components: nullable: true additionalProperties: false description: Represents an index id + Indexes.IndexMultiAssetWeight: + type: object + properties: + indexId: + type: string + nullable: true + assetId: + type: string + nullable: true + weight: + type: number + format: double + additionalProperties: false Indexes.IndexTimeseriesItem: type: object properties: @@ -1064,6 +1141,8 @@ tags: description: - name: Indexes description: 'Indexes section of the API is in the Alpha release cycle. Use only for testing, evaluaton and feedback.' + - name: IndexMultiAsset + description: 'Indexes section of the API is in the Alpha release cycle. Use only for testing, evaluation and feedback.' - name: InputData description: 'Indexes section of the API is in the Alpha release cycle. Use only for testing, evaluaton and feedback.' - name: Period