@orbis-systems/orbis-api-clients 0.6.3 → 0.6.4

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.
@@ -242,9 +242,15 @@ export interface InsightArticleBody {
242
242
  type: string;
243
243
  }
244
244
  export interface InsightArticleByIDRequest {
245
- /** (REQUIRE) */
245
+ /**
246
+ * (REQUIRE)
247
+ * @example 15035
248
+ */
246
249
  ID?: number;
247
- /** (REQUIRE) */
250
+ /**
251
+ * (REQUIRE)
252
+ * @example "eng"
253
+ */
248
254
  language?: string;
249
255
  }
250
256
  export interface InsightArticleFeaturedImage {
@@ -264,7 +270,7 @@ export interface InsightArticleFeaturedImageInfo {
264
270
  }
265
271
  export interface InsightArticlesRequest {
266
272
  /** @example 10 */
267
- count: number;
273
+ count?: number;
268
274
  /** @example "eng" */
269
275
  language: string;
270
276
  /** @example 1609459200 */
@@ -353,17 +359,17 @@ export interface InsightCalculateEstimatedReturnsResponse {
353
359
  total_value: number;
354
360
  }
355
361
  export interface InsightCalculateMatrixParamsRequest {
356
- expiry_date: InsightDate;
362
+ expiry_date?: InsightDate;
357
363
  /** @example 10 */
358
- max_intervals: number;
364
+ max_intervals?: number;
359
365
  /** @example "c" */
360
366
  option_type?: InsightCalculateMatrixParamsRequestOptionTypeEnum;
361
367
  /** @example 160 */
362
- stock_price_max: number;
368
+ stock_price_max?: number;
363
369
  /** @example 140 */
364
- stock_price_min: number;
370
+ stock_price_min?: number;
365
371
  /** @example 155 */
366
- strike_value: number;
372
+ strike_value?: number;
367
373
  /** @example "AAPL" */
368
374
  ticker: string;
369
375
  }
@@ -372,13 +378,13 @@ export interface InsightCalculateMatrixResponse {
372
378
  ticker_data: InsightTickerData;
373
379
  }
374
380
  export interface InsightCalculateParamsRequest {
375
- expiry_date: InsightDate;
381
+ expiry_date?: InsightDate;
376
382
  /** @example "c" */
377
383
  option_type?: InsightCalculateParamsRequestOptionTypeEnum;
378
384
  /** @example 150.25 */
379
- stock_price: number;
385
+ stock_price?: number;
380
386
  /** @example 155 */
381
- strike_value: number;
387
+ strike_value?: number;
382
388
  /** @example "AAPL" */
383
389
  ticker: string;
384
390
  }
@@ -432,7 +438,7 @@ export interface InsightCombainedProfileResponse {
432
438
  /** @example 36.403 */
433
439
  fund_ownership_percent: number;
434
440
  /** @example "EQUITY" */
435
- fund_type: string;
441
+ fund_type: InsightCombainedProfileResponseFundTypeEnum;
436
442
  /** @example 0.392 */
437
443
  insider_ownership_percent: number;
438
444
  /** @example 39.768 */
@@ -564,9 +570,9 @@ export interface InsightCreateFeaturedArticlesRequest {
564
570
  /** @example 1 */
565
571
  source_id: number;
566
572
  /** @example ["AAPL","GOOGL"] */
567
- symbols: string[];
573
+ symbols?: string[];
568
574
  /** @example ["News","Update"] */
569
- tags: string[];
575
+ tags?: string[];
570
576
  /**
571
577
  * @maxLength 1000
572
578
  * @example "This is a teaser for the breaking news"
@@ -591,16 +597,16 @@ export interface InsightCreateHeatmapPresetRequest {
591
597
  export interface InsightCreateOrUpdateFixedIncomePresetRequest {
592
598
  id?: string;
593
599
  preset?: InsightGetFixedIncomeEntriesRequest;
594
- preset_color?: string;
600
+ preset_color: string;
595
601
  preset_description?: string;
596
- preset_name?: string;
602
+ preset_name: string;
597
603
  }
598
604
  export interface InsightCreateOrUpdateScreenerPresetRequest {
599
605
  id?: string;
600
606
  preset?: InsightStockScreenerRequest;
601
- preset_color?: string;
607
+ preset_color: string;
602
608
  preset_description?: string;
603
- preset_name?: string;
609
+ preset_name: string;
604
610
  }
605
611
  export interface InsightCreateRegionRequest {
606
612
  regions: InsightRegion[];
@@ -799,7 +805,7 @@ export interface InsightFeaturedArticle {
799
805
  updated: string;
800
806
  }
801
807
  export interface InsightFilterCustomIndexesRequest {
802
- paging?: InsightPaging;
808
+ paging: InsightPaging;
803
809
  symbols?: string[];
804
810
  }
805
811
  export interface InsightFilteredCustomIndexResponse {
@@ -946,12 +952,14 @@ export interface InsightFundScreenerQuote {
946
952
  export interface InsightFundScreenerRequest {
947
953
  assets?: string[];
948
954
  categories?: string[];
949
- fund_type?: string;
950
- inverse?: string;
951
- leverage?: string;
955
+ /** @example "ETF" */
956
+ fund_type: InsightFundScreenerRequestFundTypeEnum;
957
+ /** @example "ANY" */
958
+ inverse: InsightFundScreenerRequestInverseEnum;
959
+ /** @example "ANY" */
960
+ leverage: InsightFundScreenerRequestLeverageEnum;
952
961
  market_cap?: InsightLessAndMore;
953
- paging?: InsightPaging;
954
- quote_access_type?: string;
962
+ paging: InsightPaging;
955
963
  sectors?: InsightSectorFilter[];
956
964
  sponsors?: string[];
957
965
  }
@@ -967,11 +975,12 @@ export interface InsightFundSectorScreenerRequest {
967
975
  dividend_percent?: InsightLessAndMore;
968
976
  exposure?: InsightLessAndMore;
969
977
  holdings?: string[];
970
- inverse?: string;
971
- leverage?: string;
978
+ /** @example "ANY" */
979
+ inverse: InsightFundSectorScreenerRequestInverseEnum;
980
+ /** @example "ANY" */
981
+ leverage: InsightFundSectorScreenerRequestLeverageEnum;
972
982
  order?: InsightOrdering;
973
- paging?: InsightPaging;
974
- quote_access_type?: string;
983
+ paging: InsightPaging;
975
984
  sector_code?: string;
976
985
  sponsors?: string[];
977
986
  }
@@ -1118,10 +1127,13 @@ export interface InsightGetFixedIncomeHistoricalData {
1118
1127
  yield_to_worst: number;
1119
1128
  }
1120
1129
  export interface InsightGetFixedIncomeHistoricalRequest {
1121
- end?: string;
1122
- frequency?: string;
1123
- instrument_id?: string;
1124
- start?: string;
1130
+ /** @example "2023-01-31" */
1131
+ end: string;
1132
+ /** @example "1min" */
1133
+ frequency: string;
1134
+ instrument_id: string;
1135
+ /** @example "2023-01-01" */
1136
+ start: string;
1125
1137
  }
1126
1138
  export interface InsightGetFixedIncomeHistoricalResponse {
1127
1139
  data: InsightGetFixedIncomeHistoricalData[];
@@ -1179,17 +1191,25 @@ export interface InsightGetFundsForHoldingResponse {
1179
1191
  data: InsightFundForHoldingWithQuote[];
1180
1192
  }
1181
1193
  export interface InsightGetIndustriesPerformanceQuoteFilter {
1182
- /** ALL OR US(NYSE/Nasdaq/Amex) */
1194
+ /**
1195
+ * ALL OR US(NYSE/Nasdaq/Amex)
1196
+ * @example "ALL"
1197
+ */
1183
1198
  exchanges?: string;
1184
1199
  limit?: number;
1185
- /** last_price, price_change, volume */
1200
+ /**
1201
+ * last_price, price_change, volume
1202
+ * @example "last_price"
1203
+ */
1186
1204
  order?: string;
1187
1205
  price?: InsightLessAndMore;
1188
1206
  }
1189
1207
  export interface InsightGetIndustriesPerformanceRequest {
1190
- quote_access_type?: string;
1191
1208
  quote_filters?: InsightGetIndustriesPerformanceQuoteFilter;
1192
- /** price-weighted, market-weighted */
1209
+ /**
1210
+ * price-weighted, market-weighted
1211
+ * @example "price-weighted"
1212
+ */
1193
1213
  ranking_type?: string;
1194
1214
  }
1195
1215
  export interface InsightGetIndustriesPerformanceResponse {
@@ -1202,7 +1222,7 @@ export interface InsightGetMarketDatesRequest {
1202
1222
  /** @example "2023-12-31" */
1203
1223
  end_date: string;
1204
1224
  /** @example ["NYSE","NASDAQ"] */
1205
- markets: string[];
1225
+ markets?: string[];
1206
1226
  paging: InsightPaging;
1207
1227
  /** @example "2023-01-01" */
1208
1228
  start_date: string;
@@ -1222,7 +1242,7 @@ export interface InsightGetMarketHoursResponse {
1222
1242
  export interface InsightGetOwnershipsByIDRequest {
1223
1243
  /** @example "123e4567-e89b-12d3-a456-426614174000" */
1224
1244
  owner_id: string;
1225
- paging?: InsightPaging;
1245
+ paging: InsightPaging;
1226
1246
  }
1227
1247
  export interface InsightGetOwnershipsBySymbolAsDashboardFieldsResponse {
1228
1248
  count: number;
@@ -2441,7 +2461,7 @@ export interface InsightGetTopSymbolsV1Request {
2441
2461
  exchange?: string[];
2442
2462
  market_cap?: InsightLessAndMore;
2443
2463
  order?: InsightOrdering;
2444
- paging?: InsightPaging;
2464
+ paging: InsightPaging;
2445
2465
  price?: InsightLessAndMore;
2446
2466
  volume?: InsightLessAndMore;
2447
2467
  }
@@ -2915,7 +2935,8 @@ export interface InsightMover {
2915
2935
  ticker: string;
2916
2936
  }
2917
2937
  export interface InsightMultipleCryptoLogosRequest {
2918
- symbols?: string[];
2938
+ /** @example ["BTC","ETH"] */
2939
+ symbols: string[];
2919
2940
  }
2920
2941
  export interface InsightMultipleSymbolLogosRequest {
2921
2942
  /** @example ["AAPL","GOOGL","MSFT"] */
@@ -2968,7 +2989,7 @@ export interface InsightNewsFilterRequest {
2968
2989
  /** @example "John Doe" */
2969
2990
  author?: string;
2970
2991
  /** @example ["Finance","Technology"] */
2971
- channels: string[];
2992
+ channels?: string[];
2972
2993
  /** @example "2023-12-31" */
2973
2994
  end_date?: string;
2974
2995
  /** @example true */
@@ -2979,9 +3000,9 @@ export interface InsightNewsFilterRequest {
2979
3000
  /** @example "2023-01-01" */
2980
3001
  start_date?: string;
2981
3002
  /** @example ["AAPL","GOOGL"] */
2982
- symbols: string[];
3003
+ symbols?: string[];
2983
3004
  /** @example ["Earnings","Market"] */
2984
- tags: string[];
3005
+ tags?: string[];
2985
3006
  }
2986
3007
  export interface InsightNewsImage {
2987
3008
  size: string;
@@ -3052,7 +3073,7 @@ export interface InsightNewsfeed {
3052
3073
  }
3053
3074
  export interface InsightNewsfeedRequest {
3054
3075
  /** @example 10 */
3055
- count: number;
3076
+ count?: number;
3056
3077
  /** @example "eng" */
3057
3078
  language: string;
3058
3079
  /** @example 1609459200 */
@@ -3127,7 +3148,7 @@ export interface InsightPagination {
3127
3148
  export interface InsightPaging {
3128
3149
  /**
3129
3150
  * @min 1
3130
- * @max 100
3151
+ * @max 50
3131
3152
  * @example 10
3132
3153
  */
3133
3154
  limit: number;
@@ -3244,7 +3265,7 @@ export interface InsightQuoteHistoryRequest {
3244
3265
  /** Use ONLY one of the next filters: TimeRange OR Period */
3245
3266
  filter: InsightQuoteHistoryRequestFilter;
3246
3267
  order?: InsightOrdering;
3247
- paging?: InsightPaging;
3268
+ paging: InsightPaging;
3248
3269
  }
3249
3270
  export interface InsightQuoteHistoryRequestFilter {
3250
3271
  period?: InsightPeriodFilter;
@@ -3274,7 +3295,6 @@ export interface InsightRecentIPOListRequest {
3274
3295
  load_quotes?: boolean;
3275
3296
  order?: InsightOrdering;
3276
3297
  paging: InsightPaging;
3277
- quote_access_type?: string;
3278
3298
  /** @example "20y" */
3279
3299
  time: string;
3280
3300
  }
@@ -3491,7 +3511,7 @@ export interface InsightStockScreenerResponse {
3491
3511
  count: number;
3492
3512
  details: InsightStockScreenerQuote[];
3493
3513
  }
3494
- export interface InsightStockScreenerV2Request {
3514
+ export interface InsightStockScreenerV1Request {
3495
3515
  average_volume_30d?: InsightLessAndMore;
3496
3516
  dividend_ex_date?: InsightBeforeAndAfter;
3497
3517
  dividend_pay_date?: InsightBeforeAndAfter;
@@ -3500,10 +3520,10 @@ export interface InsightStockScreenerV2Request {
3500
3520
  gap?: InsightLessAndMore;
3501
3521
  industry?: InsightIncludeExclude;
3502
3522
  market_cap?: InsightLessAndMore;
3503
- pagination?: InsightPagination;
3523
+ order?: InsightOrdering;
3524
+ paging: InsightPaging;
3504
3525
  pe_ratio?: InsightLessAndMore;
3505
3526
  price?: InsightLessAndMore;
3506
- sorts?: InsightOrdering[];
3507
3527
  /** @example "ADR" */
3508
3528
  stock_type?: string;
3509
3529
  volume?: InsightLessAndMore;
@@ -3760,12 +3780,35 @@ export interface InsightUnderwriteResponse {
3760
3780
  title: string;
3761
3781
  }
3762
3782
  export interface InsightUpdateCustomIndexRequest {
3783
+ /**
3784
+ * @maxLength 1000
3785
+ * @example "description"
3786
+ */
3763
3787
  description?: string;
3788
+ /**
3789
+ * @maxItems 1000
3790
+ * @example ["equity1","equity2"]
3791
+ */
3764
3792
  equities?: string[];
3793
+ /**
3794
+ * @maxItems 1000
3795
+ * @example ["etf1","etf2"]
3796
+ */
3765
3797
  etfs?: string[];
3766
- id?: string;
3767
- name?: string;
3768
- private_name?: string;
3798
+ /** @example "123e4567-e89b-12d3-a456-426614174000" */
3799
+ id: string;
3800
+ /**
3801
+ * @minLength 1
3802
+ * @maxLength 1000
3803
+ * @example "name"
3804
+ */
3805
+ name: string;
3806
+ /**
3807
+ * @minLength 1
3808
+ * @maxLength 1000
3809
+ * @example "private_name"
3810
+ */
3811
+ private_name: string;
3769
3812
  }
3770
3813
  export interface InsightUpdateFeaturedArticlesRequest {
3771
3814
  /** @example "123e4567-e89b-12d3-a456-426614174000" */
@@ -3775,9 +3818,9 @@ export interface InsightUpdateFeaturedArticlesRequest {
3775
3818
  /** @example 1 */
3776
3819
  source_id: number;
3777
3820
  /** @example ["AAPL","GOOGL"] */
3778
- symbols: string[];
3821
+ symbols?: string[];
3779
3822
  /** @example ["News","Update"] */
3780
- tags: string[];
3823
+ tags?: string[];
3781
3824
  /**
3782
3825
  * @maxLength 1000
3783
3826
  * @example "This is an updated teaser for the news"
@@ -3884,6 +3927,12 @@ export enum InsightCalculateParamsRequestOptionTypeEnum {
3884
3927
  C = "c",
3885
3928
  P = "p"
3886
3929
  }
3930
+ /** @example "EQUITY" */
3931
+ export enum InsightCombainedProfileResponseFundTypeEnum {
3932
+ EQUITY = "EQUITY",
3933
+ FUND = "FUND",
3934
+ INDEX = "INDEX"
3935
+ }
3887
3936
  /** @example "normal" */
3888
3937
  export enum InsightCryptoLogoConvertedRequestConversionEnum {
3889
3938
  Original = "original",
@@ -3895,6 +3944,38 @@ export enum InsightCryptoLogoConvertedRequestConversionEnum {
3895
3944
  SquareStrictOrNormal = "square_strict_or_normal",
3896
3945
  BestMatch = "best_match"
3897
3946
  }
3947
+ /** @example "ETF" */
3948
+ export enum InsightFundScreenerRequestFundTypeEnum {
3949
+ ANY = "ANY",
3950
+ ETF = "ETF",
3951
+ MF = "MF"
3952
+ }
3953
+ /** @example "ANY" */
3954
+ export enum InsightFundScreenerRequestInverseEnum {
3955
+ ANY = "ANY",
3956
+ SHORT = "SHORT",
3957
+ LONG = "LONG"
3958
+ }
3959
+ /** @example "ANY" */
3960
+ export enum InsightFundScreenerRequestLeverageEnum {
3961
+ ANY = "ANY",
3962
+ LEVERAGE_I = "LEVERAGE_I",
3963
+ LEVERAGE_II = "LEVERAGE_II",
3964
+ LEVERAGE_III = "LEVERAGE_III"
3965
+ }
3966
+ /** @example "ANY" */
3967
+ export enum InsightFundSectorScreenerRequestInverseEnum {
3968
+ ANY = "ANY",
3969
+ SHORT = "SHORT",
3970
+ LONG = "LONG"
3971
+ }
3972
+ /** @example "ANY" */
3973
+ export enum InsightFundSectorScreenerRequestLeverageEnum {
3974
+ ANY = "ANY",
3975
+ LEVERAGE_I = "LEVERAGE_I",
3976
+ LEVERAGE_II = "LEVERAGE_II",
3977
+ LEVERAGE_III = "LEVERAGE_III"
3978
+ }
3898
3979
  /** @example "LEVERAGE_I" */
3899
3980
  export enum InsightGetFundsForHoldingRequestLeverageEnum {
3900
3981
  ANY = "ANY",
@@ -3976,6 +4057,19 @@ export enum InsightSymbolLogoConvertedRequestConversionEnum {
3976
4057
  SquareStrictOrNormal = "square_strict_or_normal",
3977
4058
  BestMatch = "best_match"
3978
4059
  }
4060
+ /** EQUITY|ETF|CRYPTO */
4061
+ export enum InsightTopStocksParamsStockTypeEnum {
4062
+ EQUITY = "EQUITY",
4063
+ ETF = "ETF",
4064
+ CRYPTO = "CRYPTO"
4065
+ }
4066
+ /** Desired symbol type - [ANY,FUND,EQUITY,INDEX] */
4067
+ export enum InsightGetCombinedProfileParamsSymbolTypeEnum {
4068
+ ANY = "ANY",
4069
+ FUND = "FUND",
4070
+ EQUITY = "EQUITY",
4071
+ INDEX = "INDEX"
4072
+ }
3979
4073
  /** Level of detail on updated stocks */
3980
4074
  export enum InsightTiprankGeneralStockUpdatesParamsDetailsEnum {
3981
4075
  None = "none",
@@ -4039,8 +4133,8 @@ export class CompanyProfile<HandleError extends boolean = boolean> {
4039
4133
  getCombinedProfile(query: {
4040
4134
  /** Company symbol */
4041
4135
  symbol: string;
4042
- /** Desired symbol type - [ANY,FUND,EQUITY] */
4043
- symbol_type?: string;
4136
+ /** Desired symbol type - [ANY,FUND,EQUITY,INDEX] */
4137
+ symbol_type?: InsightGetCombinedProfileParamsSymbolTypeEnum;
4044
4138
  }, config?: RequestConfig<HandleError>): Promise<ClientResponse<InsightCombainedProfileResponse, HandleError>>;
4045
4139
  /**
4046
4140
  * @description sort input array of symbols by type
@@ -4498,7 +4592,7 @@ export interface InsightStockScreenerRequestV2 {
4498
4592
  gap?: InsightLessAndMoreV2;
4499
4593
  industry?: InsightIncludeExcludeV2;
4500
4594
  market_cap?: InsightLessAndMoreV2;
4501
- pagination?: InsightPaginationV2;
4595
+ pagination: InsightPaginationV2;
4502
4596
  pe_ratio?: InsightLessAndMoreV2;
4503
4597
  price?: InsightLessAndMoreV2;
4504
4598
  sorts?: InsightOrderingV2[];
@@ -5066,7 +5160,7 @@ export class Public<HandleError extends boolean = boolean> {
5066
5160
  * @tags Public
5067
5161
  * @name GetPublicFundamentalsBySymbolData
5068
5162
  * @summary get fundamentals by symbol data
5069
- * @request GET:/public/fundamentals/:symbol
5163
+ * @request GET:/public/fundamentals/{symbol}
5070
5164
  * @secure
5071
5165
  */
5072
5166
  getPublicFundamentalsBySymbolData(symbol: string, query: {
@@ -5092,7 +5186,7 @@ export class Public<HandleError extends boolean = boolean> {
5092
5186
  * @tags Public
5093
5187
  * @name PublicQuoteProfile
5094
5188
  * @summary Public quote profile
5095
- * @request GET:/public/quote-profile/:symbol
5189
+ * @request GET:/public/quote-profile/{symbol}
5096
5190
  * @secure
5097
5191
  */
5098
5192
  publicQuoteProfile(symbol: string, config?: RequestConfig<HandleError>): Promise<ClientResponse<InsightPublicQuoteProfile, HandleError>>;
@@ -5101,7 +5195,7 @@ export class Public<HandleError extends boolean = boolean> {
5101
5195
  * @tags Public
5102
5196
  * @name GetPublicRatiosBySymbolData
5103
5197
  * @summary get ratios by symbol data
5104
- * @request GET:/public/ratios/:symbol
5198
+ * @request GET:/public/ratios/{symbol}
5105
5199
  * @secure
5106
5200
  */
5107
5201
  getPublicRatiosBySymbolData(symbol: string, config?: RequestConfig<HandleError>): Promise<ClientResponse<InsightRatios, HandleError>>;
@@ -5147,7 +5241,7 @@ export class Public<HandleError extends boolean = boolean> {
5147
5241
  */
5148
5242
  topStocks(query: {
5149
5243
  /** EQUITY|ETF|CRYPTO */
5150
- stock_type: string;
5244
+ stock_type: InsightTopStocksParamsStockTypeEnum;
5151
5245
  /** how many records to return. Max value is 50 */
5152
5246
  limit: number;
5153
5247
  /** how many records to skip */
@@ -5234,7 +5328,7 @@ export class StockScreener<HandleError extends boolean = boolean> {
5234
5328
  * @request POST:/stock-screener
5235
5329
  * @secure
5236
5330
  */
5237
- stockScreener(filter: InsightStockScreenerV2Request, headers?: {
5331
+ stockScreener(filter: InsightStockScreenerV1Request, headers?: {
5238
5332
  /** Authorization */
5239
5333
  Authorization?: string;
5240
5334
  }, config?: RequestConfig<HandleError>): Promise<ClientResponse<InsightStockScreenerResponse, HandleError>>;