@orbis-systems/orbis-api-clients 0.7.14 → 0.7.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (43) hide show
  1. package/dist/aesmidas/index.d.ts +197 -163
  2. package/dist/aesmidas/index.d.ts.map +1 -1
  3. package/dist/aesmidas/index.esm.js +1 -1
  4. package/dist/aesmidas/index.esm.js.map +1 -1
  5. package/dist/aesmidas/index.js +1 -1
  6. package/dist/aesmidas/index.js.map +1 -1
  7. package/dist/bridgewise/index.d.ts +710 -558
  8. package/dist/bridgewise/index.d.ts.map +1 -1
  9. package/dist/bridgewise/index.esm.js +1 -1
  10. package/dist/bridgewise/index.esm.js.map +1 -1
  11. package/dist/bridgewise/index.js +1 -1
  12. package/dist/bridgewise/index.js.map +1 -1
  13. package/dist/insight/index.d.ts +410 -131
  14. package/dist/insight/index.d.ts.map +1 -1
  15. package/dist/insight/index.esm.js +1 -1
  16. package/dist/insight/index.esm.js.map +1 -1
  17. package/dist/insight/index.js +1 -1
  18. package/dist/insight/index.js.map +1 -1
  19. package/dist/middleware/index.d.ts +156 -87
  20. package/dist/middleware/index.d.ts.map +1 -1
  21. package/dist/middleware/index.esm.js +1 -1
  22. package/dist/middleware/index.esm.js.map +1 -1
  23. package/dist/middleware/index.js +1 -1
  24. package/dist/middleware/index.js.map +1 -1
  25. package/dist/orbis/index.d.ts +911 -1067
  26. package/dist/orbis/index.d.ts.map +1 -1
  27. package/dist/orbis/index.esm.js +1 -1
  28. package/dist/orbis/index.esm.js.map +1 -1
  29. package/dist/orbis/index.js +1 -1
  30. package/dist/orbis/index.js.map +1 -1
  31. package/dist/uma/index.d.ts +475 -774
  32. package/dist/uma/index.d.ts.map +1 -1
  33. package/dist/uma/index.esm.js +1 -1
  34. package/dist/uma/index.esm.js.map +1 -1
  35. package/dist/uma/index.js +1 -1
  36. package/dist/uma/index.js.map +1 -1
  37. package/dist/zerohash/index.d.ts +263 -245
  38. package/dist/zerohash/index.d.ts.map +1 -1
  39. package/dist/zerohash/index.esm.js +1 -1
  40. package/dist/zerohash/index.esm.js.map +1 -1
  41. package/dist/zerohash/index.js +1 -1
  42. package/dist/zerohash/index.js.map +1 -1
  43. package/package.json +1 -1
@@ -553,6 +553,45 @@ declare class TransfersAcats<HandleError extends boolean = boolean> {
553
553
  type?: string;
554
554
  }[], config?: RequestConfig<HandleError>): Promise<ClientResponse<any, HandleError>>;
555
555
  }
