@orbis-systems/orbis-api-clients 0.4.4 → 0.5.0

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.
@@ -1,7 +1,7 @@
1
1
  import { AxiosError, AxiosInstance, AxiosRequestConfig, HttpStatusCode } from "axios";
2
2
  interface BaseClientConfig<HandleError extends boolean = boolean> {
3
3
  baseUrl: string;
4
- errorHandling?: HandleError;
4
+ handleError?: HandleError;
5
5
  storage?: Storage;
6
6
  defaultHeaders?: Record<string, string>;
7
7
  defaultSecure?: boolean;
@@ -18,6 +18,7 @@ enum ContentType {
18
18
  type RequestConfig<Body = unknown> = AxiosRequestConfig<Body> & {
19
19
  secure?: boolean;
20
20
  contentType?: ContentType;
21
+ handleError?: boolean;
21
22
  };
22
23
  type ResponseStatus = {
23
24
  status: HttpStatusCode | -1;
@@ -52,22 +53,23 @@ declare abstract class BaseClient<HandleError extends boolean = boolean, AuthDat
52
53
  setAuthData(data: AuthData | null): void;
53
54
  getAuthData(): AuthData | null;
54
55
  getConfig(): BaseClientConfig<HandleError>;
55
- abstract prepareAuthRequestConfig(): Pick<RequestConfig<any>, 'headers' | 'data' | 'params'>;
56
+ protected abstract prepareAuthRequestConfig(): Promise<Pick<RequestConfig<any>, 'headers' | 'data' | 'params'>>;
56
57
  }
57
58
  interface JwtClientConfig<HandleError extends boolean = boolean> extends BaseClientConfig<HandleError> {
58
59
  authSchema?: string;
60
+ autoRenewToken?: boolean;
59
61
  }
60
62
  interface JwtAuthData {
61
63
  accessToken: string;
62
- refreshToken: string;
64
+ refreshToken?: string;
63
65
  }
64
- declare class JwtClient<HandleError extends boolean = boolean> extends BaseClient<HandleError, JwtAuthData> {
66
+ declare class JwtClient<HandleError extends boolean = boolean, AuthData extends JwtAuthData = JwtAuthData> extends BaseClient<HandleError, AuthData> {
65
67
  protected readonly config: JwtClientConfig<HandleError>;
66
68
  constructor(config: JwtClientConfig<HandleError>);
67
69
  getConfig(): JwtClientConfig<HandleError>;
68
- prepareAuthRequestConfig(): Pick<RequestConfig<any>, 'headers' | 'data' | 'params'>;
69
- scheduleTokenRenewal(renewTokenCallback: () => Promise<JwtAuthData>): void;
70
- cancelTokenRenewal(): void;
70
+ setRenewTokenCallback(renewTokenCallback: () => Promise<AuthData>): void;
71
+ protected prepareAuthRequestConfig(): Promise<Pick<RequestConfig<any>, 'headers' | 'data' | 'params'>>;
72
+ renewToken(): Promise<void>;
71
73
  }
72
74
  export enum TwoFactorAuthenticationType {
73
75
  SMS = "SMS",
@@ -83,39 +85,128 @@ export enum LoginStage {
83
85
  declare class Authentication<HandleError extends boolean = boolean> {
84
86
  protected readonly apiClient: JwtClient<HandleError>;
85
87
  constructor(apiClient: JwtClient<HandleError>);
88
+ /**
89
+ * @tags Authentication
90
+ * @name Login
91
+ * @summary Login
92
+ * @request POST:/auth/v2/login
93
+ */
86
94
  login(username: string, password: string): Promise<ClientResponse<{
87
95
  sessionId: string;
88
96
  stage: LoginStage;
89
97
  twoFactorType?: TwoFactorAuthenticationType;
90
98
  }, HandleError>>;
99
+ /**
100
+ * @tags Authentication
101
+ * @name SSO
102
+ * @summary SSO
103
+ * @request POST:/auth/v1/sso/platform
104
+ */
91
105
  sso(token: string, platform: string): Promise<ClientResponse<{
92
106
  sessionId: string;
93
107
  }, HandleError>>;
108
+ /**
109
+ * @tags Authentication
110
+ * @name Logout
111
+ * @summary Logout
112
+ * @request GET:/auth/v1/logout
113
+ * @secure
114
+ */
94
115
  logout(): Promise<void>;
116
+ /**
117
+ * @tags Authentication
118
+ * @name UpdatePassword
119
+ * @summary Update Password
120
+ * @request POST:/auth/v1/password/change
121
+ * @secure
122
+ */
95
123
  updatePassword(currentPassword: string, newPassword: string): Promise<ClientResponse<{
96
124
  success: boolean;
97
125
  }, HandleError>>;
126
+ /**
127
+ * @tags Authentication
128
+ * @name RenewPassword
129
+ * @summary Renew Password
130
+ * @request POST:/auth/v1/password/renew
131
+ * @secure
132
+ */
98
133
  renewPassword(token: string, password: string): Promise<ClientResponse<{
99
134
  success: boolean;
100
135
  }, HandleError>>;
136
+ /**
137
+ * @tags Authentication
138
+ * @name Get2faConfiguration
139
+ * @summary Get 2FA Configuration
140
+ * @request GET:/auth/2fa/v1/configuration
141
+ * @secure
142
+ */
101
143
  get2faConfiguration(): Promise<ClientResponse<{
102
144
  payload: string;
103
145
  success: boolean;
104
146
  }, HandleError>>;
147
+ /**
148
+ * @tags Authentication
149
+ * @name GetCurrent2faStage
150
+ * @summary Get Current 2FA Stage
151
+ * @request GET:/auth/2fa/v1/currentStage
152
+ * @secure
153
+ */
105
154
  getCurrent2faStage(): Promise<ClientResponse<unknown, HandleError>>;
155
+ /**
156
+ * @tags Authentication
157
+ * @name Initiate2fa
158
+ * @summary Initiate 2FA
159
+ * @request POST:/auth/2fa/v1/initiate
160
+ * @secure
161
+ */
106
162
  initiate2fa(phone?: string): Promise<ClientResponse<{
107
163
  success: boolean;
108
164
  }, HandleError>>;
165
+ /**
166
+ * @tags Authentication
167
+ * @name Confirm2fa
168
+ * @summary Confirm 2FA
169
+ * @request POST:/auth/2fa/v1/confirm
170
+ * @secure
171
+ */
109
172
  confirm2fa(code: number): Promise<ClientResponse<{
110
173
  success: boolean;
111
174
  }, HandleError>>;
175
+ /**
176
+ * @tags Authentication
177
+ * @name Verify2fa
178
+ * @summary Verify 2FA
179
+ * @request POST:/auth/v2/2fa/verify
180
+ * @secure
181
+ */
112
182
  verify2fa(code: number): Promise<ClientResponse<{
113
183
  stage: LoginStage;
114
184
  }, HandleError>>;
185
+ /**
186
+ * @tags Authentication
187
+ * @name Discontinue2fa
188
+ * @summary Discontinue 2FA
189
+ * @request POST:/auth/2fa/v1/discontinue
190
+ * @secure
191
+ */
115
192
  discontinue2fa(code: number): Promise<ClientResponse<{
116
193
  success: boolean;
117
194
  }, HandleError>>;
195
+ /**
196
+ * @tags Authentication
197
+ * @name Resend2fa
198
+ * @summary Resend 2FA
199
+ * @request GET:/auth/2fa/v1/resend
200
+ * @secure
201
+ */
118
202
  resend2fa(): Promise<ClientResponse<unknown, HandleError>>;
203
+ /**
204
+ * @tags Authentication
205
+ * @name GetAvailable2faTypes
206
+ * @summary Get Available 2FA Types
207
+ * @request GET:/auth/2fa/v1/available-types
208
+ * @secure
209
+ */
119
210
  getAvailable2faTypes(): Promise<ClientResponse<TwoFactorAuthenticationType[], HandleError>>;
120
211
  }
121
212
  declare class BaseApi<HandleError extends boolean = boolean, ApiClient extends BaseClient<HandleError> = BaseClient<HandleError>> {
@@ -130,6 +221,7 @@ interface OrbisErrorData {
130
221
  interface OrbisClientConfig<HandleError extends boolean = boolean> extends JwtClientConfig<HandleError> {
131
222
  onLoginTimeout?: VoidFunction;
132
223
  onUnauthorized?: VoidFunction;
224
+ onErrorTranslate?: (code: string) => string;
133
225
  }
134
226
  type OrbisClientResponse<Data = unknown, HandleError extends boolean = boolean> = OrbisErrorData & ClientResponse<Data, HandleError>;
135
227
  declare class OrbisClient<HandleError extends boolean = boolean> extends JwtClient<HandleError> {
@@ -1733,7 +1825,7 @@ export class OrdersV2Crypto<HandleError extends boolean = boolean> {
1733
1825
  expectedValue?: number;
1734
1826
  /** @example 1.123 */
1735
1827
  limitPx?: number;
1736
- /** @example "MARKET|LIMIT|Notional|NotionalLimit" */
1828
+ /** @example "MARKET|LIMIT|STOP|STOP_LIMIG|Notional|NotionalLimit" */
1737
1829
  orderType?: string;
1738
1830
  /** @example 0.0123 */
1739
1831
  quantity?: number;
@@ -1741,6 +1833,8 @@ export class OrdersV2Crypto<HandleError extends boolean = boolean> {
1741
1833
  /** @example "BTC/USD" */
1742
1834
  symbol?: string;
1743
1835
  };
1836
+ /** @example 1.123 */
1837
+ stopPx?: number;
1744
1838
  /** @example "BUY|SELL" */
1745
1839
  transaction?: string;
1746
1840
  /** @example "DAY|GTC" */
@@ -1768,7 +1862,7 @@ export class OrdersV2Crypto<HandleError extends boolean = boolean> {
1768
1862
  expectedValue?: number;
1769
1863
  /** @example 1.123 */
1770
1864
  limitPx?: number;
1771
- /** @example "MARKET|LIMIT|Notional|NotionalLimit" */
1865
+ /** @example "MARKET|LIMIT|STOP|STOP_LIMIT|Notional|NotionalLimit" */
1772
1866
  orderType?: string;
1773
1867
  /** @example 0.0123 */
1774
1868
  quantity?: number;
@@ -1776,6 +1870,8 @@ export class OrdersV2Crypto<HandleError extends boolean = boolean> {
1776
1870
  /** @example "BTC/USD" */
1777
1871
  symbol?: string;
1778
1872
  };
1873
+ /** @example 1.123 */
1874
+ stopPx?: number;
1779
1875
  /** @example "BUY|SELL" */
1780
1876
  transaction?: string;
1781
1877
  /** @example "DAY|GTC" */
@@ -2370,7 +2466,20 @@ export class OrdersV2<HandleError extends boolean = boolean> {
2370
2466
  * @request POST:/orders/v2/cancel
2371
2467
  * @secure
2372
2468
  */
2373
- cancellation(data: any, config?: RequestConfig<HandleError>): Promise<ClientResponse<any, HandleError>>;
2469
+ cancellation(data: {
2470
+ account?: {
2471
+ /** @example 123 */
2472
+ accountId?: number;
2473
+ /** @example "AC123" */
2474
+ accountNumber?: string;
2475
+ };
2476
+ order?: {
2477
+ /** @example "U" */
2478
+ marketCode?: string;
2479
+ /** @example "CC123456789" */
2480
+ orderRef?: string;
2481
+ };
2482
+ }, config?: RequestConfig<HandleError>): Promise<ClientResponse<any, HandleError>>;
2374
2483
  }
2375
2484
  export class OrdersViolationManagement<HandleError extends boolean = boolean> {
2376
2485
  protected readonly apiClient: JwtClient<HandleError>;
@@ -2499,6 +2608,11 @@ export class Orders<HandleError extends boolean = boolean> {
2499
2608
  * @example "Par"
2500
2609
  */
2501
2610
  bondQuantityType?: any;
2611
+ /**
2612
+ * [optional] Specifies market code for the order
2613
+ * @example "U"
2614
+ */
2615
+ market?: any;
2502
2616
  }, config?: RequestConfig<HandleError>): Promise<ClientResponse<any, HandleError>>;
2503
2617
  /**
2504
2618
  * @tags Orders
@@ -4622,7 +4736,7 @@ export class Transfers<HandleError extends boolean = boolean> {
4622
4736
  account?: any;
4623
4737
  /** @example 100 */
4624
4738
  amount?: any;
4625
- /** @example "FeeReversal|Promotion|WriteOff|Rebate|Courtesy|Advisory|Management|Admin|Exchange|Tech|Platform|Inactivity|MarginInterest|Custodian" */
4739
+ /** @example "FeeReversal|Promotion|WriteOff|Rebate|Courtesy|Advisory|Management|Admin|Exchange|Tech|Platform|Inactivity|MarginInterest|Custodian|CryptoGift" */
4626
4740
  classification?: any;
4627
4741
  /** @example "" */
4628
4742
  contraNote?: any;
@@ -4630,10 +4744,14 @@ export class Transfers<HandleError extends boolean = boolean> {
4630
4744
  currency?: any;
4631
4745
  /** @example "" */
4632
4746
  note?: any;
4747
+ /** @example 0.01 */
4748
+ quantity?: any;
4633
4749
  /** @example "0.0.0.0" */
4634
4750
  remoteAddr?: any;
4635
4751
  /** @example "ultra fast browser 1.1" */
4636
4752
  remoteDevice?: any;
4753
+ /** @example "BTC/USD" */
4754
+ symbol?: any;
4637
4755
  }, config?: RequestConfig<HandleError>): Promise<ClientResponse<any, HandleError>>;
4638
4756
  /**
4639
4757
  * @tags Transfers
@@ -4651,6 +4769,21 @@ export class Transfers<HandleError extends boolean = boolean> {
4651
4769
  * @secure
4652
4770
  */
4653
4771
  listCredits(config?: RequestConfig<HandleError>): Promise<ClientResponse<any, HandleError>>;
4772
+ /**
4773
+ * @tags Transfers
4774
+ * @name CryptoDepositAddress
4775
+ * @summary Crypto Deposit Address
4776
+ * @request GET:/transfer/crypto/deposit/wallet/address
4777
+ * @secure
4778
+ */
4779
+ cryptoDepositAddress(data: {
4780
+ /** @example "AB123456" */
4781
+ account?: any;
4782
+ /** @example "BTC" */
4783
+ currency?: any;
4784
+ /** @example "{optional}" */
4785
+ network?: any;
4786
+ }, config?: RequestConfig<HandleError>): Promise<ClientResponse<any, HandleError>>;
4654
4787
  }
4655
4788
  export class UserAgreements<HandleError extends boolean = boolean> {
4656
4789
  protected readonly apiClient: JwtClient<HandleError>;
@@ -5751,36 +5884,7 @@ export class WatchmenFfiUserAccountManagement<HandleError extends boolean = bool
5751
5884
  * @request POST:/rest/v1/uam/account/create
5752
5885
  * @secure
5753
5886
  */
5754
- createAccount(data: {
5755
- /** @example "desired account number (may be overwritten by the system)" */
5756
- accountNumber?: any;
5757
- /** @example 1 */
5758
- accountType?: any;
5759
- /** @example "{optional} Jack" */
5760
- firstName?: any;
5761
- /** @example "{optional} Jack Smith Sr." */
5762
- fullName?: any;
5763
- /** @example "{optional} Smith" */
5764
- lastName?: any;
5765
- /** @example "primary user holding the account" */
5766
- login?: any;
5767
- /** @example "{optional}" */
5768
- middleName?: any;
5769
- /** @example "{optional} Sr." */
5770
- nameSuffix?: any;
5771
- /** @example "{optional} Omnibus account number. " */
5772
- omnibus?: any;
5773
- /** @example 1 */
5774
- optionLevel?: any;
5775
- /** @example "{optional} desired rep code" */
5776
- repCode?: any;
5777
- /** @example 1.5 */
5778
- shortMarginRequirement?: any;
5779
- /** @example 1 */
5780
- smaMultiplier?: any;
5781
- /** @example "{optional} A - active, S - suspended" */
5782
- status?: any;
5783
- }, config?: RequestConfig<HandleError>): Promise<ClientResponse<any, HandleError>>;
5887
+ createAccount(data: any, config?: RequestConfig<HandleError>): Promise<ClientResponse<any, HandleError>>;
5784
5888
  /**
5785
5889
  * @tags Watchmen Ffi User Account Management
5786
5890
  * @name AccountInformation
@@ -5844,5 +5948,360 @@ export class OrbisApi<HandleError extends boolean = false> extends BaseApi<Handl
5844
5948
  watchmenFfi: WatchmenFfi<HandleError>;
5845
5949
  constructor(config: OrbisClientConfig<HandleError>);
5846
5950
  }
5951
+ export const errorCodeTranslationMap: {
5952
+ ERR_ACAT_ASSETS_UNDEFINED: string;
5953
+ ERR_ACAT_FAILURE: string;
5954
+ ERR_ACAT_IN_PROGRESS: string;
5955
+ ERR_ACCOUNT_NOT_ACTIVE: string;
5956
+ ERR_ACCOUNT_NOT_TRADABLE: string;
5957
+ ERR_ACCOUNT_TRADING_HALTED: string;
5958
+ ERR_ACCOUNT_TYPE_MISSING: string;
5959
+ ERR_ACCOUNT_UNDEFINED: string;
5960
+ ERR_ACH_DEPOSITS_NOT_ALLOWED: string;
5961
+ ERR_ACH_NOT_ALLOWED: string;
5962
+ ERR_ACH_WITHDRAWAL_NOT_ALLOWED: string;
5963
+ ERR_ACQUISITION_OF_CORP_ACT_OPTION: string;
5964
+ ERR_ADJUSTMENT_FAILURE: string;
5965
+ ERR_ALGO_STRATEGY_NOT_SUPPORTED: string;
5966
+ ERR_ALL_DISALLOWED: string;
5967
+ ERR_AMOUNT_MUST_BE_GREATER_THAN_ZERO: string;
5968
+ ERR_AON_NOT_SUPPORTED: string;
5969
+ ERR_ATTEMPTED_TRADE: string;
5970
+ ERR_BALANCE_LOADER_NOT_AVAILABLE: string;
5971
+ ERR_BANK_ACCOUNT_TYPE_NOT_SUPPORTED: string;
5972
+ ERR_BANK_RELATIONSHIP_CREATION_FAILURE: string;
5973
+ ERR_BANK_RELATIONSHIP_DUPLICATE_BENEFICIARY: string;
5974
+ ERR_BANK_RELATIONSHIP_DUPLICATE_NICKNAME: string;
5975
+ ERR_BANK_RELATIONSHIP_LIMIT: string;
5976
+ ERR_BANK_RELATIONSHIP_NOT_APPROVED: string;
5977
+ ERR_BANK_RELATIONSHIP_NOT_FOUND: string;
5978
+ ERR_BANK_RELATIONSHIP_NOT_SUPPORTED: string;
5979
+ ERR_BENEFICIARY_MISSING: string;
5980
+ ERR_BENEFICIARY_PRESENT: string;
5981
+ ERR_BNP_OTC_THRESHOLD: string;
5982
+ ERR_BUY_EXPIRATION_LONGER: string;
5983
+ ERR_BUY_EXPIRATION_SHORTER: string;
5984
+ ERR_BUY_OPEN_SELL_OPEN: string;
5985
+ ERR_BUY_OPTION_PRICE_GREATER_SELL_OPTION_PRICE: string;
5986
+ ERR_BUY_OPTION_PRICE_LESSER_SELL_OPTION_PRICE: string;
5987
+ ERR_BUY_RESTRICTED: string;
5988
+ ERR_BUY_STRIKE_EQUAL_SELL_STRIKE: string;
5989
+ ERR_BUY_STRIKE_LESS_SELL_STRIKE: string;
5990
+ ERR_BUY_STRIKE_MORE_SELL_STRIKE: string;
5991
+ ERR_CANCEL_FAILED: string;
5992
+ ERR_CANNOT_BUY_TO_CLOSE: string;
5993
+ ERR_CANNOT_BUY_TO_OPEN: string;
5994
+ ERR_CANNOT_DO_SPREADS: string;
5995
+ ERR_CANNOT_NAKED_SELL_TO_OPEN: string;
5996
+ ERR_CANNOT_SELL_TO_CLOSE: string;
5997
+ ERR_CANNOT_SELL_TO_OPEN: string;
5998
+ ERR_CFR_275_206_RESTRICTED: string;
5999
+ ERR_CONTRACT_SIZE_UNAVAILABLE: string;
6000
+ ERR_CORE_POST_DISALLOWED: string;
6001
+ ERR_CREATING_NAKED_POSITION: string;
6002
+ ERR_CRYPTO_NOT_ALLOWED: string;
6003
+ ERR_CRYPTO_NOT_ENABLED: string;
6004
+ ERR_CRYPTO_SIGNUP_NOT_SUPPORTED: string;
6005
+ ERR_DIFFERENT_STRIKE_DISTANCE: string;
6006
+ ERR_DIMES_ONLY: string;
6007
+ ERR_DOCUMENT_CALL_NOT_SUPPORTED: string;
6008
+ ERR_DOES_NOT_MEET_MINIMUM: string;
6009
+ ERR_DOMESTIC_NOT_SUPPORTED: string;
6010
+ ERR_DUPLICATE_ORDER_REFERENCE: string;
6011
+ ERR_DUPLICATE_ORDER_SUBMISSION: string;
6012
+ ERR_DUPLICATE_QUANTTY: string;
6013
+ ERR_EIP_BUYS_MIS: string;
6014
+ ERR_ENCRYPTION_FAILED: string;
6015
+ ERR_ESIGNATURE_REQUIRED: string;
6016
+ ERR_ESS: string;
6017
+ ERR_ESTABLISHING_LONG_ON_NONINTERMEDIARY_WTH_SHORT: string;
6018
+ ERR_ESTABLISHING_SHORT_ON_NONINTERMEDIARY_WTH_LONG: string;
6019
+ ERR_ETH_NOT_SUPPORTED: string;
6020
+ ERR_EXCEEDED_NOTIONAL_LIMIT: string;
6021
+ ERR_EXCHANGE_RESTRICTION: string;
6022
+ ERR_FEATURE_NOT_AVAILABLE: string;
6023
+ ERR_FEATURE_NOT_SUPPORTED: string;
6024
+ ERR_FILE_UPLOAD_FAILED: string;
6025
+ ERR_FRACTIONAL_LIMITS_NOT_ALLOWED: string;
6026
+ ERR_FRACTIONAL_NOT_ALLOWED: string;
6027
+ ERR_FRACTIONAL_QUANTITY_NOT_SUPPORTED: string;
6028
+ ERR_GIFT_MUST_HAVE_PURPOSE: string;
6029
+ ERR_GREATER_THAN_MAXIMUM_QUANTITIES: string;
6030
+ ERR_GTC_NOT_ALLOWED: string;
6031
+ ERR_IDENTIFIER_MISSING: string;
6032
+ ERR_IDENTITIES_NOT_AVAILABLE: string;
6033
+ ERR_IDENTITY_ID_MISSING: string;
6034
+ ERR_INSERT_G_EVENT_BUY_LEG: string;
6035
+ ERR_INSERT_G_EVENT_SELL_LEG: string;
6036
+ ERR_INSERT_REPLACE_BUY_LEG: string;
6037
+ ERR_INSERT_REPLACE_HIST: string;
6038
+ ERR_INSERT_REPLACE_SELL_LEG: string;
6039
+ ERR_INSERT_REPLACE_SUCCESS_HIST: string;
6040
+ ERR_INSERT_V_EVENT_BUY_LEG: string;
6041
+ ERR_INSERT_V_EVENT_SELL_LEG: string;
6042
+ ERR_INSTANT_DEPOSIT_DENIED: string;
6043
+ ERR_INSUFFICIEND_LONG_TO_COVER: string;
6044
+ ERR_INSUFFICIENT_ARGUMENTS: string;
6045
+ ERR_INSUFFICIENT_CASH: string;
6046
+ ERR_INSUFFICIENT_EQUITY: string;
6047
+ ERR_INSUFFICIENT_FUNDS: string;
6048
+ ERR_INSUFFICIENT_SHARES: string;
6049
+ ERR_INSUFFICIENT_SHORT_SHARES: string;
6050
+ ERR_INVALID_2FA: string;
6051
+ ERR_INVALID_ABA_NUMBER: string;
6052
+ ERR_INVALID_ACCOUNT: string;
6053
+ ERR_INVALID_BANK_ACCOUNT: string;
6054
+ ERR_INVALID_BANK_BRANCH: string;
6055
+ ERR_INVALID_BANK_COUNTRY: string;
6056
+ ERR_INVALID_BLOCK_SIZE: string;
6057
+ ERR_INVALID_CITY: string;
6058
+ ERR_INVALID_COUNTRY: string;
6059
+ ERR_INVALID_DISBURSEMENT_TYPE: string;
6060
+ ERR_INVALID_DOCUMENT_ID: string;
6061
+ ERR_INVALID_EXPECTED_VALUE: string;
6062
+ ERR_INVALID_IDENTIFIER_TYPE: string;
6063
+ ERR_INVALID_PEG_TYPE: string;
6064
+ ERR_INVALID_PEG: string;
6065
+ ERR_INVALID_RELATIONSHIP: string;
6066
+ ERR_INVALID_STREET_MATCH: string;
6067
+ ERR_INVALID_STREET: string;
6068
+ ERR_INVALID_TRADING_PASSWORD: string;
6069
+ ERR_INVALID_USER: string;
6070
+ ERR_INVENTORY_NOT_ALLOWED: string;
6071
+ ERR_INVENTORY_NOT_DEFINED: string;
6072
+ ERR_JOURNAL_REQUEST_FAILED: string;
6073
+ ERR_LARGE_ORDER_REJECTION: string;
6074
+ ERR_LEGAL_NOT_SUPPORTED: string;
6075
+ ERR_LESS_OR_NO_BUY_TO_OPEN_POSN: string;
6076
+ ERR_LESS_OR_NO_SELL_TO_OPEN_POSN: string;
6077
+ ERR_LESS_THAN_MINIMUM_QUANTITIES: string;
6078
+ ERR_LIMIT_GREATER_STOP: string;
6079
+ ERR_LIMIT_LESS_STOP: string;
6080
+ ERR_LIMIT_MARKET_ONLY: string;
6081
+ ERR_LIMIT_ONLY: string;
6082
+ ERR_LINK_IN_INVALID_STATUS: string;
6083
+ ERR_LIQUIDATION_ONLY: string;
6084
+ ERR_LIQUIDATION_WITH_EXISTING_OPEN_SELL_ORDER: string;
6085
+ ERR_MARGIN_ACCOUNT_ONLY: string;
6086
+ ERR_MARKET_CLOSED: string;
6087
+ ERR_MARKET_ORDER_PRIOR_MARKET_OPEN_RESTRICTED: string;
6088
+ ERR_MARKUP_TOO_BIG: string;
6089
+ ERR_MAX_FLOOR_GREATER_THAN_QUANTITY: string;
6090
+ ERR_MAX_FLOOR_NOT_ODD_LOT: string;
6091
+ ERR_MICRO_CAP_THRESHOLD: string;
6092
+ ERR_MINIMUM_ORDER_LIMIT: string;
6093
+ ERR_MISSING_ADDRESS: string;
6094
+ ERR_MISSING_BANK_ACCOUNT: string;
6095
+ ERR_MISSING_BANK_BRANCH: string;
6096
+ ERR_MISSING_BANK_CITY: string;
6097
+ ERR_MISSING_BANK_CODE: string;
6098
+ ERR_MISSING_BANK_COUNTRY: string;
6099
+ ERR_MISSING_BANK_NAME: string;
6100
+ ERR_MISSING_BANK_POSTAL_CODE: string;
6101
+ ERR_MISSING_BANK_STATE_PROVINCE: string;
6102
+ ERR_MISSING_CAPITAL_GAINS_INDICATOR: string;
6103
+ ERR_MISSING_CONTRA_ACCOUNT_TITLE: string;
6104
+ ERR_MISSING_CONTRA_ACCOUNT_TYPE: string;
6105
+ ERR_MISSING_CONTRA_ACCOUNT: string;
6106
+ ERR_MISSING_CONTRIBUTION_TYPE: string;
6107
+ ERR_MISSING_CONTRIBUTION_YEAR: string;
6108
+ ERR_MISSING_CONTRIBUTION: string;
6109
+ ERR_MISSING_CONTROL_RESOLUTION: string;
6110
+ ERR_MISSING_CONTROL_SOURCE: string;
6111
+ ERR_MISSING_CONTROL_TRANSFER_ID: string;
6112
+ ERR_MISSING_DISTRIBUTION_INSTITUTION: string;
6113
+ ERR_MISSING_DISTRIBUTION_REASON: string;
6114
+ ERR_MISSING_DISTRIBUTION: string;
6115
+ ERR_MISSING_DIVIDENDS_INDICATOR: string;
6116
+ ERR_MISSING_ID: string;
6117
+ ERR_MISSING_LIMIT: string;
6118
+ ERR_MISSING_LOA: string;
6119
+ ERR_MISSING_NICKNAME: string;
6120
+ ERR_MISSING_ORDER_TYPE: string;
6121
+ ERR_MISSING_ORDERS: string;
6122
+ ERR_MISSING_PAYMENT_METHOD: string;
6123
+ ERR_MISSING_PRIMARY_TAX_ID: string;
6124
+ ERR_MISSING_QUANTITY: string;
6125
+ ERR_MISSING_REMOTE_DEVICE: string;
6126
+ ERR_MISSING_REMOTE_IP: string;
6127
+ ERR_MISSING_RULE_5030_5131: string;
6128
+ ERR_MISSING_STOP: string;
6129
+ ERR_MISSING_TOKEN: string;
6130
+ ERR_MISSING_TRANSFER_ID: string;
6131
+ ERR_MISSING_VALUE_TYPE: string;
6132
+ ERR_MISSING_VALUE: string;
6133
+ ERR_MODEL_HAS_ACCOUNTS: string;
6134
+ ERR_MODEL_NOT_DEFINED: string;
6135
+ ERR_MULTIPLE_ACCOUNT_TYPES: string;
6136
+ ERR_MULTIPLE_ACCOUNTS: string;
6137
+ ERR_MULTIPLE_CURRENCIES: string;
6138
+ ERR_MULTIPLE_MODELS: string;
6139
+ ERR_MULTIPLE_SECURITIES: string;
6140
+ ERR_MULTIPLE_SIDES: string;
6141
+ ERR_MULTIPLE_TRANSACTIONS: string;
6142
+ ERR_MUST_BE_CALLS: string;
6143
+ ERR_MUST_BE_CREDIT: string;
6144
+ ERR_MUST_BE_DEBIT: string;
6145
+ ERR_MUST_BE_EVEN: string;
6146
+ ERR_MUST_BE_OPTION: string;
6147
+ ERR_MUST_BE_PUTS: string;
6148
+ ERR_MUST_ENTER_CREDIT_PRICE: string;
6149
+ ERR_MUST_ENTER_DEBIT_PRICE: string;
6150
+ ERR_MUST_MARGIN_ACCOUNT: string;
6151
+ ERR_MUTUAL_FUND_NO_NEW_INVESTORS_ALLOWED: string;
6152
+ ERR_MUTUAL_FUND_NOT_ALLOWED_TO_CANCEL: string;
6153
+ ERR_MUTUAL_FUND_NOT_ALLOWED: string;
6154
+ ERR_MUTUAL_FUND_SUBSTITUTE_LIQUIDATION_NOT_SUPPORTED: string;
6155
+ ERR_MUTUAL_FUND_SUBSTITUTE_VALUE: string;
6156
+ ERR_MUTUAL_FUND_TIME_EXCEEDS_ORDER_CUTOFF: string;
6157
+ ERR_MUTUAL_FUND_TRADING_RESTRICTED: string;
6158
+ ERR_NAKED_CALLS_NOT_PERMITTED: string;
6159
+ ERR_NAKED_PUTS_NOT_PERMITTED: string;
6160
+ ERR_NAME_MISMATCH: string;
6161
+ ERR_NAMES_NOT_AVAILABLE: string;
6162
+ ERR_NEGATIVE_MARKUP: string;
6163
+ ERR_NEW_ORDERS_ARE_RESTRICTED: string;
6164
+ ERR_NICKELS_ONLY: string;
6165
+ ERR_NO_BANK_ACCOUNT_FOUND: string;
6166
+ ERR_NO_BANK_ACCOUNT_WITH_SAME_NAME: string;
6167
+ ERR_NO_CHANGES: string;
6168
+ ERR_NO_GTC_ON_INET: string;
6169
+ ERR_NO_GTD_PERMITTED: string;
6170
+ ERR_NO_ILM_ACCOUNT: string;
6171
+ ERR_NO_OTCBB_ON_PREPOST: string;
6172
+ ERR_NO_OTCBB: string;
6173
+ ERR_NO_QUOTE: string;
6174
+ ERR_NO_SHARES_AVAILABLE: string;
6175
+ ERR_NO_VALUE: string;
6176
+ ERR_NON_CORE_DISALLOWED: string;
6177
+ ERR_NOT_ACH: string;
6178
+ ERR_NOT_MICRODEPOSIT: string;
6179
+ ERR_NOT_SHORTABLE: string;
6180
+ ERR_NOTIONAL_EXPECTED: string;
6181
+ ERR_OCO_INVALID_ORDER_TYPE: string;
6182
+ ERR_OCO_LIMIT_BELOW_STOP: string;
6183
+ ERR_OCO_MUST_BE_LIMIT: string;
6184
+ ERR_OCO_MUST_BE_STOP: string;
6185
+ ERR_OCO_NEED_DIFFERENT_SECURITY: string;
6186
+ ERR_OCO_NEED_SAME_SECURITY: string;
6187
+ ERR_OCO_NEED_SAME_SIZE: string;
6188
+ ERR_OCO_STOP_BELOW_LIMIT: string;
6189
+ ERR_OCO_STOP_TOO_CLOSE: string;
6190
+ ERR_OCO_VALUE_MUST_BE_EQUAL: string;
6191
+ ERR_OCT_CLOSING_PRICE_THRESHOLD: string;
6192
+ ERR_ODD_LOT_ONLY: string;
6193
+ ERR_OPEN_ORDER_LIMIT: string;
6194
+ ERR_OPEN_TRANSFERS: string;
6195
+ ERR_OPERATION_NOT_SUPPORTED: string;
6196
+ ERR_OPTION_EXPIRED: string;
6197
+ ERR_OPTION_TRADING_RESTRICTED: string;
6198
+ ERR_OPTIONS_NOT_PERMITTED: string;
6199
+ ERR_ORDER_EXCEEDS_SHARE_LIMIT: string;
6200
+ ERR_ORDER_EXCEEDS_THRESHOLD: string;
6201
+ ERR_ORDER_EXCEEDS_VALUE_LIMIT: string;
6202
+ ERR_ORDER_MISMATCH: string;
6203
+ ERR_ORDER_NOT_FOUND_BUY_LEG: string;
6204
+ ERR_ORDER_NOT_FOUND_SELL_LEG: string;
6205
+ ERR_ORDER_NOT_FOUND: string;
6206
+ ERR_ORDER_TIME_RESTRICTED: string;
6207
+ ERR_ORDER_TOO_LARGE: string;
6208
+ ERR_ORDER_TYPE_NOT_PERMITTED: string;
6209
+ ERR_ORDER_TYPE_NOT_TRADABLE: string;
6210
+ ERR_ORDER_VALUE_TOO_SMALL: string;
6211
+ ERR_OTC_MARKET_CAP_THRESHOLD: string;
6212
+ ERR_OTC_PRICE_THRESHOLD: string;
6213
+ ERR_OUTSIDE_MARKET_HOURS: string;
6214
+ ERR_PASSPHRASE_NOT_SUPPORTED: string;
6215
+ ERR_PASSWORD_COMMONLY_USED: string;
6216
+ ERR_PASSWORD_CONTAINS_SEQUENCE: string;
6217
+ ERR_PASSWORD_CONTAINS_SUBSEQUENCE: string;
6218
+ ERR_PASSWORD_CONTAINS_USERNAME: string;
6219
+ ERR_PASSWORD_DIGITS_ONLY: string;
6220
+ ERR_PASSWORD_INSUFFICIENT_DIGITS: string;
6221
+ ERR_PASSWORD_INVALID: string;
6222
+ ERR_PASSWORD_NEEDS_MULTICASE: string;
6223
+ ERR_PASSWORD_RECENTLY_USED: string;
6224
+ ERR_PASSWORD_TOO_SHORT: string;
6225
+ ERR_PAST_DELIVERY_DATE: string;
6226
+ ERR_PAYMENT_METHODS_NOT_AVAILABLE: string;
6227
+ ERR_PAYMENT_METHODS_NOT_SUPPORTED: string;
6228
+ ERR_PLAID_ERROR: string;
6229
+ ERR_POLICY_UPDATE_NOT_SUPPORTED: string;
6230
+ ERR_POSITION_LOADER_NOT_AVAILABLE: string;
6231
+ ERR_POSITION_NOT_FOUND: string;
6232
+ ERR_PRE_CORE_DISALLOWED: string;
6233
+ ERR_PRE_IPO: string;
6234
+ ERR_PRICE_MOVEMENT_THRESHOLD: string;
6235
+ ERR_PRICE_TOO_SMALL: string;
6236
+ ERR_PURPOSE_NOT_SUPPORTED: string;
6237
+ ERR_QUANTITIES_INVALID_INCREMENT: string;
6238
+ ERR_QUANTITIES_NOT_EQUAL: string;
6239
+ ERR_QUANTITY_NOT_SUPPORTED: string;
6240
+ ERR_QUOTE_COUNTRY_NOT_SUPPORTED: string;
6241
+ ERR_RECIPIENT_BANK_MISSING: string;
6242
+ ERR_RECIPIENT_BANK_PRESENT: string;
6243
+ ERR_RECONFIRM_NOT_REQUESTED: string;
6244
+ ERR_RELATIONSHIP_NAME_MISMATCH: string;
6245
+ ERR_REPLACE_ACTIVE_ZERO: string;
6246
+ ERR_REPLACE_IN_PROGRESS: string;
6247
+ ERR_REQUEST_IN_PROGRESS: string;
6248
+ "ERR_RESTRICTED_ITEM: not-whitelisted": string;
6249
+ ERR_RESTRICTED_ITEM: string;
6250
+ ERR_ROUTES_NOT_AVAILABLE: string;
6251
+ ERR_SAME_EXPIRATION_MONTH: string;
6252
+ ERR_SAME_UNDERLYING: string;
6253
+ ERR_SANDP_MINIMUM_THRESHOLD_BREACH: string;
6254
+ ERR_SELL_CLOSE_BUY_CLOSE: string;
6255
+ ERR_SELL_RESTRICTED: string;
6256
+ ERR_SHARES_LESS_EXECUTED: string;
6257
+ ERR_SHORT_SPREADS_NOT_PERMITTED: string;
6258
+ ERR_SHORTABLE_LIMIT_EXCEEDED: string;
6259
+ ERR_START_TIME_BEFORE_END_TIME: string;
6260
+ ERR_STATE_RESTRICTED: string;
6261
+ ERR_STATUS_NOT_IN_W_E_B: string;
6262
+ ERR_STOP_AON: string;
6263
+ ERR_STOP_GREATER_LAST: string;
6264
+ ERR_STOP_LESS_LAST: string;
6265
+ ERR_SYMBOL_NOT_TRADABLE: string;
6266
+ ERR_THIRD_PARTY_XFER_RESTRICTED: string;
6267
+ ERR_TOO_EARLY_TO_ENTER: string;
6268
+ ERR_TOO_LATE_TO_ENTER: string;
6269
+ ERR_TOO_MANY_DECIMAL_PLACES: string;
6270
+ ERR_TOO_MANY_DEPOSITS: string;
6271
+ ERR_TOO_MANY_IDENTICAL_REQUESTS: string;
6272
+ ERR_TOO_MANY_REQUESTS: string;
6273
+ ERR_TOO_MANY_SHARES: string;
6274
+ ERR_TOO_MANY_WITHDRAWALS: string;
6275
+ ERR_TOO_SMALL_FOR_AON: string;
6276
+ ERR_TRADING_HALTED: string;
6277
+ ERR_TRADING_LIMIT: string;
6278
+ ERR_TRADING_RESTRICTED: string;
6279
+ ERR_TRANSACTION_NOT_SUPPORTED: string;
6280
+ ERR_TRANSFER_METHOD_NOT_SUPPORTED: string;
6281
+ ERR_TRANSFER_NOT_FOUND: string;
6282
+ ERR_TRANSFER_REJECTED: string;
6283
+ ERR_TRIGGER_FAILURE: string;
6284
+ ERR_UNALLOCATED_ORDERS: string;
6285
+ ERR_UNEVEN_BREADTH: string;
6286
+ ERR_UNEXPECTED_ERROR: string;
6287
+ ERR_UNKNOWN_ERROR: string;
6288
+ ERR_UNKNOWN_KEY_FOR_USER: string;
6289
+ ERR_UNKNOWN_ORDER_TYPE: string;
6290
+ ERR_UNKNOWN_PARAMETER_FOR_USER: string;
6291
+ ERR_UNKNOWN_STRATEGY: string;
6292
+ ERR_UNREALISTIC_CREDIT_DEBIT: string;
6293
+ ERR_UNREALISTIC_CREDIT: string;
6294
+ ERR_UNREALISTIC_PERCENTAGE: string;
6295
+ ERR_UNREALISTIC_TOTAL: string;
6296
+ ERR_UNREALISTIC_VALUE: string;
6297
+ ERR_UPDATE_REPLACE_BUY_LEG: string;
6298
+ ERR_UPDATE_REPLACE_SELL_LEG: string;
6299
+ ERR_UPDATE_STATUS_G: string;
6300
+ ERR_VALIDATOR_NOT_AVAILABLE: string;
6301
+ ERR_VOLUME_CONSTRAINT_NEEDED: string;
6302
+ ERR_VOLUME_CONSTRAINT_NOT_NEEDED: string;
6303
+ ERR_WASH_TRADE: string;
6304
+ ERR_WIRE_WITHDRAWAL_NOT_ALLOWED: string;
6305
+ };
5847
6306
 
5848
6307
  //# sourceMappingURL=index.d.ts.map