@@ -136,172 +136,6 @@ package body .Clients is
136136 .Models.Deserialize (Reply, " " , Result);
137137 end V_1Exchangerate_History_Periods_Get ;
138138
139- -- Historical metrics for the asset
140- -- Get asset metrics history.
141- procedure V_1Externalmetrics_Asset_History_Get
142- (Client : in out Client_Type;
143- Metric_Id : in Swagger.UString;
144- Asset_Id : in Swagger.UString;
145- Time_Start : in Swagger.Nullable_Date;
146- Time_End : in Swagger.Nullable_Date;
147- Time_Format : in Swagger.Nullable_UString;
148- Period_Id : in Swagger.Nullable_UString;
149- Limit : in Swagger.Nullable_Integer;
150- Result : out Swagger.Object_Vectors.Vector) is
151- URI : Swagger.Clients.URI_Type;
152- Reply : Swagger.Value_Type;
153- begin
154- Client.Set_Accept (Media_List_1);
155-
156-
157- URI.Add_Param (" metric_id" , Metric_Id);
158- URI.Add_Param (" asset_id" , Asset_Id);
159- URI.Add_Param (" time_start" , Time_Start);
160- URI.Add_Param (" time_start" , Time_Start);
161- URI.Add_Param (" time_end" , Time_End);
162- URI.Add_Param (" time_end" , Time_End);
163- URI.Add_Param (" time_format" , Time_Format);
164- URI.Add_Param (" period_id" , Period_Id);
165- URI.Add_Param (" limit" , Limit);
166- URI.Set_Path (" /v1/externalmetrics/asset/history" );
167- Client.Call (Swagger.Clients.GET, URI, Reply);
168- .Models.Deserialize (Reply, " " , Result);
169- end V_1Externalmetrics_Asset_History_Get ;
170-
171- -- Listing of metrics available for specific asset
172- -- Get all metrics that are actually available for the specified asset.
173- procedure V_1Externalmetrics_Asset_Listing_Get
174- (Client : in out Client_Type;
175- Asset_Id : in Swagger.UString;
176- Result : out .Models.V1MetricInfo_Type_Vectors.Vector) is
177- URI : Swagger.Clients.URI_Type;
178- Reply : Swagger.Value_Type;
179- begin
180- Client.Set_Accept (Media_List_1);
181-
182-
183- URI.Add_Param (" asset_id" , Asset_Id);
184- URI.Set_Path (" /v1/externalmetrics/asset/listing" );
185- Client.Call (Swagger.Clients.GET, URI, Reply);
186- .Models.Deserialize (Reply, " " , Result);
187- end V_1Externalmetrics_Asset_Listing_Get ;
188-
189- -- Historical metrics for the chain
190- -- Get chain metrics history.
191- procedure V_1Externalmetrics_Chain_History_Get
192- (Client : in out Client_Type;
193- Metric_Id : in Swagger.UString;
194- Chain_Id : in Swagger.UString;
195- Time_Start : in Swagger.Nullable_Date;
196- Time_End : in Swagger.Nullable_Date;
197- Time_Format : in Swagger.Nullable_UString;
198- Period_Id : in Swagger.Nullable_UString;
199- Limit : in Swagger.Nullable_Integer;
200- Result : out Swagger.Object_Vectors.Vector) is
201- URI : Swagger.Clients.URI_Type;
202- Reply : Swagger.Value_Type;
203- begin
204- Client.Set_Accept (Media_List_1);
205-
206-
207- URI.Add_Param (" metric_id" , Metric_Id);
208- URI.Add_Param (" chain_id" , Chain_Id);
209- URI.Add_Param (" time_start" , Time_Start);
210- URI.Add_Param (" time_start" , Time_Start);
211- URI.Add_Param (" time_end" , Time_End);
212- URI.Add_Param (" time_end" , Time_End);
213- URI.Add_Param (" time_format" , Time_Format);
214- URI.Add_Param (" period_id" , Period_Id);
215- URI.Add_Param (" limit" , Limit);
216- URI.Set_Path (" /v1/externalmetrics/chain/history" );
217- Client.Call (Swagger.Clients.GET, URI, Reply);
218- .Models.Deserialize (Reply, " " , Result);
219- end V_1Externalmetrics_Chain_History_Get ;
220-
221- -- Listing of metrics available for specific chain
222- -- Get all metrics that are actually available for the specified blockchain chain.
223- procedure V_1Externalmetrics_Chain_Listing_Get
224- (Client : in out Client_Type;
225- Chain_Id : in Swagger.UString;
226- Result : out .Models.V1MetricInfo_Type_Vectors.Vector) is
227- URI : Swagger.Clients.URI_Type;
228- Reply : Swagger.Value_Type;
229- begin
230- Client.Set_Accept (Media_List_1);
231-
232-
233- URI.Add_Param (" chain_id" , Chain_Id);
234- URI.Set_Path (" /v1/externalmetrics/chain/listing" );
235- Client.Call (Swagger.Clients.GET, URI, Reply);
236- .Models.Deserialize (Reply, " " , Result);
237- end V_1Externalmetrics_Chain_Listing_Get ;
238-
239- -- Historical metrics for the exchange
240- -- Get exchange metrics history.
241- procedure V_1Externalmetrics_Exchange_History_Get
242- (Client : in out Client_Type;
243- Metric_Id : in Swagger.UString;
244- Exchange_Id : in Swagger.UString;
245- Time_Start : in Swagger.Nullable_Date;
246- Time_End : in Swagger.Nullable_Date;
247- Time_Format : in Swagger.Nullable_UString;
248- Period_Id : in Swagger.Nullable_UString;
249- Limit : in Swagger.Nullable_Integer;
250- Result : out Swagger.Object_Vectors.Vector) is
251- URI : Swagger.Clients.URI_Type;
252- Reply : Swagger.Value_Type;
253- begin
254- Client.Set_Accept (Media_List_1);
255-
256-
257- URI.Add_Param (" metric_id" , Metric_Id);
258- URI.Add_Param (" exchange_id" , Exchange_Id);
259- URI.Add_Param (" time_start" , Time_Start);
260- URI.Add_Param (" time_start" , Time_Start);
261- URI.Add_Param (" time_end" , Time_End);
262- URI.Add_Param (" time_end" , Time_End);
263- URI.Add_Param (" time_format" , Time_Format);
264- URI.Add_Param (" period_id" , Period_Id);
265- URI.Add_Param (" limit" , Limit);
266- URI.Set_Path (" /v1/externalmetrics/exchange/history" );
267- Client.Call (Swagger.Clients.GET, URI, Reply);
268- .Models.Deserialize (Reply, " " , Result);
269- end V_1Externalmetrics_Exchange_History_Get ;
270-
271- -- Listing of metrics available for specific exchange
272- -- Get all metrics that are actually available for the specified exchange.
273- procedure V_1Externalmetrics_Exchange_Listing_Get
274- (Client : in out Client_Type;
275- Exchange_Id : in Swagger.UString;
276- Result : out .Models.V1MetricInfo_Type_Vectors.Vector) is
277- URI : Swagger.Clients.URI_Type;
278- Reply : Swagger.Value_Type;
279- begin
280- Client.Set_Accept (Media_List_1);
281-
282-
283- URI.Add_Param (" exchange_id" , Exchange_Id);
284- URI.Set_Path (" /v1/externalmetrics/exchange/listing" );
285- Client.Call (Swagger.Clients.GET, URI, Reply);
286- .Models.Deserialize (Reply, " " , Result);
287- end V_1Externalmetrics_Exchange_Listing_Get ;
288-
289- -- Listing of all supported metrics
290- -- Get all metrics available in the system.
291- procedure V_1Externalmetrics_Listing_Get
292- (Client : in out Client_Type;
293- Result : out .Models.V1MetricInfo_Type_Vectors.Vector) is
294- URI : Swagger.Clients.URI_Type;
295- Reply : Swagger.Value_Type;
296- begin
297- Client.Set_Accept (Media_List_1);
298-
299-
300- URI.Set_Path (" /v1/externalmetrics/listing" );
301- Client.Call (Swagger.Clients.GET, URI, Reply);
302- .Models.Deserialize (Reply, " " , Result);
303- end V_1Externalmetrics_Listing_Get ;
304-
305139 -- List all assets by asset ID
306140 procedure V_1Assets_Asset_Id_Get
307141 (Client : in out Client_Type;
@@ -850,6 +684,172 @@ package body .Clients is
850684 .Models.Deserialize (Reply, " " , Result);
851685 end V_1Metrics_Symbol_Listing_Get ;
852686
687+ -- Historical metrics for the asset
688+ -- Get asset metrics history.
689+ procedure V_2Metrics_Asset_History_Get
690+ (Client : in out Client_Type;
691+ Metric_Id : in Swagger.UString;
692+ Asset_Id : in Swagger.UString;
693+ Time_Start : in Swagger.Nullable_Date;
694+ Time_End : in Swagger.Nullable_Date;
695+ Time_Format : in Swagger.Nullable_UString;
696+ Period_Id : in Swagger.Nullable_UString;
697+ Limit : in Swagger.Nullable_Integer;
698+ Result : out Swagger.Object_Vectors.Vector) is
699+ URI : Swagger.Clients.URI_Type;
700+ Reply : Swagger.Value_Type;
701+ begin
702+ Client.Set_Accept (Media_List_1);
703+
704+
705+ URI.Add_Param (" metric_id" , Metric_Id);
706+ URI.Add_Param (" asset_id" , Asset_Id);
707+ URI.Add_Param (" time_start" , Time_Start);
708+ URI.Add_Param (" time_start" , Time_Start);
709+ URI.Add_Param (" time_end" , Time_End);
710+ URI.Add_Param (" time_end" , Time_End);
711+ URI.Add_Param (" time_format" , Time_Format);
712+ URI.Add_Param (" period_id" , Period_Id);
713+ URI.Add_Param (" limit" , Limit);
714+ URI.Set_Path (" /v2/metrics/asset/history" );
715+ Client.Call (Swagger.Clients.GET, URI, Reply);
716+ .Models.Deserialize (Reply, " " , Result);
717+ end V_2Metrics_Asset_History_Get ;
718+
719+ -- Listing of metrics available for specific asset
720+ -- Get all metrics that are actually available for the specified asset.
721+ procedure V_2Metrics_Asset_Listing_Get
722+ (Client : in out Client_Type;
723+ Asset_Id : in Swagger.UString;
724+ Result : out .Models.V1MetricInfo_Type_Vectors.Vector) is
725+ URI : Swagger.Clients.URI_Type;
726+ Reply : Swagger.Value_Type;
727+ begin
728+ Client.Set_Accept (Media_List_1);
729+
730+
731+ URI.Add_Param (" asset_id" , Asset_Id);
732+ URI.Set_Path (" /v2/metrics/asset/listing" );
733+ Client.Call (Swagger.Clients.GET, URI, Reply);
734+ .Models.Deserialize (Reply, " " , Result);
735+ end V_2Metrics_Asset_Listing_Get ;
736+
737+ -- Historical metrics for the chain
738+ -- Get chain metrics history.
739+ procedure V_2Metrics_Chain_History_Get
740+ (Client : in out Client_Type;
741+ Metric_Id : in Swagger.UString;
742+ Chain_Id : in Swagger.UString;
743+ Time_Start : in Swagger.Nullable_Date;
744+ Time_End : in Swagger.Nullable_Date;
745+ Time_Format : in Swagger.Nullable_UString;
746+ Period_Id : in Swagger.Nullable_UString;
747+ Limit : in Swagger.Nullable_Integer;
748+ Result : out Swagger.Object_Vectors.Vector) is
749+ URI : Swagger.Clients.URI_Type;
750+ Reply : Swagger.Value_Type;
751+ begin
752+ Client.Set_Accept (Media_List_1);
753+
754+
755+ URI.Add_Param (" metric_id" , Metric_Id);
756+ URI.Add_Param (" chain_id" , Chain_Id);
757+ URI.Add_Param (" time_start" , Time_Start);
758+ URI.Add_Param (" time_start" , Time_Start);
759+ URI.Add_Param (" time_end" , Time_End);
760+ URI.Add_Param (" time_end" , Time_End);
761+ URI.Add_Param (" time_format" , Time_Format);
762+ URI.Add_Param (" period_id" , Period_Id);
763+ URI.Add_Param (" limit" , Limit);
764+ URI.Set_Path (" /v2/metrics/chain/history" );
765+ Client.Call (Swagger.Clients.GET, URI, Reply);
766+ .Models.Deserialize (Reply, " " , Result);
767+ end V_2Metrics_Chain_History_Get ;
768+
769+ -- Listing of metrics available for specific chain
770+ -- Get all metrics that are actually available for the specified blockchain chain.
771+ procedure V_2Metrics_Chain_Listing_Get
772+ (Client : in out Client_Type;
773+ Chain_Id : in Swagger.UString;
774+ Result : out .Models.V1MetricInfo_Type_Vectors.Vector) is
775+ URI : Swagger.Clients.URI_Type;
776+ Reply : Swagger.Value_Type;
777+ begin
778+ Client.Set_Accept (Media_List_1);
779+
780+
781+ URI.Add_Param (" chain_id" , Chain_Id);
782+ URI.Set_Path (" /v2/metrics/chain/listing" );
783+ Client.Call (Swagger.Clients.GET, URI, Reply);
784+ .Models.Deserialize (Reply, " " , Result);
785+ end V_2Metrics_Chain_Listing_Get ;
786+
787+ -- Historical metrics for the exchange
788+ -- Get exchange metrics history.
789+ procedure V_2Metrics_Exchange_History_Get
790+ (Client : in out Client_Type;
791+ Metric_Id : in Swagger.UString;
792+ Exchange_Id : in Swagger.UString;
793+ Time_Start : in Swagger.Nullable_Date;
794+ Time_End : in Swagger.Nullable_Date;
795+ Time_Format : in Swagger.Nullable_UString;
796+ Period_Id : in Swagger.Nullable_UString;
797+ Limit : in Swagger.Nullable_Integer;
798+ Result : out Swagger.Object_Vectors.Vector) is
799+ URI : Swagger.Clients.URI_Type;
800+ Reply : Swagger.Value_Type;
801+ begin
802+ Client.Set_Accept (Media_List_1);
803+
804+
805+ URI.Add_Param (" metric_id" , Metric_Id);
806+ URI.Add_Param (" exchange_id" , Exchange_Id);
807+ URI.Add_Param (" time_start" , Time_Start);
808+ URI.Add_Param (" time_start" , Time_Start);
809+ URI.Add_Param (" time_end" , Time_End);
810+ URI.Add_Param (" time_end" , Time_End);
811+ URI.Add_Param (" time_format" , Time_Format);
812+ URI.Add_Param (" period_id" , Period_Id);
813+ URI.Add_Param (" limit" , Limit);
814+ URI.Set_Path (" /v2/metrics/exchange/history" );
815+ Client.Call (Swagger.Clients.GET, URI, Reply);
816+ .Models.Deserialize (Reply, " " , Result);
817+ end V_2Metrics_Exchange_History_Get ;
818+
819+ -- Listing of metrics available for specific exchange
820+ -- Get all metrics that are actually available for the specified exchange.
821+ procedure V_2Metrics_Exchange_Listing_Get
822+ (Client : in out Client_Type;
823+ Exchange_Id : in Swagger.UString;
824+ Result : out .Models.V1MetricInfo_Type_Vectors.Vector) is
825+ URI : Swagger.Clients.URI_Type;
826+ Reply : Swagger.Value_Type;
827+ begin
828+ Client.Set_Accept (Media_List_1);
829+
830+
831+ URI.Add_Param (" exchange_id" , Exchange_Id);
832+ URI.Set_Path (" /v2/metrics/exchange/listing" );
833+ Client.Call (Swagger.Clients.GET, URI, Reply);
834+ .Models.Deserialize (Reply, " " , Result);
835+ end V_2Metrics_Exchange_Listing_Get ;
836+
837+ -- Listing of all supported metrics
838+ -- Get all metrics available in the system.
839+ procedure V_2Metrics_Listing_Get
840+ (Client : in out Client_Type;
841+ Result : out .Models.V1MetricInfo_Type_Vectors.Vector) is
842+ URI : Swagger.Clients.URI_Type;
843+ Reply : Swagger.Value_Type;
844+ begin
845+ Client.Set_Accept (Media_List_1);
846+
847+
848+ URI.Set_Path (" /v2/metrics/listing" );
849+ Client.Call (Swagger.Clients.GET, URI, Reply);
850+ .Models.Deserialize (Reply, " " , Result);
851+ end V_2Metrics_Listing_Get ;
852+
853853 -- Historical data by exchange
854854 -- Get OHLCV timeseries data returned in time ascending order. Data can be requested by the period and for the specific exchange eg `BITSTAMP`
855855 --
0 commit comments