556
+ declare class TransfersPositions<HandleError extends boolean = boolean> {
557
+ protected readonly apiClient: JwtClient<HandleError>;
558
+ constructor(apiClient: JwtClient<HandleError>);
559
+ /**
560
+ * @tags Transfers Positions
561
+ * @name TransferRequest
562
+ * @summary Transfer request
563
+ * @request POST:/transfer/position/request
564
+ * @secure
565
+ */
566
+ transferRequest(data: {
567
+ deliverFrom?: {
568
+ /** @example 124 */
569
+ accountId?: number;
570
+ /** @example "ABC123456" */
571
+ accountNumber?: string;
572
+ };
573
+ deliverTo?: {
574
+ /** @example 456 */
575
+ accountId?: number;
576
+ /** @example "DEF123456" */
577
+ accountNumber?: string;
578
+ };
579
+ /** @example "NoPurpose|Gift" */
580
+ purpose?: any;
581
+ /** @example 1000 */
582
+ quantity?: any;
583
+ quote?: {
584
+ /** @example "IBM" */
585
+ symbol?: string;
586
+ };
587
+ /** @example "" */
588
+ reason?: any;
589
+ /** @example "0.0.0.0" */
590
+ remoteAddr?: any;
591
+ /** @example "Ultra fast proxy" */
592
+ remoteDevice?: any;
593
+ }, config?: RequestConfig<HandleError>): Promise<ClientResponse<any, HandleError>>;
594
+ }
556
595
  declare class TransfersWires<HandleError extends boolean = boolean> {
557
596
  protected readonly apiClient: JwtClient<HandleError>;
558
597
  constructor(apiClient: JwtClient<HandleError>);
@@ -594,6 +633,24 @@ declare class TransfersWires<HandleError extends boolean = boolean> {
594
633
  disbursementType?: any;
595
634
  /** @example 1234 */
596
635
  entryId?: any;
636
+ intermediary?: {
637
+ /** @example "{account number}" */
638
+ account?: string;
639
+ address?: {
640
+ /** @example "Central City" */
641
+ city?: string;
642
+ /** @example "USA" */
643
+ country?: string;
644
+ /** @example "11235" */
645
+ postalCode?: string;
646
+ /** @example "ST" */
647
+ stateProvince?: string;
648
+ /** @example ["123 Main St"] */
649
+ streetAddress?: string[];
650
+ };
651
+ /** @example "{name on account}" */
652
+ name?: string;
653
+ };
597
654
  /** @example false */
598
655
  international?: any;
599
656
  iraDetails?: {
@@ -698,45 +755,6 @@ declare class TransfersJournals<HandleError extends boolean = boolean> {
698
755
  transferId?: any;
699
756
  }, config?: RequestConfig<HandleError>): Promise<ClientResponse<any, HandleError>>;
700
757
  }
701
- declare class TransfersPositions<HandleError extends boolean = boolean> {
702
- protected readonly apiClient: JwtClient<HandleError>;
703
- constructor(apiClient: JwtClient<HandleError>);
704
- /**
705
- * @tags Transfers Positions
706
- * @name TransferRequest
707
- * @summary Transfer request
708
- * @request POST:/transfer/position/request
709
- * @secure
710
- */
711
- transferRequest(data: {
712
- deliverFrom?: {
713
- /** @example 124 */
714
- accountId?: number;
715
- /** @example "ABC123456" */
716
- accountNumber?: string;
717
- };
718
- deliverTo?: {
719
- /** @example 456 */
720
- accountId?: number;
721
- /** @example "DEF123456" */
722
- accountNumber?: string;
723
- };
724
- /** @example "NoPurpose|Gift" */
725
- purpose?: any;
726
- /** @example 1000 */
727
- quantity?: any;
728
- quote?: {
729
- /** @example "IBM" */
730
- symbol?: string;
731
- };
732
- /** @example "" */
733
- reason?: any;
734
- /** @example "0.0.0.0" */
735
- remoteAddr?: any;
736
- /** @example "Ultra fast proxy" */
737
- remoteDevice?: any;
738
- }, config?: RequestConfig<HandleError>): Promise<ClientResponse<any, HandleError>>;
739
- }
740
758
  declare class TransfersBank<HandleError extends boolean = boolean> {
741
759
  protected readonly apiClient: JwtClient<HandleError>;
742
760
  constructor(apiClient: JwtClient<HandleError>);
@@ -12859,19 +12877,6 @@ export enum ZeroHashGetOhlcvDataParamsTimeFrameEnum {
12859
12877
  Hourly = "hourly",
12860
12878
  Daily = "daily"
12861
12879
  }
12862
- export class Public<HandleError extends boolean = boolean> {
12863
- protected readonly apiClient: JwtClient<HandleError>;
12864
- constructor(apiClient: JwtClient<HandleError>);
12865
- /**
12866
- * @description Provides the current server time in seconds using Unix timestamp format.
12867
- * @tags Public
12868
- * @name GetServerTime
12869
- * @summary Get server time
12870
- * @request GET:/time
12871
- * @secure
12872
- */
12873
- getServerTime(config?: RequestConfig<HandleError>): Promise<ClientResponse<ZeroHashGetTimeResponse, HandleError>>;
12874
- }
12875
12880
  export class Index<HandleError extends boolean = boolean> {
12876
12881
  protected readonly apiClient: JwtClient<HandleError>;
12877
12882
  constructor(apiClient: JwtClient<HandleError>);
@@ -12901,6 +12906,19 @@ export class Index<HandleError extends boolean = boolean> {
12901
12906
  'X-SCX-TIMESTAMP'?: string;
12902
12907
  }, config?: RequestConfig<HandleError>): Promise<ClientResponse<ZeroHashGetIndexResponse, HandleError>>;
12903
12908
  }
12909
+ export class Public<HandleError extends boolean = boolean> {
12910
+ protected readonly apiClient: JwtClient<HandleError>;
12911
+ constructor(apiClient: JwtClient<HandleError>);
12912
+ /**
12913
+ * @description Provides the current server time in seconds using Unix timestamp format.
12914
+ * @tags Public
12915
+ * @name GetServerTime
12916
+ * @summary Get server time
12917
+ * @request GET:/time
12918
+ * @secure
12919
+ */
12920
+ getServerTime(config?: RequestConfig<HandleError>): Promise<ClientResponse<ZeroHashGetTimeResponse, HandleError>>;
12921
+ }
12904
12922
  export class Assets<HandleError extends boolean = boolean> {
12905
12923
  protected readonly apiClient: JwtClient<HandleError>;
12906
12924
  constructor(apiClient: JwtClient<HandleError>);
@@ -13244,6 +13262,49 @@ export class Accounts<HandleError extends boolean = boolean> {
13244
13262
  'X-SCX-TIMESTAMP'?: string;
13245
13263
  }, config?: RequestConfig<HandleError>): Promise<ClientResponse<ZeroHashGetRunHistoryResponse, HandleError>>;
13246
13264
  }
