@@ -30,6 +30,18 @@ import {
3030 getAssetsV2ROI ,
3131 getAssetTimeseries ,
3232 getAssetTimeseriesWithGranularity ,
33+ getExchanges ,
34+ getExchange ,
35+ getExchangeMetrics ,
36+ getExchangeTimeseries ,
37+ getNetworkTimeseries ,
38+ getNetworkMetrics ,
39+ getMarketMetrics ,
40+ getMarketTimeseries ,
41+ getNetworks ,
42+ getNetwork ,
43+ getMarkets ,
44+ getMarket ,
3345 modifyWatchlistAssets ,
3446 deleteWatchlist ,
3547 listWatchlists ,
@@ -100,6 +112,27 @@ import type {
100112 getAssetTimeseriesWithGranularityParameters ,
101113 getAssetTimeseriesWithGranularityResponse ,
102114 TimeseriesMetadata ,
115+ getExchangesParameters ,
116+ getExchangesResponse ,
117+ getExchangeResponse ,
118+ getExchangeParameters ,
119+ getExchangeTimeseriesResponse ,
120+ getExchangeTimeseriesParameters ,
121+ getExchangeMetricsResponse ,
122+ getNetworkMetricsResponse ,
123+ getNetworkTimeseriesParameters ,
124+ getNetworkTimeseriesResponse ,
125+ getMarketMetricsResponse ,
126+ getMarketTimeseriesParameters ,
127+ getMarketTimeseriesResponse ,
128+ getNetworksResponse ,
129+ getNetworksParameters ,
130+ getNetworkResponse ,
131+ getNetworkParameters ,
132+ getMarketsParameters ,
133+ getMarketsResponse ,
134+ getMarketResponse ,
135+ getMarketParameters ,
103136 modifyWatchlistAssetsResponse ,
104137 modifyWatchlistAssetsParameters ,
105138 deleteWatchlistResponse ,
@@ -139,6 +172,9 @@ import type {
139172 RecapsAPIInterface ,
140173 ResearchInterface ,
141174 TokenUnlocksInterface ,
175+ ExchangesInterface ,
176+ NetworksInterface ,
177+ MarketsInterface ,
142178 UserManagementInterface ,
143179} from "./base" ;
144180import { MessariClientBase } from "./base" ;
@@ -720,6 +756,114 @@ export class MessariClient extends MessariClientBase {
720756 } ,
721757 } ;
722758
759+ public readonly exchanges : ExchangesInterface = {
760+ getExchanges : async ( params : getExchangesParameters = { } , options ?: RequestOptions ) => {
761+ return this . requestWithMetadata < getExchangesResponse , PaginationMetadata > ( {
762+ method : getExchanges . method ,
763+ path : getExchanges . path ( ) ,
764+ queryParams : pick ( params , getExchanges . queryParams ) ,
765+ options,
766+ } ) ;
767+ } ,
768+
769+ getExchangeById : async ( params : getExchangeParameters , options ?: RequestOptions ) => {
770+ return this . requestWithMetadata < getExchangeResponse , PaginationMetadata > ( {
771+ method : getExchange . method ,
772+ path : getExchange . path ( params ) ,
773+ options,
774+ } ) ;
775+ } ,
776+
777+ getExchangeMetrics : async ( options ?: RequestOptions ) => {
778+ return this . requestWithMetadata < getExchangeMetricsResponse , PaginationMetadata > ( {
779+ method : getExchangeMetrics . method ,
780+ path : getExchangeMetrics . path ( ) ,
781+ options,
782+ } ) ;
783+ } ,
784+
785+ getExchangeTimeseries : async ( params : getExchangeTimeseriesParameters , options ?: RequestOptions ) => {
786+ return this . requestWithMetadata < getExchangeTimeseriesResponse , TimeseriesMetadata > ( {
787+ method : getExchangeTimeseries . method ,
788+ path : getExchangeTimeseries . path ( params ) ,
789+ queryParams : pick ( params , getExchangeTimeseries . queryParams ) ,
790+ options,
791+ } ) ;
792+ } ,
793+ } ;
794+
795+ public readonly networks : NetworksInterface = {
796+ getNetworks : async ( params : getNetworksParameters = { } , options ?: RequestOptions ) => {
797+ return this . requestWithMetadata < getNetworksResponse , PaginationMetadata > ( {
798+ method : getNetworks . method ,
799+ path : getNetworks . path ( ) ,
800+ queryParams : pick ( params , getNetworks . queryParams ) ,
801+ options,
802+ } ) ;
803+ } ,
804+
805+ getNetworkById : async ( params : getNetworkParameters , options ?: RequestOptions ) => {
806+ return this . requestWithMetadata < getNetworkResponse , PaginationMetadata > ( {
807+ method : getNetwork . method ,
808+ path : getNetwork . path ( params ) ,
809+ options,
810+ } ) ;
811+ } ,
812+
813+ getNetworkMetrics : async ( options ?: RequestOptions ) => {
814+ return this . requestWithMetadata < getNetworkMetricsResponse , PaginationMetadata > ( {
815+ method : getNetworkMetrics . method ,
816+ path : getNetworkMetrics . path ( ) ,
817+ options,
818+ } ) ;
819+ } ,
820+
821+ getNetworkTimeseries : async ( params : getNetworkTimeseriesParameters , options ?: RequestOptions ) => {
822+ return this . requestWithMetadata < getNetworkTimeseriesResponse , TimeseriesMetadata > ( {
823+ method : getNetworkTimeseries . method ,
824+ path : getNetworkTimeseries . path ( params ) ,
825+ queryParams : pick ( params , getNetworkTimeseries . queryParams ) ,
826+ options,
827+ } ) ;
828+ } ,
829+ } ;
830+
831+ public readonly markets : MarketsInterface = {
832+ getMarkets : async ( params : getMarketsParameters = { } , options ?: RequestOptions ) => {
833+ return this . requestWithMetadata < getMarketsResponse , PaginationMetadata > ( {
834+ method : getMarkets . method ,
835+ path : getMarkets . path ( ) ,
836+ queryParams : pick ( params , getMarkets . queryParams ) ,
837+ options,
838+ } ) ;
839+ } ,
840+
841+ getMarketById : async ( params : getMarketParameters , options ?: RequestOptions ) => {
842+ return this . requestWithMetadata < getMarketResponse , PaginationMetadata > ( {
843+ method : getMarket . method ,
844+ path : getMarket . path ( params ) ,
845+ options,
846+ } ) ;
847+ } ,
848+
849+ getMarketMetrics : async ( options ?: RequestOptions ) => {
850+ return this . requestWithMetadata < getMarketMetricsResponse , PaginationMetadata > ( {
851+ method : getMarketMetrics . method ,
852+ path : getMarketMetrics . path ( ) ,
853+ options,
854+ } ) ;
855+ } ,
856+
857+ getMarketTimeseries : async ( params : getMarketTimeseriesParameters , options ?: RequestOptions ) => {
858+ return this . requestWithMetadata < getMarketTimeseriesResponse , TimeseriesMetadata > ( {
859+ method : getMarketTimeseries . method ,
860+ path : getMarketTimeseries . path ( params ) ,
861+ queryParams : pick ( params , getMarketTimeseries . queryParams ) ,
862+ options,
863+ } ) ;
864+ } ,
865+ } ;
866+
723867 /**
724868 * @deprecated Intel is Work-in-Progress and not production ready
725869 */
0 commit comments