Skip to content

Commit ec7dc47

Browse files
committed
update openapi file
1 parent b6a5b8a commit ec7dc47

File tree

1 file changed

+79
-0
lines changed

1 file changed

+79
-0
lines changed

indexes-api/coinapi-indexes-rest.yaml

Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -724,6 +724,70 @@ paths:
724724
"value_count": 0
725725
}
726726
]
727+
/v1/indexdef/multiasset:
728+
get:
729+
tags:
730+
- Indexes
731+
summary: Get all multi-asset weights
732+
responses:
733+
'200':
734+
description: successful operation
735+
content:
736+
text/plain:
737+
schema:
738+
type: array
739+
items:
740+
$ref: '#/components/schemas/Indexes.IndexMultiAssetWeight'
741+
application/json:
742+
schema:
743+
type: array
744+
items:
745+
$ref: '#/components/schemas/Indexes.IndexMultiAssetWeight'
746+
text/json:
747+
schema:
748+
type: array
749+
items:
750+
$ref: '#/components/schemas/Indexes.IndexMultiAssetWeight'
751+
application/x-msgpack:
752+
schema:
753+
type: array
754+
items:
755+
$ref: '#/components/schemas/Indexes.IndexMultiAssetWeight'
756+
'/v1/indexdef/multiasset/{index_id}':
757+
get:
758+
tags:
759+
- Indexes
760+
summary: Get multi-asset weights for specific index
761+
parameters:
762+
- name: index_id
763+
in: path
764+
required: true
765+
schema:
766+
type: string
767+
responses:
768+
'200':
769+
description: successful operation
770+
content:
771+
text/plain:
772+
schema:
773+
type: array
774+
items:
775+
$ref: '#/components/schemas/Indexes.IndexMultiAssetWeight'
776+
application/json:
777+
schema:
778+
type: array
779+
items:
780+
$ref: '#/components/schemas/Indexes.IndexMultiAssetWeight'
781+
text/json:
782+
schema:
783+
type: array
784+
items:
785+
$ref: '#/components/schemas/Indexes.IndexMultiAssetWeight'
786+
application/x-msgpack:
787+
schema:
788+
type: array
789+
items:
790+
$ref: '#/components/schemas/Indexes.IndexMultiAssetWeight'
727791
'/v1/indexdef/input-data/{index_definition_id}':
728792
get:
729793
tags:
@@ -930,6 +994,19 @@ components:
930994
nullable: true
931995
additionalProperties: false
932996
description: Represents an index id
997+
Indexes.IndexMultiAssetWeight:
998+
type: object
999+
properties:
1000+
indexId:
1001+
type: string
1002+
nullable: true
1003+
assetId:
1004+
type: string
1005+
nullable: true
1006+
weight:
1007+
type: number
1008+
format: double
1009+
additionalProperties: false
9331010
Indexes.IndexTimeseriesItem:
9341011
type: object
9351012
properties:
@@ -1064,6 +1141,8 @@ tags:
10641141
description: <span data-status-page="28923"></span>
10651142
- name: Indexes
10661143
description: 'Indexes section of the API is in the Alpha release cycle. Use only for testing, evaluaton and feedback.'
1144+
- name: IndexMultiAsset
1145+
description: 'Indexes section of the API is in the Alpha release cycle. Use only for testing, evaluation and feedback.'
10671146
- name: InputData
10681147
description: 'Indexes section of the API is in the Alpha release cycle. Use only for testing, evaluaton and feedback.'
10691148
- name: Period

0 commit comments

Comments
 (0)