13265
+ export class Movements<HandleError extends boolean = boolean> {
13266
+ protected readonly apiClient: JwtClient<HandleError>;
13267
+ constructor(apiClient: JwtClient<HandleError>);
13268
+ /**
13269
+ * @description Retrieves the history of each itemized movement that has been applied to all account(s) that the requesting platform has access to. Results are limited to the last 2 months
13270
+ * @tags Movements
13271
+ * @name GetMovements
13272
+ * @summary Get movements
13273
+ * @request GET:/movements
13274
+ * @secure
13275
+ */
13276
+ getMovements(query?: {
13277
+ /** Filters for a specific page (pagination) */
13278
+ page?: string;
13279
+ /** The number of results returned per page, with a maximum of 50 transactions per page */
13280
+ page_size?: string;
13281
+ /** Filters for movements that are tagged with a specific parent_link_id */
13282
+ parent_link_id?: string;
13283
+ /**
13284
+ * The type of movement
13285
+ * @example "final_settlement"
13286
+ */
13287
+ movement_type?: ZeroHashGetMovementsParamsMovementTypeEnum;
13288
+ /**
13289
+ * Transfer type
13290
+ * @example "credit"
13291
+ */
13292
+ transfer_type?: ZeroHashGetMovementsParamsTransferTypeEnum;
13293
+ /** This parameter enables the filtering of movements based on the associated account_id. */
13294
+ account_id?: string;
13295
+ }, headers?: {
13296
+ /**
13297
+ * Signature for your request.
13298
+ * @default "[WEB] auto-generated on fly"
13299
+ */
13300
+ 'X-SCX-SIGNED'?: string;
13301
+ /**
13302
+ * UNIX timestamp.
13303
+ * @default "[WEB] auto-generated on fly"
13304
+ */
13305
+ 'X-SCX-TIMESTAMP'?: string;
13306
+ }, config?: RequestConfig<HandleError>): Promise<ClientResponse<ZeroHashGetMovementsResponse, HandleError>>;
13307
+ }
13247
13308
  export class Deposits<HandleError extends boolean = boolean> {
13248
13309
  protected readonly apiClient: JwtClient<HandleError>;
13249
13310
  constructor(apiClient: JwtClient<HandleError>);
@@ -13522,49 +13583,6 @@ export class Deposits<HandleError extends boolean = boolean> {
13522
13583
  'X-SCX-TIMESTAMP'?: string;
13523
13584
  }, config?: RequestConfig<HandleError>): Promise<ClientResponse<void, HandleError>>;
13524
13585
  }
13525
- export class Movements<HandleError extends boolean = boolean> {
13526
- protected readonly apiClient: JwtClient<HandleError>;
13527
- constructor(apiClient: JwtClient<HandleError>);
13528
- /**
13529
- * @description Retrieves the history of each itemized movement that has been applied to all account(s) that the requesting platform has access to. Results are limited to the last 2 months
13530
- * @tags Movements
13531
- * @name GetMovements
13532
- * @summary Get movements
13533
- * @request GET:/movements
13534
- * @secure
13535
- */
13536
- getMovements(query?: {
13537
- /** Filters for a specific page (pagination) */
13538
- page?: string;
13539
- /** The number of results returned per page, with a maximum of 50 transactions per page */
13540
- page_size?: string;
13541
- /** Filters for movements that are tagged with a specific parent_link_id */
13542
- parent_link_id?: string;
13543
- /**
13544
- * The type of movement
13545
- * @example "final_settlement"
13546
- */
13547
- movement_type?: ZeroHashGetMovementsParamsMovementTypeEnum;
13548
- /**
13549
- * Transfer type
13550
- * @example "credit"
13551
- */
13552
- transfer_type?: ZeroHashGetMovementsParamsTransferTypeEnum;
13553
- /** This parameter enables the filtering of movements based on the associated account_id. */
13554
- account_id?: string;
13555
- }, headers?: {
13556
- /**
13557
- * Signature for your request.
13558
- * @default "[WEB] auto-generated on fly"
13559
- */
13560
- 'X-SCX-SIGNED'?: string;
13561
- /**
13562
- * UNIX timestamp.
13563
- * @default "[WEB] auto-generated on fly"
13564
- */
13565
- 'X-SCX-TIMESTAMP'?: string;
13566
- }, config?: RequestConfig<HandleError>): Promise<ClientResponse<ZeroHashGetMovementsResponse, HandleError>>;
13567
- }
13568
13586
  export class Withdrawals<HandleError extends boolean = boolean> {
13569
13587
  protected readonly apiClient: JwtClient<HandleError>;
13570
13588
  constructor(apiClient: JwtClient<HandleError>);
@@ -15090,6 +15108,156 @@ export class ConvertAndWithdraw<HandleError extends boolean = boolean> {
15090
15108
  'X-SCX-TIMESTAMP'?: string;
15091
15109
  }, config?: RequestConfig<HandleError>): Promise<ClientResponse<ZeroHashPostCWExecuteQuoteResponse, HandleError>>;
15092
15110
  }
15111
+ export class MarketData<HandleError extends boolean = boolean> {
15112
+ protected readonly apiClient: JwtClient<HandleError>;
15113
+ constructor(apiClient: JwtClient<HandleError>);
15114
+ /**
15115
+ * @description Retrieves a list of symbols and their market data.
15116
+ * @tags Market Data
15117
+ * @name GetSymbolData
15118
+ * @summary Get symbol data
15119
+ * @request GET:/market_data/symbol_data
15120
+ * @secure
15121
+ */
15122
+ getSymbolData(query?: {
15123
+ /** Filter for underlying asset */
15124
+ underlying?: string;
15125
+ /** Filter for quoted_currency */
15126
+ quoted_currency?: string;
15127
+ }, config?: RequestConfig<HandleError>): Promise<ClientResponse<ZeroHashGetSymbolDataResponse, HandleError>>;
15128
+ /**
15129
+ * @description Retrieves an list of historical data of open, high, low, close, underlying_volume and quoted_volume.
15130
+ * @tags Market Data
15131
+ * @name GetOhlcvData
15132
+ * @summary Get OHLCV data
15133
+ * @request GET:/market_data/ohlcv
15134
+ * @secure
15135
+ */
15136
+ getOhlcvData(query: {
15137
+ /** Filter for underlying asset */
15138
+ underlying: string;
15139
+ /** Filter for quoted asset */
15140
+ quoted_currency: string;
15141
+ /** Filter for maximum number of data points to be returned */
15142
+ limit?: string;
15143
+ /** Filter for objects before given timestamp */
15144
+ data_end_date?: string;
15145
+ /** Filter for all data(daily `time_frame`) */
15146
+ all_data?: boolean;
15147
+ /** Filter for time_frame */
15148
+ time_frame: ZeroHashGetOhlcvDataParamsTimeFrameEnum;
15149
+ }, headers?: {
15150
+ /**
15151
+ * Signature for your request.
15152
+ * @default "[WEB] auto-generated on fly"
15153
+ */
15154
+ 'X-SCX-SIGNED'?: string;
15155
+ /**
15156
+ * UNIX timestamp.
15157
+ * @default "[WEB] auto-generated on fly"
15158
+ */
15159
+ 'X-SCX-TIMESTAMP'?: string;
15160
+ }, config?: RequestConfig<HandleError>): Promise<ClientResponse<ZeroHashGetOHLCVResponse, HandleError>>;
15161
+ /**
15162
+ * @description Retrieves a list of market news articles filtered using given parameters.
15163
+ * @tags Market Data
15164
+ * @name GetNewsArticles
15165
+ * @summary Get news articles
15166
+ * @request GET:/market_data/news/latest
15167
+ * @secure
15168
+ */
15169
+ getNewsArticles(query?: {
15170
+ /** Sources (feeds) of news articles, options can be fetched from /news/feeds */
15171
+ news_source?: string;
15172
+ /** Categories of news articles, options can be fetched from /news/categories */
15173
+ categories?: string;
15174
+ /** Categories of news articles to be excluded from result, options can be fetched from /news/categories */
15175
+ exclude_categories?: string;
15176
+ /** UNIX timestamp, is used to fetch articles before the given time */
15177
+ lookback?: string;
15178
+ /** Language of articles to be fetched. Format: `EN` (English) or `PT` (Portuguese) */
15179
+ language?: string;
15180
+ /** Sorting order of news articles. Can be either `popular` or `latest` */
15181
+ sort_by?: string;
15182
+ }, config?: RequestConfig<HandleError>): Promise<ClientResponse<ZeroHashGetLatestNewsResponse, HandleError>>;
15183
+ /**
15184
+ * @description Retrieves a list of available market data feeds, which can be used to query articles.
15185
+ * @tags Market Data
15186
+ * @name GetNewsFeeds
15187
+ * @summary Get news feeds
15188
+ * @request GET:/market_data/news/feeds
15189
+ * @secure
15190
+ */
15191
+ getNewsFeeds(config?: RequestConfig<HandleError>): Promise<ClientResponse<ZeroHashGetNewsFeedsResponse, HandleError>>;
15192
+ /**
15193
+ * @description Retrieves a list of available market data categories, which can be used to query articles.
15194
+ * @tags Market Data
15195
+ * @name GetCategories
15196
+ * @summary Get categories
15197
+ * @request GET:/market_data/news/categories
15198
+ * @secure
15199
+ */
15200
+ getCategories(config?: RequestConfig<HandleError>): Promise<ClientResponse<ZeroHashGetNewsCategoriesResponse, HandleError>>;
15201
+ }
15202
+ export class Fund<HandleError extends boolean = boolean> {
15203
+ protected readonly apiClient: JwtClient<HandleError>;
15204
+ constructor(apiClient: JwtClient<HandleError>);
15205
+ /**
15206
+ * @description Retrieves a quote for a fund event for a given participant code and asset. This endpoint response indicates the rate by which a subsequent on-chain deposit will be honored at.
15207
+ * @tags Fund
15208
+ * @name GetQuote
15209
+ * @summary Get quote
15210
+ * @request POST:/fund/rfq
15211
+ * @secure
15212
+ */
15213
+ getQuote(data: ZeroHashPostFundRfqBody, headers?: {
15214
+ /**
15215
+ * Signature for your request.
15216
+ * @default "[WEB] auto-generated on fly"
15217
+ */
15218
+ 'X-SCX-SIGNED'?: string;
15219
+ /**
15220
+ * UNIX timestamp.
15221
+ * @default "[WEB] auto-generated on fly"
15222
+ */
15223
+ 'X-SCX-TIMESTAMP'?: string;
15224
+ }, config?: RequestConfig<HandleError>): Promise<ClientResponse<ZeroHashPostFundRfqResponse, HandleError>>;
15225
+ /**
15226
+ * @description You can use the `fund_id` in the response as the “parent” to query `GET /movements?parent_link_id=[fund_id]` to view a trail of all movements related to this fund event.
15227
+ * @tags Fund
15228
+ * @name GetTransactions
15229
+ * @summary Get transactions
15230
+ * @request GET:/fund/transactions
15231
+ * @secure
15232
+ */
15233
+ getTransactions(query?: {
15234
+ /** Participant code of the end customer */
15235
+ participant_code?: string;
15236
+ /** The asset sent on-chain by the end customer in order to fund an account */
15237
+ fund_asset?: string;
15238
+ /** The address provided by Zero Hash that the end customer will send to */
15239
+ deposit_address?: string;
15240
+ /** The Zero Hash-generated unique identifier associated with an executed fund event */
15241
+ fund_id?: string;
15242
+ /** Filters for a specific page (pagination) */
15243
+ page?: string;
15244
+ /** The number of results returned per page, with a maximum of 50 transactions per page */
15245
+ page_size?: string;
15246
+ /** Filters transactions by successful status. This is a boolean field, please specify either `true` or `false` */
15247
+ success?: string;
15248
+ }, headers?: {
15249
+ /**
15250
+ * Signature for your request.
15251
+ * @default "[WEB] auto-generated on fly"
15252
+ */
15253
+ 'X-SCX-SIGNED'?: string;
15254
+ /**
15255
+ * UNIX timestamp.
15256
+ * @default "[WEB] auto-generated on fly"
15257
+ */
15258
+ 'X-SCX-TIMESTAMP'?: string;
15259
+ }, config?: RequestConfig<HandleError>): Promise<ClientResponse<ZeroHashGetFundTransactionsResponse, HandleError>>;
15260
+ }
15093
15261
  export class Clob<HandleError extends boolean = boolean> {
15094
15262
  protected readonly apiClient: JwtClient<HandleError>;
15095
15263
  constructor(apiClient: JwtClient<HandleError>);
@@ -15303,156 +15471,6 @@ export class Clob<HandleError extends boolean = boolean> {
15303
15471
  'X-SCX-TIMESTAMP'?: string;
15304
15472
  }, config?: RequestConfig<HandleError>): Promise<ClientResponse<ZeroHashPostTradeStatsResponse, HandleError>>;
15305
15473
  }
15306
- export class MarketData<HandleError extends boolean = boolean> {
15307
- protected readonly apiClient: JwtClient<HandleError>;
15308
- constructor(apiClient: JwtClient<HandleError>);
15309
- /**
15310
- * @description Retrieves a list of symbols and their market data.
15311
- * @tags Market Data
15312
- * @name GetSymbolData
15313
- * @summary Get symbol data
15314
- * @request GET:/market_data/symbol_data
15315
- * @secure
15316
- */
15317
- getSymbolData(query?: {
15318
- /** Filter for underlying asset */
15319
- underlying?: string;
15320
- /** Filter for quoted_currency */
15321
- quoted_currency?: string;
15322
- }, config?: RequestConfig<HandleError>): Promise<ClientResponse<ZeroHashGetSymbolDataResponse, HandleError>>;
15323
- /**
15324
- * @description Retrieves an list of historical data of open, high, low, close, underlying_volume and quoted_volume.
15325
- * @tags Market Data
15326
- * @name GetOhlcvData
15327
- * @summary Get OHLCV data
15328
- * @request GET:/market_data/ohlcv
15329
- * @secure
15330
- */
15331
- getOhlcvData(query: {
15332
- /** Filter for underlying asset */
15333
- underlying: string;
15334
- /** Filter for quoted asset */
15335
- quoted_currency: string;
15336
- /** Filter for maximum number of data points to be returned */
15337
- limit?: string;
15338
- /** Filter for objects before given timestamp */
15339
- data_end_date?: string;
15340
- /** Filter for all data(daily `time_frame`) */
15341
- all_data?: boolean;
15342
- /** Filter for time_frame */
15343
- time_frame: ZeroHashGetOhlcvDataParamsTimeFrameEnum;
15344
- }, headers?: {
15345
- /**
15346
- * Signature for your request.
15347
- * @default "[WEB] auto-generated on fly"
15348
- */
15349
- 'X-SCX-SIGNED'?: string;
15350
- /**
15351
- * UNIX timestamp.
15352
- * @default "[WEB] auto-generated on fly"
15353
- */
15354
- 'X-SCX-TIMESTAMP'?: string;
15355
- }, config?: RequestConfig<HandleError>): Promise<ClientResponse<ZeroHashGetOHLCVResponse, HandleError>>;
15356
- /**
15357
- * @description Retrieves a list of market news articles filtered using given parameters.
15358
- * @tags Market Data
15359
- * @name GetNewsArticles
15360
- * @summary Get news articles
15361
- * @request GET:/market_data/news/latest
15362
- * @secure
15363
- */
15364
- getNewsArticles(query?: {
15365
- /** Sources (feeds) of news articles, options can be fetched from /news/feeds */
15366
- news_source?: string;
15367
- /** Categories of news articles, options can be fetched from /news/categories */
15368
- categories?: string;
15369
- /** Categories of news articles to be excluded from result, options can be fetched from /news/categories */
15370
- exclude_categories?: string;
15371
- /** UNIX timestamp, is used to fetch articles before the given time */
15372
- lookback?: string;
15373
- /** Language of articles to be fetched. Format: `EN` (English) or `PT` (Portuguese) */
15374
- language?: string;
15375
- /** Sorting order of news articles. Can be either `popular` or `latest` */
15376
- sort_by?: string;
15377
- }, config?: RequestConfig<HandleError>): Promise<ClientResponse<ZeroHashGetLatestNewsResponse, HandleError>>;
15378
- /**
15379
- * @description Retrieves a list of available market data feeds, which can be used to query articles.
15380
- * @tags Market Data
15381
- * @name GetNewsFeeds
15382
- * @summary Get news feeds
15383
- * @request GET:/market_data/news/feeds
15384
- * @secure
15385
- */
15386
- getNewsFeeds(config?: RequestConfig<HandleError>): Promise<ClientResponse<ZeroHashGetNewsFeedsResponse, HandleError>>;
15387
- /**
15388
- * @description Retrieves a list of available market data categories, which can be used to query articles.
15389
- * @tags Market Data
15390
- * @name GetCategories
15391
- * @summary Get categories
15392
- * @request GET:/market_data/news/categories
15393
- * @secure
15394
- */
15395
- getCategories(config?: RequestConfig<HandleError>): Promise<ClientResponse<ZeroHashGetNewsCategoriesResponse, HandleError>>;
15396
- }
15397
- export class Fund<HandleError extends boolean = boolean> {
15398
- protected readonly apiClient: JwtClient<HandleError>;
15399
- constructor(apiClient: JwtClient<HandleError>);
15400
- /**
15401
- * @description Retrieves a quote for a fund event for a given participant code and asset. This endpoint response indicates the rate by which a subsequent on-chain deposit will be honored at.
15402
- * @tags Fund
15403
- * @name GetQuote
15404
- * @summary Get quote
15405
- * @request POST:/fund/rfq
15406
- * @secure
15407
- */
15408
- getQuote(data: ZeroHashPostFundRfqBody, headers?: {
15409
- /**
15410
- * Signature for your request.
15411
- * @default "[WEB] auto-generated on fly"
15412
- */
15413
- 'X-SCX-SIGNED'?: string;
15414
- /**
15415
- * UNIX timestamp.
15416
- * @default "[WEB] auto-generated on fly"
15417
- */
15418
- 'X-SCX-TIMESTAMP'?: string;
15419
- }, config?: RequestConfig<HandleError>): Promise<ClientResponse<ZeroHashPostFundRfqResponse, HandleError>>;
15420
- /**
15421
- * @description You can use the `fund_id` in the response as the “parent” to query `GET /movements?parent_link_id=[fund_id]` to view a trail of all movements related to this fund event.
15422
- * @tags Fund
15423
- * @name GetTransactions
15424
- * @summary Get transactions
15425
- * @request GET:/fund/transactions
15426
- * @secure
15427
- */
15428
- getTransactions(query?: {
15429
- /** Participant code of the end customer */
15430
- participant_code?: string;
15431
- /** The asset sent on-chain by the end customer in order to fund an account */
15432
- fund_asset?: string;
15433
- /** The address provided by Zero Hash that the end customer will send to */
15434
- deposit_address?: string;
15435
- /** The Zero Hash-generated unique identifier associated with an executed fund event */
15436
- fund_id?: string;
15437
- /** Filters for a specific page (pagination) */
15438
- page?: string;
15439
- /** The number of results returned per page, with a maximum of 50 transactions per page */
15440
- page_size?: string;
15441
- /** Filters transactions by successful status. This is a boolean field, please specify either `true` or `false` */
15442
- success?: string;
15443
- }, headers?: {
15444
- /**
15445
- * Signature for your request.
15446
- * @default "[WEB] auto-generated on fly"
15447
- */
15448
- 'X-SCX-SIGNED'?: string;
15449
- /**
15450
- * UNIX timestamp.
15451
- * @default "[WEB] auto-generated on fly"
15452
- */
15453
- 'X-SCX-TIMESTAMP'?: string;
15454
- }, config?: RequestConfig<HandleError>): Promise<ClientResponse<ZeroHashGetFundTransactionsResponse, HandleError>>;
15455
- }
15456
15474
  export class ZeroHashApi<HandleError extends boolean = false> extends BaseApi<HandleError, JwtClient<HandleError>> {
15457
15475
  readonly config: JwtClientConfig<HandleError>;
15458
15476
  accounts: Accounts<HandleError>;