snaptrade-typescript-sdk 13.1.7 → 13.1.9
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.
- package/README.md +75 -1
- package/dist/browser.umd.js +1 -1
- package/dist/index.cjs +126 -5
- package/dist/index.d.cts +1239 -696
- package/dist/index.d.mts +1239 -696
- package/dist/index.d.ts +1239 -696
- package/dist/index.mjs +126 -5
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -2127,44 +2127,34 @@ interface AccountInformationGetUserHoldings409Response {
|
|
|
2127
2127
|
'code'?: string;
|
|
2128
2128
|
}
|
|
2129
2129
|
//#endregion
|
|
2130
|
-
//#region models/account-order-record-
|
|
2130
|
+
//#region models/account-order-record-v2-order-role-nullable.d.ts
|
|
2131
2131
|
/**
|
|
2132
|
-
*
|
|
2132
|
+
* The role of an order within a complex order group (OCO, OTO, OTOCO).
|
|
2133
2133
|
* @export
|
|
2134
|
-
* @
|
|
2134
|
+
* @enum {string}
|
|
2135
2135
|
*/
|
|
2136
|
-
|
|
2136
|
+
type AccountOrderRecordV2OrderRoleNullable = 'TRIGGER' | 'CONDITIONAL' | 'PEER';
|
|
2137
|
+
//#endregion
|
|
2138
|
+
//#region models/account-order-group-nullable.d.ts
|
|
2139
|
+
/**
|
|
2140
|
+
* Links the orders that make up a complex order (OCO, OTO, OTOCO).
|
|
2141
|
+
* @export
|
|
2142
|
+
* @interface AccountOrderGroupNullable
|
|
2143
|
+
*/
|
|
2144
|
+
interface AccountOrderGroupNullable {
|
|
2137
2145
|
[key: string]: unknown;
|
|
2138
2146
|
/**
|
|
2139
|
-
*
|
|
2140
|
-
* @type {string}
|
|
2141
|
-
* @memberof AccountOrderRecordLegInstrument
|
|
2142
|
-
*/
|
|
2143
|
-
'symbol'?: string;
|
|
2144
|
-
/**
|
|
2145
|
-
* Human-readable description of the security.
|
|
2146
|
-
* @type {string}
|
|
2147
|
-
* @memberof AccountOrderRecordLegInstrument
|
|
2148
|
-
*/
|
|
2149
|
-
'description'?: string;
|
|
2150
|
-
/**
|
|
2151
|
-
* Type of instrument for the leg. - EQUITY - OPTION - CRYPTO
|
|
2152
|
-
* @type {string}
|
|
2153
|
-
* @memberof AccountOrderRecordLegInstrument
|
|
2154
|
-
*/
|
|
2155
|
-
'asset_type'?: string;
|
|
2156
|
-
/**
|
|
2157
|
-
* Market Identifier Code (MIC) for the exchange on which the instrument trades. Omitted for instruments with no listing exchange, such as index options (VIX, SPX).
|
|
2147
|
+
* Brokerage-assigned identifier shared by every order in the group.
|
|
2158
2148
|
* @type {string}
|
|
2159
|
-
* @memberof
|
|
2149
|
+
* @memberof AccountOrderGroupNullable
|
|
2160
2150
|
*/
|
|
2161
|
-
'
|
|
2151
|
+
'id': string;
|
|
2162
2152
|
/**
|
|
2163
|
-
*
|
|
2164
|
-
* @type {
|
|
2165
|
-
* @memberof
|
|
2153
|
+
*
|
|
2154
|
+
* @type {AccountOrderRecordV2OrderRoleNullable}
|
|
2155
|
+
* @memberof AccountOrderGroupNullable
|
|
2166
2156
|
*/
|
|
2167
|
-
'
|
|
2157
|
+
'role'?: AccountOrderRecordV2OrderRoleNullable | null;
|
|
2168
2158
|
}
|
|
2169
2159
|
//#endregion
|
|
2170
2160
|
//#region models/account-order-record-status-v2-nullable.d.ts
|
|
@@ -2175,768 +2165,407 @@ interface AccountOrderRecordLegInstrument {
|
|
|
2175
2165
|
*/
|
|
2176
2166
|
type AccountOrderRecordStatusV2Nullable = 'PENDING' | 'REJECTED' | 'CANCELED' | 'CANCEL_PENDING' | 'PARTIAL_CANCELED' | 'EXECUTED' | 'PARTIALLY_EXECUTED' | 'REPLACED' | 'REPLACE_PENDING' | 'EXPIRED';
|
|
2177
2167
|
//#endregion
|
|
2178
|
-
//#region models/
|
|
2168
|
+
//#region models/adr-instrument.d.ts
|
|
2179
2169
|
/**
|
|
2180
|
-
*
|
|
2170
|
+
* Security instrument metadata for ADR positions.
|
|
2181
2171
|
* @export
|
|
2182
|
-
* @interface
|
|
2172
|
+
* @interface AdrInstrument
|
|
2183
2173
|
*/
|
|
2184
|
-
interface
|
|
2174
|
+
interface AdrInstrument {
|
|
2185
2175
|
[key: string]: unknown;
|
|
2186
2176
|
/**
|
|
2187
|
-
*
|
|
2177
|
+
* Type of security instrument.
|
|
2188
2178
|
* @type {string}
|
|
2189
|
-
* @memberof
|
|
2179
|
+
* @memberof AdrInstrument
|
|
2190
2180
|
*/
|
|
2191
|
-
'
|
|
2181
|
+
'kind': AdrInstrumentKindEnum;
|
|
2192
2182
|
/**
|
|
2193
|
-
*
|
|
2194
|
-
* @type {
|
|
2195
|
-
* @memberof
|
|
2183
|
+
* Unique identifier for the instrument.
|
|
2184
|
+
* @type {string}
|
|
2185
|
+
* @memberof AdrInstrument
|
|
2196
2186
|
*/
|
|
2197
|
-
'
|
|
2187
|
+
'id': string;
|
|
2198
2188
|
/**
|
|
2199
|
-
* The
|
|
2189
|
+
* The formatted trading symbol for the security.
|
|
2200
2190
|
* @type {string}
|
|
2201
|
-
* @memberof
|
|
2191
|
+
* @memberof AdrInstrument
|
|
2202
2192
|
*/
|
|
2203
|
-
'
|
|
2193
|
+
'symbol': string;
|
|
2204
2194
|
/**
|
|
2205
|
-
*
|
|
2195
|
+
* The raw symbol without any exchange suffix.
|
|
2206
2196
|
* @type {string}
|
|
2207
|
-
* @memberof
|
|
2197
|
+
* @memberof AdrInstrument
|
|
2208
2198
|
*/
|
|
2209
|
-
'
|
|
2199
|
+
'raw_symbol': string;
|
|
2210
2200
|
/**
|
|
2211
|
-
*
|
|
2201
|
+
* Human-readable description of the security.
|
|
2212
2202
|
* @type {string}
|
|
2213
|
-
* @memberof
|
|
2203
|
+
* @memberof AdrInstrument
|
|
2214
2204
|
*/
|
|
2215
|
-
'
|
|
2205
|
+
'description'?: string | null;
|
|
2216
2206
|
/**
|
|
2217
|
-
*
|
|
2207
|
+
* ISO-4217 currency code for the security listing.
|
|
2218
2208
|
* @type {string}
|
|
2219
|
-
* @memberof
|
|
2209
|
+
* @memberof AdrInstrument
|
|
2220
2210
|
*/
|
|
2221
|
-
'
|
|
2211
|
+
'currency'?: string | null;
|
|
2222
2212
|
/**
|
|
2223
|
-
*
|
|
2213
|
+
* Exchange MIC code or exchange code for the security.
|
|
2224
2214
|
* @type {string}
|
|
2225
|
-
* @memberof
|
|
2215
|
+
* @memberof AdrInstrument
|
|
2226
2216
|
*/
|
|
2227
|
-
'
|
|
2217
|
+
'exchange'?: string | null;
|
|
2228
2218
|
/**
|
|
2229
2219
|
*
|
|
2230
|
-
* @type {
|
|
2231
|
-
* @memberof
|
|
2220
|
+
* @type {FigiInstrumentNullable}
|
|
2221
|
+
* @memberof AdrInstrument
|
|
2232
2222
|
*/
|
|
2233
|
-
'
|
|
2223
|
+
'figi_instrument'?: FigiInstrumentNullable | null;
|
|
2234
2224
|
}
|
|
2225
|
+
type AdrInstrumentKindEnum = 'adr';
|
|
2235
2226
|
//#endregion
|
|
2236
|
-
//#region models/
|
|
2227
|
+
//#region models/cef-instrument.d.ts
|
|
2237
2228
|
/**
|
|
2238
|
-
*
|
|
2229
|
+
* Security instrument metadata for closed-end fund positions.
|
|
2239
2230
|
* @export
|
|
2240
|
-
* @interface
|
|
2231
|
+
* @interface CefInstrument
|
|
2241
2232
|
*/
|
|
2242
|
-
interface
|
|
2233
|
+
interface CefInstrument {
|
|
2243
2234
|
[key: string]: unknown;
|
|
2244
2235
|
/**
|
|
2245
|
-
*
|
|
2236
|
+
* Type of security instrument.
|
|
2246
2237
|
* @type {string}
|
|
2247
|
-
* @memberof
|
|
2238
|
+
* @memberof CefInstrument
|
|
2248
2239
|
*/
|
|
2249
|
-
'
|
|
2240
|
+
'kind': CefInstrumentKindEnum;
|
|
2250
2241
|
/**
|
|
2251
|
-
*
|
|
2242
|
+
* Unique identifier for the instrument.
|
|
2252
2243
|
* @type {string}
|
|
2253
|
-
* @memberof
|
|
2244
|
+
* @memberof CefInstrument
|
|
2254
2245
|
*/
|
|
2255
|
-
'
|
|
2246
|
+
'id': string;
|
|
2256
2247
|
/**
|
|
2257
|
-
* The
|
|
2248
|
+
* The formatted trading symbol for the security.
|
|
2258
2249
|
* @type {string}
|
|
2259
|
-
* @memberof
|
|
2250
|
+
* @memberof CefInstrument
|
|
2260
2251
|
*/
|
|
2261
|
-
'
|
|
2252
|
+
'symbol': string;
|
|
2262
2253
|
/**
|
|
2263
|
-
*
|
|
2264
|
-
* @type {
|
|
2265
|
-
* @memberof
|
|
2254
|
+
* The raw symbol without any exchange suffix.
|
|
2255
|
+
* @type {string}
|
|
2256
|
+
* @memberof CefInstrument
|
|
2266
2257
|
*/
|
|
2267
|
-
'
|
|
2258
|
+
'raw_symbol': string;
|
|
2268
2259
|
/**
|
|
2269
|
-
*
|
|
2270
|
-
* @type {
|
|
2271
|
-
* @memberof
|
|
2260
|
+
* Human-readable description of the security.
|
|
2261
|
+
* @type {string}
|
|
2262
|
+
* @memberof CefInstrument
|
|
2272
2263
|
*/
|
|
2273
|
-
'
|
|
2264
|
+
'description'?: string | null;
|
|
2274
2265
|
/**
|
|
2275
|
-
*
|
|
2276
|
-
* @type {
|
|
2277
|
-
* @memberof
|
|
2266
|
+
* ISO-4217 currency code for the security listing.
|
|
2267
|
+
* @type {string}
|
|
2268
|
+
* @memberof CefInstrument
|
|
2278
2269
|
*/
|
|
2279
|
-
'
|
|
2270
|
+
'currency'?: string | null;
|
|
2280
2271
|
/**
|
|
2281
|
-
*
|
|
2282
|
-
* @type {
|
|
2283
|
-
* @memberof
|
|
2272
|
+
* Exchange MIC code or exchange code for the security.
|
|
2273
|
+
* @type {string}
|
|
2274
|
+
* @memberof CefInstrument
|
|
2284
2275
|
*/
|
|
2285
|
-
'
|
|
2276
|
+
'exchange'?: string | null;
|
|
2286
2277
|
/**
|
|
2287
2278
|
*
|
|
2288
|
-
* @type {
|
|
2289
|
-
* @memberof
|
|
2290
|
-
*/
|
|
2291
|
-
'quote_currency'?: CurrencyNullable | null;
|
|
2292
|
-
/**
|
|
2293
|
-
* The action describes the intent or side of a trade. This is usually `BUY` or `SELL` but can include other potential values like the following depending on the specific brokerage. - BUY - SELL - BUY_COVER - SELL_SHORT - BUY_OPEN - BUY_CLOSE - SELL_OPEN - SELL_CLOSE
|
|
2294
|
-
* @type {string}
|
|
2295
|
-
* @memberof AccountOrderRecordNullable
|
|
2279
|
+
* @type {FigiInstrumentNullable}
|
|
2280
|
+
* @memberof CefInstrument
|
|
2296
2281
|
*/
|
|
2297
|
-
'
|
|
2282
|
+
'figi_instrument'?: FigiInstrumentNullable | null;
|
|
2283
|
+
}
|
|
2284
|
+
type CefInstrumentKindEnum = 'cef';
|
|
2285
|
+
//#endregion
|
|
2286
|
+
//#region models/crypto-instrument.d.ts
|
|
2287
|
+
/**
|
|
2288
|
+
* Security instrument metadata for crypto positions.
|
|
2289
|
+
* @export
|
|
2290
|
+
* @interface CryptoInstrument
|
|
2291
|
+
*/
|
|
2292
|
+
interface CryptoInstrument {
|
|
2293
|
+
[key: string]: unknown;
|
|
2298
2294
|
/**
|
|
2299
|
-
*
|
|
2295
|
+
* Type of security instrument.
|
|
2300
2296
|
* @type {string}
|
|
2301
|
-
* @memberof
|
|
2297
|
+
* @memberof CryptoInstrument
|
|
2302
2298
|
*/
|
|
2303
|
-
'
|
|
2299
|
+
'kind': CryptoInstrumentKindEnum;
|
|
2304
2300
|
/**
|
|
2305
|
-
*
|
|
2301
|
+
* Unique identifier for the instrument.
|
|
2306
2302
|
* @type {string}
|
|
2307
|
-
* @memberof
|
|
2303
|
+
* @memberof CryptoInstrument
|
|
2308
2304
|
*/
|
|
2309
|
-
'
|
|
2305
|
+
'id': string;
|
|
2310
2306
|
/**
|
|
2311
|
-
* The
|
|
2307
|
+
* The formatted trading symbol for the security.
|
|
2312
2308
|
* @type {string}
|
|
2313
|
-
* @memberof
|
|
2309
|
+
* @memberof CryptoInstrument
|
|
2314
2310
|
*/
|
|
2315
|
-
'
|
|
2311
|
+
'symbol': string;
|
|
2316
2312
|
/**
|
|
2317
|
-
* The
|
|
2313
|
+
* The raw symbol without any exchange suffix.
|
|
2318
2314
|
* @type {string}
|
|
2319
|
-
* @memberof
|
|
2315
|
+
* @memberof CryptoInstrument
|
|
2320
2316
|
*/
|
|
2321
|
-
'
|
|
2317
|
+
'raw_symbol': string;
|
|
2322
2318
|
/**
|
|
2323
|
-
*
|
|
2319
|
+
* Human-readable description of the security.
|
|
2324
2320
|
* @type {string}
|
|
2325
|
-
* @memberof
|
|
2321
|
+
* @memberof CryptoInstrument
|
|
2326
2322
|
*/
|
|
2327
|
-
'
|
|
2323
|
+
'description'?: string | null;
|
|
2328
2324
|
/**
|
|
2329
|
-
*
|
|
2325
|
+
* ISO-4217 currency code for the security listing.
|
|
2330
2326
|
* @type {string}
|
|
2331
|
-
* @memberof
|
|
2327
|
+
* @memberof CryptoInstrument
|
|
2332
2328
|
*/
|
|
2333
|
-
'
|
|
2329
|
+
'currency'?: string | null;
|
|
2334
2330
|
/**
|
|
2335
|
-
*
|
|
2331
|
+
* Deprecated. Crypto instruments are not tied to a listing exchange, so this field is no longer populated and is omitted from responses. It will be removed in a future version.
|
|
2336
2332
|
* @type {string}
|
|
2337
|
-
* @memberof
|
|
2333
|
+
* @memberof CryptoInstrument
|
|
2334
|
+
* @deprecated
|
|
2338
2335
|
*/
|
|
2339
|
-
'
|
|
2336
|
+
'exchange'?: string | null;
|
|
2340
2337
|
/**
|
|
2341
2338
|
*
|
|
2342
|
-
* @type {
|
|
2343
|
-
* @memberof
|
|
2339
|
+
* @type {FigiInstrumentNullable}
|
|
2340
|
+
* @memberof CryptoInstrument
|
|
2344
2341
|
*/
|
|
2345
|
-
'
|
|
2342
|
+
'figi_instrument'?: FigiInstrumentNullable | null;
|
|
2343
|
+
}
|
|
2344
|
+
type CryptoInstrumentKindEnum = 'crypto';
|
|
2345
|
+
//#endregion
|
|
2346
|
+
//#region models/etf-instrument.d.ts
|
|
2347
|
+
/**
|
|
2348
|
+
* Security instrument metadata for ETF positions.
|
|
2349
|
+
* @export
|
|
2350
|
+
* @interface EtfInstrument
|
|
2351
|
+
*/
|
|
2352
|
+
interface EtfInstrument {
|
|
2353
|
+
[key: string]: unknown;
|
|
2346
2354
|
/**
|
|
2347
|
-
*
|
|
2355
|
+
* Type of security instrument.
|
|
2348
2356
|
* @type {string}
|
|
2349
|
-
* @memberof
|
|
2357
|
+
* @memberof EtfInstrument
|
|
2350
2358
|
*/
|
|
2351
|
-
'
|
|
2359
|
+
'kind': EtfInstrumentKindEnum;
|
|
2352
2360
|
/**
|
|
2353
|
-
*
|
|
2361
|
+
* Unique identifier for the instrument.
|
|
2354
2362
|
* @type {string}
|
|
2355
|
-
* @memberof
|
|
2363
|
+
* @memberof EtfInstrument
|
|
2356
2364
|
*/
|
|
2357
|
-
'
|
|
2365
|
+
'id': string;
|
|
2358
2366
|
/**
|
|
2359
|
-
* The
|
|
2367
|
+
* The formatted trading symbol for the security.
|
|
2360
2368
|
* @type {string}
|
|
2361
|
-
* @memberof
|
|
2369
|
+
* @memberof EtfInstrument
|
|
2362
2370
|
*/
|
|
2363
|
-
'
|
|
2364
|
-
/**
|
|
2365
|
-
* The time the order was last updated in the brokerage system. This value is not always available from the brokerage.
|
|
2366
|
-
* @type {string}
|
|
2367
|
-
* @memberof AccountOrderRecordNullable
|
|
2368
|
-
*/
|
|
2369
|
-
'time_updated'?: string | null;
|
|
2370
|
-
/**
|
|
2371
|
-
* The time the order was executed in the brokerage system. This value is not always available from the brokerage.
|
|
2372
|
-
* @type {string}
|
|
2373
|
-
* @memberof AccountOrderRecordNullable
|
|
2374
|
-
*/
|
|
2375
|
-
'time_executed'?: string | null;
|
|
2376
|
-
/**
|
|
2377
|
-
* The time the order expires. This value is not always available from the brokerage.
|
|
2378
|
-
* @type {string}
|
|
2379
|
-
* @memberof AccountOrderRecordNullable
|
|
2380
|
-
*/
|
|
2381
|
-
'expiry_date'?: string | null;
|
|
2382
|
-
/**
|
|
2383
|
-
* A unique ID for the security within SnapTrade, scoped to the brokerage account that the security belongs to. This is a legacy field and should not be used. Do not rely on this being a stable ID as it can change.
|
|
2384
|
-
* @type {string}
|
|
2385
|
-
* @memberof AccountOrderRecordNullable
|
|
2386
|
-
* @deprecated
|
|
2387
|
-
*/
|
|
2388
|
-
'symbol'?: string;
|
|
2389
|
-
/**
|
|
2390
|
-
*
|
|
2391
|
-
* @type {ChildBrokerageOrderIDsNullable}
|
|
2392
|
-
* @memberof AccountOrderRecordNullable
|
|
2393
|
-
*/
|
|
2394
|
-
'child_brokerage_order_ids'?: ChildBrokerageOrderIDsNullable | null;
|
|
2395
|
-
}
|
|
2396
|
-
type AccountOrderRecordNullableOrderRoleEnum = 'TRIGGER' | 'CONDITIONAL' | 'PEER';
|
|
2397
|
-
//#endregion
|
|
2398
|
-
//#region models/account-order-record-status-v2.d.ts
|
|
2399
|
-
/**
|
|
2400
|
-
* Indicates the status of an order. SnapTrade does a best effort to map brokerage statuses to statuses in this enum.
|
|
2401
|
-
* @export
|
|
2402
|
-
* @enum {string}
|
|
2403
|
-
*/
|
|
2404
|
-
type AccountOrderRecordStatusV2 = 'PENDING' | 'REJECTED' | 'CANCELED' | 'CANCEL_PENDING' | 'PARTIAL_CANCELED' | 'EXECUTED' | 'PARTIALLY_EXECUTED' | 'REPLACED' | 'REPLACE_PENDING' | 'EXPIRED';
|
|
2405
|
-
//#endregion
|
|
2406
|
-
//#region models/account-order-record-v2-order-role-nullable.d.ts
|
|
2407
|
-
/**
|
|
2408
|
-
* The role of an order within a complex order group (OCO, OTO, OTOCO).
|
|
2409
|
-
* @export
|
|
2410
|
-
* @enum {string}
|
|
2411
|
-
*/
|
|
2412
|
-
type AccountOrderRecordV2OrderRoleNullable = 'TRIGGER' | 'CONDITIONAL' | 'PEER';
|
|
2413
|
-
//#endregion
|
|
2414
|
-
//#region models/account-order-record-v2.d.ts
|
|
2415
|
-
/**
|
|
2416
|
-
* Describes a single order in the standardized V2 format.
|
|
2417
|
-
* @export
|
|
2418
|
-
* @interface AccountOrderRecordV2
|
|
2419
|
-
*/
|
|
2420
|
-
interface AccountOrderRecordV2 {
|
|
2421
|
-
[key: string]: unknown;
|
|
2422
|
-
/**
|
|
2423
|
-
* Order ID returned by brokerage. This is the unique identifier for the order in the brokerage system.
|
|
2424
|
-
* @type {string}
|
|
2425
|
-
* @memberof AccountOrderRecordV2
|
|
2426
|
-
*/
|
|
2427
|
-
'brokerage_order_id'?: string;
|
|
2428
|
-
/**
|
|
2429
|
-
* The brokerage-assigned identifier that links all orders within a complex order (OCO, OTO, OTOCO) together. Null for non-complex orders or when the brokerage does not return a group identifier.
|
|
2430
|
-
* @type {string}
|
|
2431
|
-
* @memberof AccountOrderRecordV2
|
|
2432
|
-
*/
|
|
2433
|
-
'brokerage_group_order_id'?: string | null;
|
|
2434
|
-
/**
|
|
2435
|
-
*
|
|
2436
|
-
* @type {AccountOrderRecordV2OrderRoleNullable}
|
|
2437
|
-
* @memberof AccountOrderRecordV2
|
|
2438
|
-
*/
|
|
2439
|
-
'order_role'?: AccountOrderRecordV2OrderRoleNullable | null;
|
|
2440
|
-
/**
|
|
2441
|
-
* Indicates the status of an order. SnapTrade does a best effort to map brokerage statuses to statuses in this enum. Possible values include: - NONE - PENDING - ACCEPTED - FAILED - REJECTED - CANCELED - PARTIAL_CANCELED - CANCEL_PENDING - EXECUTED - PARTIAL - REPLACE_PENDING - REPLACED - EXPIRED - QUEUED - TRIGGERED - ACTIVATED
|
|
2442
|
-
* @type {AccountOrderRecordStatus}
|
|
2443
|
-
* @memberof AccountOrderRecordV2
|
|
2444
|
-
*/
|
|
2445
|
-
'status'?: AccountOrderRecordStatus;
|
|
2446
|
-
/**
|
|
2447
|
-
* The type of order placed. - `MARKET` - `LIMIT` - `STOP` - `STOP_LIMIT`
|
|
2448
|
-
* @type {string}
|
|
2449
|
-
* @memberof AccountOrderRecordV2
|
|
2450
|
-
*/
|
|
2451
|
-
'order_type'?: string | null;
|
|
2452
|
-
/**
|
|
2453
|
-
* The Time in Force type for the order. This field indicates how long the order will remain active before it is executed or expires. We try our best to map brokerage time in force values to the following. When mapping fails, we will return the brokerage\'s time in force value. - `DAY` - Day. The order is valid only for the trading day on which it is placed. - `GTC` - Good Til Canceled. The order is valid until it is executed or canceled. - `FOK` - Fill Or Kill. The order must be executed in its entirety immediately or be canceled completely. - `IOC` - Immediate Or Cancel. The order must be executed immediately. Any portion of the order that cannot be filled immediately will be canceled. - `GTD` - Good Til Date. The order is valid until the specified date. - `MOO` - Market On Open. The order is to be executed at the day\'s opening price. - `EHP` - Extended Hours P.M. The order is to be placed during extended hour trading, after markets close.
|
|
2454
|
-
* @type {string}
|
|
2455
|
-
* @memberof AccountOrderRecordV2
|
|
2456
|
-
*/
|
|
2457
|
-
'time_in_force'?: string;
|
|
2458
|
-
/**
|
|
2459
|
-
* The time the order was placed. This is the time the order was submitted to the brokerage.
|
|
2460
|
-
* @type {string}
|
|
2461
|
-
* @memberof AccountOrderRecordV2
|
|
2462
|
-
*/
|
|
2463
|
-
'time_placed'?: string;
|
|
2464
|
-
/**
|
|
2465
|
-
* The time the order was executed in the brokerage system. This value is not always available from the brokerage.
|
|
2466
|
-
* @type {string}
|
|
2467
|
-
* @memberof AccountOrderRecordV2
|
|
2468
|
-
*/
|
|
2469
|
-
'time_executed'?: string | null;
|
|
2470
|
-
/**
|
|
2471
|
-
* Price currency code for the order.
|
|
2472
|
-
* @type {string}
|
|
2473
|
-
* @memberof AccountOrderRecordV2
|
|
2474
|
-
*/
|
|
2475
|
-
'price_currency'?: string;
|
|
2371
|
+
'symbol': string;
|
|
2476
2372
|
/**
|
|
2477
|
-
*
|
|
2373
|
+
* The raw symbol without any exchange suffix.
|
|
2478
2374
|
* @type {string}
|
|
2479
|
-
* @memberof
|
|
2375
|
+
* @memberof EtfInstrument
|
|
2480
2376
|
*/
|
|
2481
|
-
'
|
|
2377
|
+
'raw_symbol': string;
|
|
2482
2378
|
/**
|
|
2483
|
-
*
|
|
2379
|
+
* Human-readable description of the security.
|
|
2484
2380
|
* @type {string}
|
|
2485
|
-
* @memberof
|
|
2381
|
+
* @memberof EtfInstrument
|
|
2486
2382
|
*/
|
|
2487
|
-
'
|
|
2383
|
+
'description'?: string | null;
|
|
2488
2384
|
/**
|
|
2489
|
-
*
|
|
2385
|
+
* ISO-4217 currency code for the security listing.
|
|
2490
2386
|
* @type {string}
|
|
2491
|
-
* @memberof
|
|
2387
|
+
* @memberof EtfInstrument
|
|
2492
2388
|
*/
|
|
2493
|
-
'
|
|
2389
|
+
'currency'?: string | null;
|
|
2494
2390
|
/**
|
|
2495
|
-
*
|
|
2391
|
+
* Exchange MIC code or exchange code for the security.
|
|
2496
2392
|
* @type {string}
|
|
2497
|
-
* @memberof
|
|
2393
|
+
* @memberof EtfInstrument
|
|
2498
2394
|
*/
|
|
2499
|
-
'
|
|
2395
|
+
'exchange'?: string | null;
|
|
2500
2396
|
/**
|
|
2501
2397
|
*
|
|
2502
|
-
* @type {
|
|
2503
|
-
* @memberof
|
|
2504
|
-
*/
|
|
2505
|
-
'trailing_stop'?: TrailingStopNullable | null;
|
|
2506
|
-
/**
|
|
2507
|
-
* List of legs that make up the order.
|
|
2508
|
-
* @type {Array<AccountOrderRecordLeg>}
|
|
2509
|
-
* @memberof AccountOrderRecordV2
|
|
2510
|
-
*/
|
|
2511
|
-
'legs'?: Array<AccountOrderRecordLeg>;
|
|
2512
|
-
}
|
|
2513
|
-
type AccountOrderRecordV2PriceEffectEnum = 'CREDIT' | 'DEBIT' | 'EVEN' | 'UNKNOWN';
|
|
2514
|
-
//#endregion
|
|
2515
|
-
//#region models/account-order-record-v2-order-role.d.ts
|
|
2516
|
-
/**
|
|
2517
|
-
* The role of an order within a complex order group (OCO, OTO, OTOCO).
|
|
2518
|
-
* @export
|
|
2519
|
-
* @enum {string}
|
|
2520
|
-
*/
|
|
2521
|
-
type AccountOrderRecordV2OrderRole = 'TRIGGER' | 'CONDITIONAL' | 'PEER';
|
|
2522
|
-
//#endregion
|
|
2523
|
-
//#region models/account-orders-v2-response.d.ts
|
|
2524
|
-
/**
|
|
2525
|
-
* Contains a standardized list of account orders in the V2 format.
|
|
2526
|
-
* @export
|
|
2527
|
-
* @interface AccountOrdersV2Response
|
|
2528
|
-
*/
|
|
2529
|
-
interface AccountOrdersV2Response {
|
|
2530
|
-
[key: string]: unknown;
|
|
2531
|
-
/**
|
|
2532
|
-
* List of orders returned by the endpoint.
|
|
2533
|
-
* @type {Array<AccountOrderRecordV2>}
|
|
2534
|
-
* @memberof AccountOrdersV2Response
|
|
2398
|
+
* @type {FigiInstrumentNullable}
|
|
2399
|
+
* @memberof EtfInstrument
|
|
2535
2400
|
*/
|
|
2536
|
-
'
|
|
2401
|
+
'figi_instrument'?: FigiInstrumentNullable | null;
|
|
2537
2402
|
}
|
|
2403
|
+
type EtfInstrumentKindEnum = 'etf';
|
|
2538
2404
|
//#endregion
|
|
2539
|
-
//#region models/
|
|
2405
|
+
//#region models/mutual-fund-instrument.d.ts
|
|
2540
2406
|
/**
|
|
2541
|
-
* Security instrument metadata for
|
|
2407
|
+
* Security instrument metadata for mutual fund positions.
|
|
2542
2408
|
* @export
|
|
2543
|
-
* @interface
|
|
2409
|
+
* @interface MutualFundInstrument
|
|
2544
2410
|
*/
|
|
2545
|
-
interface
|
|
2411
|
+
interface MutualFundInstrument {
|
|
2546
2412
|
[key: string]: unknown;
|
|
2547
2413
|
/**
|
|
2548
2414
|
* Type of security instrument.
|
|
2549
2415
|
* @type {string}
|
|
2550
|
-
* @memberof
|
|
2416
|
+
* @memberof MutualFundInstrument
|
|
2551
2417
|
*/
|
|
2552
|
-
'kind':
|
|
2418
|
+
'kind': MutualFundInstrumentKindEnum;
|
|
2553
2419
|
/**
|
|
2554
2420
|
* Unique identifier for the instrument.
|
|
2555
2421
|
* @type {string}
|
|
2556
|
-
* @memberof
|
|
2422
|
+
* @memberof MutualFundInstrument
|
|
2557
2423
|
*/
|
|
2558
2424
|
'id': string;
|
|
2559
2425
|
/**
|
|
2560
2426
|
* The formatted trading symbol for the security.
|
|
2561
2427
|
* @type {string}
|
|
2562
|
-
* @memberof
|
|
2428
|
+
* @memberof MutualFundInstrument
|
|
2563
2429
|
*/
|
|
2564
2430
|
'symbol': string;
|
|
2565
2431
|
/**
|
|
2566
2432
|
* The raw symbol without any exchange suffix.
|
|
2567
2433
|
* @type {string}
|
|
2568
|
-
* @memberof
|
|
2434
|
+
* @memberof MutualFundInstrument
|
|
2569
2435
|
*/
|
|
2570
2436
|
'raw_symbol': string;
|
|
2571
2437
|
/**
|
|
2572
2438
|
* Human-readable description of the security.
|
|
2573
2439
|
* @type {string}
|
|
2574
|
-
* @memberof
|
|
2440
|
+
* @memberof MutualFundInstrument
|
|
2575
2441
|
*/
|
|
2576
2442
|
'description'?: string | null;
|
|
2577
2443
|
/**
|
|
2578
2444
|
* ISO-4217 currency code for the security listing.
|
|
2579
2445
|
* @type {string}
|
|
2580
|
-
* @memberof
|
|
2446
|
+
* @memberof MutualFundInstrument
|
|
2581
2447
|
*/
|
|
2582
2448
|
'currency'?: string | null;
|
|
2583
2449
|
/**
|
|
2584
2450
|
* Exchange MIC code or exchange code for the security.
|
|
2585
2451
|
* @type {string}
|
|
2586
|
-
* @memberof
|
|
2452
|
+
* @memberof MutualFundInstrument
|
|
2587
2453
|
*/
|
|
2588
2454
|
'exchange'?: string | null;
|
|
2589
2455
|
/**
|
|
2590
2456
|
*
|
|
2591
2457
|
* @type {FigiInstrumentNullable}
|
|
2592
|
-
* @memberof
|
|
2458
|
+
* @memberof MutualFundInstrument
|
|
2593
2459
|
*/
|
|
2594
2460
|
'figi_instrument'?: FigiInstrumentNullable | null;
|
|
2595
2461
|
}
|
|
2596
|
-
type
|
|
2462
|
+
type MutualFundInstrumentKindEnum = 'mutualfund';
|
|
2597
2463
|
//#endregion
|
|
2598
|
-
//#region models/
|
|
2464
|
+
//#region models/other-instrument.d.ts
|
|
2599
2465
|
/**
|
|
2600
|
-
* Security instrument metadata for
|
|
2466
|
+
* Security instrument metadata for bonds and other mapped security positions.
|
|
2601
2467
|
* @export
|
|
2602
|
-
* @interface
|
|
2468
|
+
* @interface OtherInstrument
|
|
2603
2469
|
*/
|
|
2604
|
-
interface
|
|
2470
|
+
interface OtherInstrument {
|
|
2605
2471
|
[key: string]: unknown;
|
|
2606
2472
|
/**
|
|
2607
2473
|
* Type of security instrument.
|
|
2608
2474
|
* @type {string}
|
|
2609
|
-
* @memberof
|
|
2475
|
+
* @memberof OtherInstrument
|
|
2610
2476
|
*/
|
|
2611
|
-
'kind':
|
|
2477
|
+
'kind': OtherInstrumentKindEnum;
|
|
2612
2478
|
/**
|
|
2613
2479
|
* Unique identifier for the instrument.
|
|
2614
2480
|
* @type {string}
|
|
2615
|
-
* @memberof
|
|
2481
|
+
* @memberof OtherInstrument
|
|
2616
2482
|
*/
|
|
2617
2483
|
'id': string;
|
|
2618
2484
|
/**
|
|
2619
2485
|
* The formatted trading symbol for the security.
|
|
2620
2486
|
* @type {string}
|
|
2621
|
-
* @memberof
|
|
2487
|
+
* @memberof OtherInstrument
|
|
2622
2488
|
*/
|
|
2623
2489
|
'symbol': string;
|
|
2624
2490
|
/**
|
|
2625
2491
|
* The raw symbol without any exchange suffix.
|
|
2626
2492
|
* @type {string}
|
|
2627
|
-
* @memberof
|
|
2493
|
+
* @memberof OtherInstrument
|
|
2628
2494
|
*/
|
|
2629
2495
|
'raw_symbol': string;
|
|
2630
2496
|
/**
|
|
2631
2497
|
* Human-readable description of the security.
|
|
2632
2498
|
* @type {string}
|
|
2633
|
-
* @memberof
|
|
2499
|
+
* @memberof OtherInstrument
|
|
2634
2500
|
*/
|
|
2635
2501
|
'description'?: string | null;
|
|
2636
2502
|
/**
|
|
2637
2503
|
* ISO-4217 currency code for the security listing.
|
|
2638
2504
|
* @type {string}
|
|
2639
|
-
* @memberof
|
|
2505
|
+
* @memberof OtherInstrument
|
|
2640
2506
|
*/
|
|
2641
2507
|
'currency'?: string | null;
|
|
2642
2508
|
/**
|
|
2643
2509
|
* Exchange MIC code or exchange code for the security.
|
|
2644
2510
|
* @type {string}
|
|
2645
|
-
* @memberof
|
|
2511
|
+
* @memberof OtherInstrument
|
|
2646
2512
|
*/
|
|
2647
2513
|
'exchange'?: string | null;
|
|
2648
2514
|
/**
|
|
2649
2515
|
*
|
|
2650
2516
|
* @type {FigiInstrumentNullable}
|
|
2651
|
-
* @memberof
|
|
2517
|
+
* @memberof OtherInstrument
|
|
2652
2518
|
*/
|
|
2653
2519
|
'figi_instrument'?: FigiInstrumentNullable | null;
|
|
2654
2520
|
}
|
|
2655
|
-
type
|
|
2521
|
+
type OtherInstrumentKindEnum = 'bond' | 'other';
|
|
2656
2522
|
//#endregion
|
|
2657
|
-
//#region models/
|
|
2523
|
+
//#region models/stock-instrument.d.ts
|
|
2658
2524
|
/**
|
|
2659
|
-
* Security instrument metadata for
|
|
2525
|
+
* Security instrument metadata for stock positions.
|
|
2660
2526
|
* @export
|
|
2661
|
-
* @interface
|
|
2527
|
+
* @interface StockInstrument
|
|
2662
2528
|
*/
|
|
2663
|
-
interface
|
|
2529
|
+
interface StockInstrument {
|
|
2664
2530
|
[key: string]: unknown;
|
|
2665
2531
|
/**
|
|
2666
2532
|
* Type of security instrument.
|
|
2667
2533
|
* @type {string}
|
|
2668
|
-
* @memberof
|
|
2534
|
+
* @memberof StockInstrument
|
|
2669
2535
|
*/
|
|
2670
|
-
'kind':
|
|
2536
|
+
'kind': StockInstrumentKindEnum;
|
|
2671
2537
|
/**
|
|
2672
2538
|
* Unique identifier for the instrument.
|
|
2673
2539
|
* @type {string}
|
|
2674
|
-
* @memberof
|
|
2540
|
+
* @memberof StockInstrument
|
|
2675
2541
|
*/
|
|
2676
2542
|
'id': string;
|
|
2677
2543
|
/**
|
|
2678
2544
|
* The formatted trading symbol for the security.
|
|
2679
2545
|
* @type {string}
|
|
2680
|
-
* @memberof
|
|
2546
|
+
* @memberof StockInstrument
|
|
2681
2547
|
*/
|
|
2682
2548
|
'symbol': string;
|
|
2683
2549
|
/**
|
|
2684
2550
|
* The raw symbol without any exchange suffix.
|
|
2685
2551
|
* @type {string}
|
|
2686
|
-
* @memberof
|
|
2552
|
+
* @memberof StockInstrument
|
|
2687
2553
|
*/
|
|
2688
2554
|
'raw_symbol': string;
|
|
2689
2555
|
/**
|
|
2690
2556
|
* Human-readable description of the security.
|
|
2691
2557
|
* @type {string}
|
|
2692
|
-
* @memberof
|
|
2558
|
+
* @memberof StockInstrument
|
|
2693
2559
|
*/
|
|
2694
2560
|
'description'?: string | null;
|
|
2695
2561
|
/**
|
|
2696
2562
|
* ISO-4217 currency code for the security listing.
|
|
2697
2563
|
* @type {string}
|
|
2698
|
-
* @memberof
|
|
2564
|
+
* @memberof StockInstrument
|
|
2699
2565
|
*/
|
|
2700
2566
|
'currency'?: string | null;
|
|
2701
2567
|
/**
|
|
2702
|
-
*
|
|
2703
|
-
* @type {string}
|
|
2704
|
-
* @memberof CryptoInstrument
|
|
2705
|
-
* @deprecated
|
|
2706
|
-
*/
|
|
2707
|
-
'exchange'?: string | null;
|
|
2708
|
-
/**
|
|
2709
|
-
*
|
|
2710
|
-
* @type {FigiInstrumentNullable}
|
|
2711
|
-
* @memberof CryptoInstrument
|
|
2712
|
-
*/
|
|
2713
|
-
'figi_instrument'?: FigiInstrumentNullable | null;
|
|
2714
|
-
}
|
|
2715
|
-
type CryptoInstrumentKindEnum = 'crypto';
|
|
2716
|
-
//#endregion
|
|
2717
|
-
//#region models/etf-instrument.d.ts
|
|
2718
|
-
/**
|
|
2719
|
-
* Security instrument metadata for ETF positions.
|
|
2720
|
-
* @export
|
|
2721
|
-
* @interface EtfInstrument
|
|
2722
|
-
*/
|
|
2723
|
-
interface EtfInstrument {
|
|
2724
|
-
[key: string]: unknown;
|
|
2725
|
-
/**
|
|
2726
|
-
* Type of security instrument.
|
|
2727
|
-
* @type {string}
|
|
2728
|
-
* @memberof EtfInstrument
|
|
2729
|
-
*/
|
|
2730
|
-
'kind': EtfInstrumentKindEnum;
|
|
2731
|
-
/**
|
|
2732
|
-
* Unique identifier for the instrument.
|
|
2733
|
-
* @type {string}
|
|
2734
|
-
* @memberof EtfInstrument
|
|
2735
|
-
*/
|
|
2736
|
-
'id': string;
|
|
2737
|
-
/**
|
|
2738
|
-
* The formatted trading symbol for the security.
|
|
2739
|
-
* @type {string}
|
|
2740
|
-
* @memberof EtfInstrument
|
|
2741
|
-
*/
|
|
2742
|
-
'symbol': string;
|
|
2743
|
-
/**
|
|
2744
|
-
* The raw symbol without any exchange suffix.
|
|
2745
|
-
* @type {string}
|
|
2746
|
-
* @memberof EtfInstrument
|
|
2747
|
-
*/
|
|
2748
|
-
'raw_symbol': string;
|
|
2749
|
-
/**
|
|
2750
|
-
* Human-readable description of the security.
|
|
2751
|
-
* @type {string}
|
|
2752
|
-
* @memberof EtfInstrument
|
|
2753
|
-
*/
|
|
2754
|
-
'description'?: string | null;
|
|
2755
|
-
/**
|
|
2756
|
-
* ISO-4217 currency code for the security listing.
|
|
2757
|
-
* @type {string}
|
|
2758
|
-
* @memberof EtfInstrument
|
|
2759
|
-
*/
|
|
2760
|
-
'currency'?: string | null;
|
|
2761
|
-
/**
|
|
2762
|
-
* Exchange MIC code or exchange code for the security.
|
|
2763
|
-
* @type {string}
|
|
2764
|
-
* @memberof EtfInstrument
|
|
2765
|
-
*/
|
|
2766
|
-
'exchange'?: string | null;
|
|
2767
|
-
/**
|
|
2768
|
-
*
|
|
2769
|
-
* @type {FigiInstrumentNullable}
|
|
2770
|
-
* @memberof EtfInstrument
|
|
2771
|
-
*/
|
|
2772
|
-
'figi_instrument'?: FigiInstrumentNullable | null;
|
|
2773
|
-
}
|
|
2774
|
-
type EtfInstrumentKindEnum = 'etf';
|
|
2775
|
-
//#endregion
|
|
2776
|
-
//#region models/mutual-fund-instrument.d.ts
|
|
2777
|
-
/**
|
|
2778
|
-
* Security instrument metadata for mutual fund positions.
|
|
2779
|
-
* @export
|
|
2780
|
-
* @interface MutualFundInstrument
|
|
2781
|
-
*/
|
|
2782
|
-
interface MutualFundInstrument {
|
|
2783
|
-
[key: string]: unknown;
|
|
2784
|
-
/**
|
|
2785
|
-
* Type of security instrument.
|
|
2786
|
-
* @type {string}
|
|
2787
|
-
* @memberof MutualFundInstrument
|
|
2788
|
-
*/
|
|
2789
|
-
'kind': MutualFundInstrumentKindEnum;
|
|
2790
|
-
/**
|
|
2791
|
-
* Unique identifier for the instrument.
|
|
2792
|
-
* @type {string}
|
|
2793
|
-
* @memberof MutualFundInstrument
|
|
2794
|
-
*/
|
|
2795
|
-
'id': string;
|
|
2796
|
-
/**
|
|
2797
|
-
* The formatted trading symbol for the security.
|
|
2798
|
-
* @type {string}
|
|
2799
|
-
* @memberof MutualFundInstrument
|
|
2800
|
-
*/
|
|
2801
|
-
'symbol': string;
|
|
2802
|
-
/**
|
|
2803
|
-
* The raw symbol without any exchange suffix.
|
|
2804
|
-
* @type {string}
|
|
2805
|
-
* @memberof MutualFundInstrument
|
|
2806
|
-
*/
|
|
2807
|
-
'raw_symbol': string;
|
|
2808
|
-
/**
|
|
2809
|
-
* Human-readable description of the security.
|
|
2810
|
-
* @type {string}
|
|
2811
|
-
* @memberof MutualFundInstrument
|
|
2812
|
-
*/
|
|
2813
|
-
'description'?: string | null;
|
|
2814
|
-
/**
|
|
2815
|
-
* ISO-4217 currency code for the security listing.
|
|
2816
|
-
* @type {string}
|
|
2817
|
-
* @memberof MutualFundInstrument
|
|
2818
|
-
*/
|
|
2819
|
-
'currency'?: string | null;
|
|
2820
|
-
/**
|
|
2821
|
-
* Exchange MIC code or exchange code for the security.
|
|
2822
|
-
* @type {string}
|
|
2823
|
-
* @memberof MutualFundInstrument
|
|
2824
|
-
*/
|
|
2825
|
-
'exchange'?: string | null;
|
|
2826
|
-
/**
|
|
2827
|
-
*
|
|
2828
|
-
* @type {FigiInstrumentNullable}
|
|
2829
|
-
* @memberof MutualFundInstrument
|
|
2830
|
-
*/
|
|
2831
|
-
'figi_instrument'?: FigiInstrumentNullable | null;
|
|
2832
|
-
}
|
|
2833
|
-
type MutualFundInstrumentKindEnum = 'mutualfund';
|
|
2834
|
-
//#endregion
|
|
2835
|
-
//#region models/other-instrument.d.ts
|
|
2836
|
-
/**
|
|
2837
|
-
* Security instrument metadata for bonds and other mapped security positions.
|
|
2838
|
-
* @export
|
|
2839
|
-
* @interface OtherInstrument
|
|
2840
|
-
*/
|
|
2841
|
-
interface OtherInstrument {
|
|
2842
|
-
[key: string]: unknown;
|
|
2843
|
-
/**
|
|
2844
|
-
* Type of security instrument.
|
|
2845
|
-
* @type {string}
|
|
2846
|
-
* @memberof OtherInstrument
|
|
2847
|
-
*/
|
|
2848
|
-
'kind': OtherInstrumentKindEnum;
|
|
2849
|
-
/**
|
|
2850
|
-
* Unique identifier for the instrument.
|
|
2851
|
-
* @type {string}
|
|
2852
|
-
* @memberof OtherInstrument
|
|
2853
|
-
*/
|
|
2854
|
-
'id': string;
|
|
2855
|
-
/**
|
|
2856
|
-
* The formatted trading symbol for the security.
|
|
2857
|
-
* @type {string}
|
|
2858
|
-
* @memberof OtherInstrument
|
|
2859
|
-
*/
|
|
2860
|
-
'symbol': string;
|
|
2861
|
-
/**
|
|
2862
|
-
* The raw symbol without any exchange suffix.
|
|
2863
|
-
* @type {string}
|
|
2864
|
-
* @memberof OtherInstrument
|
|
2865
|
-
*/
|
|
2866
|
-
'raw_symbol': string;
|
|
2867
|
-
/**
|
|
2868
|
-
* Human-readable description of the security.
|
|
2869
|
-
* @type {string}
|
|
2870
|
-
* @memberof OtherInstrument
|
|
2871
|
-
*/
|
|
2872
|
-
'description'?: string | null;
|
|
2873
|
-
/**
|
|
2874
|
-
* ISO-4217 currency code for the security listing.
|
|
2875
|
-
* @type {string}
|
|
2876
|
-
* @memberof OtherInstrument
|
|
2877
|
-
*/
|
|
2878
|
-
'currency'?: string | null;
|
|
2879
|
-
/**
|
|
2880
|
-
* Exchange MIC code or exchange code for the security.
|
|
2881
|
-
* @type {string}
|
|
2882
|
-
* @memberof OtherInstrument
|
|
2883
|
-
*/
|
|
2884
|
-
'exchange'?: string | null;
|
|
2885
|
-
/**
|
|
2886
|
-
*
|
|
2887
|
-
* @type {FigiInstrumentNullable}
|
|
2888
|
-
* @memberof OtherInstrument
|
|
2889
|
-
*/
|
|
2890
|
-
'figi_instrument'?: FigiInstrumentNullable | null;
|
|
2891
|
-
}
|
|
2892
|
-
type OtherInstrumentKindEnum = 'bond' | 'other';
|
|
2893
|
-
//#endregion
|
|
2894
|
-
//#region models/stock-instrument.d.ts
|
|
2895
|
-
/**
|
|
2896
|
-
* Security instrument metadata for stock positions.
|
|
2897
|
-
* @export
|
|
2898
|
-
* @interface StockInstrument
|
|
2899
|
-
*/
|
|
2900
|
-
interface StockInstrument {
|
|
2901
|
-
[key: string]: unknown;
|
|
2902
|
-
/**
|
|
2903
|
-
* Type of security instrument.
|
|
2904
|
-
* @type {string}
|
|
2905
|
-
* @memberof StockInstrument
|
|
2906
|
-
*/
|
|
2907
|
-
'kind': StockInstrumentKindEnum;
|
|
2908
|
-
/**
|
|
2909
|
-
* Unique identifier for the instrument.
|
|
2910
|
-
* @type {string}
|
|
2911
|
-
* @memberof StockInstrument
|
|
2912
|
-
*/
|
|
2913
|
-
'id': string;
|
|
2914
|
-
/**
|
|
2915
|
-
* The formatted trading symbol for the security.
|
|
2916
|
-
* @type {string}
|
|
2917
|
-
* @memberof StockInstrument
|
|
2918
|
-
*/
|
|
2919
|
-
'symbol': string;
|
|
2920
|
-
/**
|
|
2921
|
-
* The raw symbol without any exchange suffix.
|
|
2922
|
-
* @type {string}
|
|
2923
|
-
* @memberof StockInstrument
|
|
2924
|
-
*/
|
|
2925
|
-
'raw_symbol': string;
|
|
2926
|
-
/**
|
|
2927
|
-
* Human-readable description of the security.
|
|
2928
|
-
* @type {string}
|
|
2929
|
-
* @memberof StockInstrument
|
|
2930
|
-
*/
|
|
2931
|
-
'description'?: string | null;
|
|
2932
|
-
/**
|
|
2933
|
-
* ISO-4217 currency code for the security listing.
|
|
2934
|
-
* @type {string}
|
|
2935
|
-
* @memberof StockInstrument
|
|
2936
|
-
*/
|
|
2937
|
-
'currency'?: string | null;
|
|
2938
|
-
/**
|
|
2939
|
-
* Exchange MIC code or exchange code for the security.
|
|
2568
|
+
* Exchange MIC code or exchange code for the security.
|
|
2940
2569
|
* @type {string}
|
|
2941
2570
|
* @memberof StockInstrument
|
|
2942
2571
|
*/
|
|
@@ -3209,149 +2838,972 @@ type UnderlyingOptionInstrument = {
|
|
|
3209
2838
|
interface OptionInstrument {
|
|
3210
2839
|
[key: string]: unknown;
|
|
3211
2840
|
/**
|
|
3212
|
-
* Type of security instrument.
|
|
2841
|
+
* Type of security instrument.
|
|
2842
|
+
* @type {string}
|
|
2843
|
+
* @memberof OptionInstrument
|
|
2844
|
+
*/
|
|
2845
|
+
'kind': OptionInstrumentKindEnum;
|
|
2846
|
+
/**
|
|
2847
|
+
* Unique identifier for the option instrument.
|
|
2848
|
+
* @type {string}
|
|
2849
|
+
* @memberof OptionInstrument
|
|
2850
|
+
*/
|
|
2851
|
+
'id': string;
|
|
2852
|
+
/**
|
|
2853
|
+
* OCC symbol for the option contract.
|
|
2854
|
+
* @type {string}
|
|
2855
|
+
* @memberof OptionInstrument
|
|
2856
|
+
*/
|
|
2857
|
+
'symbol': string;
|
|
2858
|
+
/**
|
|
2859
|
+
* Whether the contract is a call or put.
|
|
2860
|
+
* @type {string}
|
|
2861
|
+
* @memberof OptionInstrument
|
|
2862
|
+
*/
|
|
2863
|
+
'option_type': OptionInstrumentOptionTypeEnum;
|
|
2864
|
+
/**
|
|
2865
|
+
* Strike price for the option contract.
|
|
2866
|
+
* @type {string}
|
|
2867
|
+
* @memberof OptionInstrument
|
|
2868
|
+
*/
|
|
2869
|
+
'strike_price': string;
|
|
2870
|
+
/**
|
|
2871
|
+
* Expiration date of the option contract.
|
|
2872
|
+
* @type {string}
|
|
2873
|
+
* @memberof OptionInstrument
|
|
2874
|
+
*/
|
|
2875
|
+
'expiration_date': string;
|
|
2876
|
+
/**
|
|
2877
|
+
* Number of underlying shares per contract. Standard options are 100, mini options are 10.
|
|
2878
|
+
* @type {string}
|
|
2879
|
+
* @memberof OptionInstrument
|
|
2880
|
+
*/
|
|
2881
|
+
'multiplier': string;
|
|
2882
|
+
/**
|
|
2883
|
+
* Human-readable description of the option contract.
|
|
2884
|
+
* @type {string}
|
|
2885
|
+
* @memberof OptionInstrument
|
|
2886
|
+
*/
|
|
2887
|
+
'description'?: string | null;
|
|
2888
|
+
/**
|
|
2889
|
+
*
|
|
2890
|
+
* @type {UnderlyingOptionInstrument}
|
|
2891
|
+
* @memberof OptionInstrument
|
|
2892
|
+
*/
|
|
2893
|
+
'underlying': UnderlyingOptionInstrument;
|
|
2894
|
+
}
|
|
2895
|
+
type OptionInstrumentKindEnum = 'option';
|
|
2896
|
+
type OptionInstrumentOptionTypeEnum = 'CALL' | 'PUT';
|
|
2897
|
+
//#endregion
|
|
2898
|
+
//#region models/underlying-tokenized-asset-instrument.d.ts
|
|
2899
|
+
/**
|
|
2900
|
+
* @type UnderlyingTokenizedAssetInstrument
|
|
2901
|
+
* The listed stock or ETF underlying a tokenized asset.
|
|
2902
|
+
* @export
|
|
2903
|
+
*/
|
|
2904
|
+
type UnderlyingTokenizedAssetInstrument = {
|
|
2905
|
+
kind: 'etf';
|
|
2906
|
+
} & EtfInstrument | {
|
|
2907
|
+
kind: 'stock';
|
|
2908
|
+
} & StockInstrument;
|
|
2909
|
+
//#endregion
|
|
2910
|
+
//#region models/tokenized-asset-instrument.d.ts
|
|
2911
|
+
/**
|
|
2912
|
+
* Canonical tokenized asset wrapper for a V2 position. Symbol and description duplicate the listed underlying\'s display metadata for convenience; they are not token-specific identifiers or labels. Currency and exchange metadata are provided only in underlying_instrument.
|
|
2913
|
+
* @export
|
|
2914
|
+
* @interface TokenizedAssetInstrument
|
|
2915
|
+
*/
|
|
2916
|
+
interface TokenizedAssetInstrument {
|
|
2917
|
+
[key: string]: unknown;
|
|
2918
|
+
/**
|
|
2919
|
+
* Type of security instrument.
|
|
2920
|
+
* @type {string}
|
|
2921
|
+
* @memberof TokenizedAssetInstrument
|
|
2922
|
+
*/
|
|
2923
|
+
'kind': TokenizedAssetInstrumentKindEnum;
|
|
2924
|
+
/**
|
|
2925
|
+
* Unique identifier for the canonical tokenized asset wrapper.
|
|
2926
|
+
* @type {string}
|
|
2927
|
+
* @memberof TokenizedAssetInstrument
|
|
2928
|
+
*/
|
|
2929
|
+
'id': string;
|
|
2930
|
+
/**
|
|
2931
|
+
* Display symbol of the underlying stock or ETF, not a token-specific ticker.
|
|
2932
|
+
* @type {string}
|
|
2933
|
+
* @memberof TokenizedAssetInstrument
|
|
2934
|
+
*/
|
|
2935
|
+
'symbol': string;
|
|
2936
|
+
/**
|
|
2937
|
+
* Display name of the underlying stock or ETF, when available.
|
|
2938
|
+
* @type {string}
|
|
2939
|
+
* @memberof TokenizedAssetInstrument
|
|
2940
|
+
*/
|
|
2941
|
+
'description'?: string;
|
|
2942
|
+
/**
|
|
2943
|
+
*
|
|
2944
|
+
* @type {UnderlyingTokenizedAssetInstrument}
|
|
2945
|
+
* @memberof TokenizedAssetInstrument
|
|
2946
|
+
*/
|
|
2947
|
+
'underlying_instrument': UnderlyingTokenizedAssetInstrument;
|
|
2948
|
+
}
|
|
2949
|
+
type TokenizedAssetInstrumentKindEnum = 'tokenized_asset';
|
|
2950
|
+
//#endregion
|
|
2951
|
+
//#region models/instrument.d.ts
|
|
2952
|
+
/**
|
|
2953
|
+
* @type Instrument
|
|
2954
|
+
* Instrument metadata for a V2 position. Use `kind` to determine which schema is present.
|
|
2955
|
+
* @export
|
|
2956
|
+
*/
|
|
2957
|
+
type Instrument = {
|
|
2958
|
+
kind: 'adr';
|
|
2959
|
+
} & AdrInstrument | {
|
|
2960
|
+
kind: 'bond';
|
|
2961
|
+
} & OtherInstrument | {
|
|
2962
|
+
kind: 'cef';
|
|
2963
|
+
} & CefInstrument | {
|
|
2964
|
+
kind: 'cfd';
|
|
2965
|
+
} & CfdInstrument | {
|
|
2966
|
+
kind: 'crypto';
|
|
2967
|
+
} & CryptoInstrument | {
|
|
2968
|
+
kind: 'etf';
|
|
2969
|
+
} & EtfInstrument | {
|
|
2970
|
+
kind: 'future';
|
|
2971
|
+
} & FutureInstrument | {
|
|
2972
|
+
kind: 'future_option';
|
|
2973
|
+
} & FutureOptionInstrument | {
|
|
2974
|
+
kind: 'mutualfund';
|
|
2975
|
+
} & MutualFundInstrument | {
|
|
2976
|
+
kind: 'option';
|
|
2977
|
+
} & OptionInstrument | {
|
|
2978
|
+
kind: 'other';
|
|
2979
|
+
} & OtherInstrument | {
|
|
2980
|
+
kind: 'stock';
|
|
2981
|
+
} & StockInstrument | {
|
|
2982
|
+
kind: 'tokenized_asset';
|
|
2983
|
+
} & TokenizedAssetInstrument;
|
|
2984
|
+
//#endregion
|
|
2985
|
+
//#region models/account-order-leg.d.ts
|
|
2986
|
+
/**
|
|
2987
|
+
* One leg of an order.
|
|
2988
|
+
* @export
|
|
2989
|
+
* @interface AccountOrderLeg
|
|
2990
|
+
*/
|
|
2991
|
+
interface AccountOrderLeg {
|
|
2992
|
+
[key: string]: unknown;
|
|
2993
|
+
/**
|
|
2994
|
+
* Brokerage identifier for this leg, when the brokerage assigns one.
|
|
2995
|
+
* @type {string}
|
|
2996
|
+
* @memberof AccountOrderLeg
|
|
2997
|
+
*/
|
|
2998
|
+
'leg_id'?: string | null;
|
|
2999
|
+
/**
|
|
3000
|
+
*
|
|
3001
|
+
* @type {Instrument}
|
|
3002
|
+
* @memberof AccountOrderLeg
|
|
3003
|
+
*/
|
|
3004
|
+
'instrument': Instrument;
|
|
3005
|
+
/**
|
|
3006
|
+
* The action describes the intent or side of a trade. - BUY - SELL - BUY_COVER - SELL_SHORT - BUY_TO_OPEN - BUY_TO_CLOSE - SELL_TO_OPEN - SELL_TO_CLOSE
|
|
3007
|
+
* @type {string}
|
|
3008
|
+
* @memberof AccountOrderLeg
|
|
3009
|
+
*/
|
|
3010
|
+
'action': string;
|
|
3011
|
+
/**
|
|
3012
|
+
* Total number of shares or contracts for this leg. Can be a decimal for fractional orders.
|
|
3013
|
+
* @type {string}
|
|
3014
|
+
* @memberof AccountOrderLeg
|
|
3015
|
+
*/
|
|
3016
|
+
'total_quantity'?: string | null;
|
|
3017
|
+
/**
|
|
3018
|
+
* Number of shares or contracts filled for this leg.
|
|
3019
|
+
* @type {string}
|
|
3020
|
+
* @memberof AccountOrderLeg
|
|
3021
|
+
*/
|
|
3022
|
+
'filled_quantity'?: string | null;
|
|
3023
|
+
/**
|
|
3024
|
+
* Number of shares or contracts canceled for this leg.
|
|
3025
|
+
* @type {string}
|
|
3026
|
+
* @memberof AccountOrderLeg
|
|
3027
|
+
*/
|
|
3028
|
+
'canceled_quantity'?: string | null;
|
|
3029
|
+
/**
|
|
3030
|
+
* Average execution price for this leg, when available.
|
|
3031
|
+
* @type {string}
|
|
3032
|
+
* @memberof AccountOrderLeg
|
|
3033
|
+
*/
|
|
3034
|
+
'execution_price'?: string | null;
|
|
3035
|
+
/**
|
|
3036
|
+
*
|
|
3037
|
+
* @type {AccountOrderRecordStatusV2Nullable}
|
|
3038
|
+
* @memberof AccountOrderLeg
|
|
3039
|
+
*/
|
|
3040
|
+
'status'?: AccountOrderRecordStatusV2Nullable | null;
|
|
3041
|
+
}
|
|
3042
|
+
//#endregion
|
|
3043
|
+
//#region models/account-order-record-status-v2.d.ts
|
|
3044
|
+
/**
|
|
3045
|
+
* Indicates the status of an order. SnapTrade does a best effort to map brokerage statuses to statuses in this enum.
|
|
3046
|
+
* @export
|
|
3047
|
+
* @enum {string}
|
|
3048
|
+
*/
|
|
3049
|
+
type AccountOrderRecordStatusV2 = 'PENDING' | 'REJECTED' | 'CANCELED' | 'CANCEL_PENDING' | 'PARTIAL_CANCELED' | 'EXECUTED' | 'PARTIALLY_EXECUTED' | 'REPLACED' | 'REPLACE_PENDING' | 'EXPIRED';
|
|
3050
|
+
//#endregion
|
|
3051
|
+
//#region models/limit-order-type.d.ts
|
|
3052
|
+
/**
|
|
3053
|
+
* A limit order. For multi-leg orders `limit_price` is the net price per spread; see `price_effect` for its direction.
|
|
3054
|
+
* @export
|
|
3055
|
+
* @interface LimitOrderType
|
|
3056
|
+
*/
|
|
3057
|
+
interface LimitOrderType {
|
|
3058
|
+
[key: string]: unknown;
|
|
3059
|
+
/**
|
|
3060
|
+
*
|
|
3061
|
+
* @type {string}
|
|
3062
|
+
* @memberof LimitOrderType
|
|
3063
|
+
*/
|
|
3064
|
+
'kind': LimitOrderTypeKindEnum;
|
|
3065
|
+
/**
|
|
3066
|
+
* The maximum price to pay for a buy, or the minimum price to accept for a sell.
|
|
3067
|
+
* @type {string}
|
|
3068
|
+
* @memberof LimitOrderType
|
|
3069
|
+
*/
|
|
3070
|
+
'limit_price': string;
|
|
3071
|
+
}
|
|
3072
|
+
type LimitOrderTypeKindEnum = 'limit';
|
|
3073
|
+
//#endregion
|
|
3074
|
+
//#region models/market-order-type.d.ts
|
|
3075
|
+
/**
|
|
3076
|
+
* A market order. Executes at the best available price.
|
|
3077
|
+
* @export
|
|
3078
|
+
* @interface MarketOrderType
|
|
3079
|
+
*/
|
|
3080
|
+
interface MarketOrderType {
|
|
3081
|
+
[key: string]: unknown;
|
|
3082
|
+
/**
|
|
3083
|
+
*
|
|
3084
|
+
* @type {string}
|
|
3085
|
+
* @memberof MarketOrderType
|
|
3086
|
+
*/
|
|
3087
|
+
'kind': MarketOrderTypeKindEnum;
|
|
3088
|
+
}
|
|
3089
|
+
type MarketOrderTypeKindEnum = 'market';
|
|
3090
|
+
//#endregion
|
|
3091
|
+
//#region models/other-order-type.d.ts
|
|
3092
|
+
/**
|
|
3093
|
+
* An order type SnapTrade could not normalize, or a recognized type whose required price the brokerage did not report. The brokerage\'s own label is in `raw_type`.
|
|
3094
|
+
* @export
|
|
3095
|
+
* @interface OtherOrderType
|
|
3096
|
+
*/
|
|
3097
|
+
interface OtherOrderType {
|
|
3098
|
+
[key: string]: unknown;
|
|
3099
|
+
/**
|
|
3100
|
+
*
|
|
3101
|
+
* @type {string}
|
|
3102
|
+
* @memberof OtherOrderType
|
|
3103
|
+
*/
|
|
3104
|
+
'kind': OtherOrderTypeKindEnum;
|
|
3105
|
+
/**
|
|
3106
|
+
* The order type label as reported by the brokerage.
|
|
3107
|
+
* @type {string}
|
|
3108
|
+
* @memberof OtherOrderType
|
|
3109
|
+
*/
|
|
3110
|
+
'raw_type': string;
|
|
3111
|
+
/**
|
|
3112
|
+
*
|
|
3113
|
+
* @type {string}
|
|
3114
|
+
* @memberof OtherOrderType
|
|
3115
|
+
*/
|
|
3116
|
+
'limit_price'?: string | null;
|
|
3117
|
+
/**
|
|
3118
|
+
*
|
|
3119
|
+
* @type {string}
|
|
3120
|
+
* @memberof OtherOrderType
|
|
3121
|
+
*/
|
|
3122
|
+
'stop_price'?: string | null;
|
|
3123
|
+
}
|
|
3124
|
+
type OtherOrderTypeKindEnum = 'other';
|
|
3125
|
+
//#endregion
|
|
3126
|
+
//#region models/stop-limit-order-type.d.ts
|
|
3127
|
+
/**
|
|
3128
|
+
* A stop-limit order. Becomes a limit order at `limit_price` once `stop_price` is reached.
|
|
3129
|
+
* @export
|
|
3130
|
+
* @interface StopLimitOrderType
|
|
3131
|
+
*/
|
|
3132
|
+
interface StopLimitOrderType {
|
|
3133
|
+
[key: string]: unknown;
|
|
3134
|
+
/**
|
|
3135
|
+
*
|
|
3136
|
+
* @type {string}
|
|
3137
|
+
* @memberof StopLimitOrderType
|
|
3138
|
+
*/
|
|
3139
|
+
'kind': StopLimitOrderTypeKindEnum;
|
|
3140
|
+
/**
|
|
3141
|
+
* The price at which the order is triggered.
|
|
3142
|
+
* @type {string}
|
|
3143
|
+
* @memberof StopLimitOrderType
|
|
3144
|
+
*/
|
|
3145
|
+
'stop_price': string;
|
|
3146
|
+
/**
|
|
3147
|
+
* The limit price that applies once triggered.
|
|
3148
|
+
* @type {string}
|
|
3149
|
+
* @memberof StopLimitOrderType
|
|
3150
|
+
*/
|
|
3151
|
+
'limit_price': string;
|
|
3152
|
+
}
|
|
3153
|
+
type StopLimitOrderTypeKindEnum = 'stop_limit';
|
|
3154
|
+
//#endregion
|
|
3155
|
+
//#region models/stop-order-type.d.ts
|
|
3156
|
+
/**
|
|
3157
|
+
* A stop order. Becomes a market order once `stop_price` is reached.
|
|
3158
|
+
* @export
|
|
3159
|
+
* @interface StopOrderType
|
|
3160
|
+
*/
|
|
3161
|
+
interface StopOrderType {
|
|
3162
|
+
[key: string]: unknown;
|
|
3163
|
+
/**
|
|
3164
|
+
*
|
|
3165
|
+
* @type {string}
|
|
3166
|
+
* @memberof StopOrderType
|
|
3167
|
+
*/
|
|
3168
|
+
'kind': StopOrderTypeKindEnum;
|
|
3169
|
+
/**
|
|
3170
|
+
* The price at which the order is triggered.
|
|
3171
|
+
* @type {string}
|
|
3172
|
+
* @memberof StopOrderType
|
|
3173
|
+
*/
|
|
3174
|
+
'stop_price': string;
|
|
3175
|
+
}
|
|
3176
|
+
type StopOrderTypeKindEnum = 'stop';
|
|
3177
|
+
//#endregion
|
|
3178
|
+
//#region models/trailing-stop.d.ts
|
|
3179
|
+
/**
|
|
3180
|
+
* Trail configuration for trailing stop orders.
|
|
3181
|
+
* @export
|
|
3182
|
+
* @interface TrailingStop
|
|
3183
|
+
*/
|
|
3184
|
+
interface TrailingStop {
|
|
3185
|
+
[key: string]: unknown;
|
|
3186
|
+
/**
|
|
3187
|
+
* The trail amount. Interpreted as dollars if `type` is `DOLLAR`, or a percentage if `type` is `PERCENT`.
|
|
3188
|
+
* @type {string}
|
|
3189
|
+
* @memberof TrailingStop
|
|
3190
|
+
*/
|
|
3191
|
+
'amount': string;
|
|
3192
|
+
/**
|
|
3193
|
+
* Whether the trail `amount` is a dollar amount (`DOLLAR`) or a percentage (`PERCENT`). For example, if `amount` is \"0.60\" and `type` is `DOLLAR`, the stop price will trail the market price by $0.60. If `amount` is \"5\" and `type` is `PERCENT`, the stop price will trail the market price by 5%.
|
|
3194
|
+
* @type {string}
|
|
3195
|
+
* @memberof TrailingStop
|
|
3196
|
+
*/
|
|
3197
|
+
'type': TrailingStopTypeEnum;
|
|
3198
|
+
}
|
|
3199
|
+
type TrailingStopTypeEnum = 'DOLLAR' | 'PERCENT';
|
|
3200
|
+
//#endregion
|
|
3201
|
+
//#region models/trailing-stop-limit-order-type.d.ts
|
|
3202
|
+
/**
|
|
3203
|
+
* A trailing stop-limit order. The stop price trails the market price by `trail`; once triggered, a limit order at `limit_price` is placed.
|
|
3204
|
+
* @export
|
|
3205
|
+
* @interface TrailingStopLimitOrderType
|
|
3206
|
+
*/
|
|
3207
|
+
interface TrailingStopLimitOrderType {
|
|
3208
|
+
[key: string]: unknown;
|
|
3209
|
+
/**
|
|
3210
|
+
*
|
|
3211
|
+
* @type {string}
|
|
3212
|
+
* @memberof TrailingStopLimitOrderType
|
|
3213
|
+
*/
|
|
3214
|
+
'kind': TrailingStopLimitOrderTypeKindEnum;
|
|
3215
|
+
/**
|
|
3216
|
+
*
|
|
3217
|
+
* @type {TrailingStop}
|
|
3218
|
+
* @memberof TrailingStopLimitOrderType
|
|
3219
|
+
*/
|
|
3220
|
+
'trail': TrailingStop;
|
|
3221
|
+
/**
|
|
3222
|
+
* The limit price that applies once triggered.
|
|
3223
|
+
* @type {string}
|
|
3224
|
+
* @memberof TrailingStopLimitOrderType
|
|
3225
|
+
*/
|
|
3226
|
+
'limit_price': string;
|
|
3227
|
+
/**
|
|
3228
|
+
* The current trigger price, when the brokerage reports it.
|
|
3229
|
+
* @type {string}
|
|
3230
|
+
* @memberof TrailingStopLimitOrderType
|
|
3231
|
+
*/
|
|
3232
|
+
'stop_price'?: string | null;
|
|
3233
|
+
}
|
|
3234
|
+
type TrailingStopLimitOrderTypeKindEnum = 'trailing_stop_limit';
|
|
3235
|
+
//#endregion
|
|
3236
|
+
//#region models/trailing-stop-order-type.d.ts
|
|
3237
|
+
/**
|
|
3238
|
+
* A trailing stop order. The stop price trails the market price by `trail`.
|
|
3239
|
+
* @export
|
|
3240
|
+
* @interface TrailingStopOrderType
|
|
3241
|
+
*/
|
|
3242
|
+
interface TrailingStopOrderType {
|
|
3243
|
+
[key: string]: unknown;
|
|
3244
|
+
/**
|
|
3245
|
+
*
|
|
3246
|
+
* @type {string}
|
|
3247
|
+
* @memberof TrailingStopOrderType
|
|
3248
|
+
*/
|
|
3249
|
+
'kind': TrailingStopOrderTypeKindEnum;
|
|
3250
|
+
/**
|
|
3251
|
+
*
|
|
3252
|
+
* @type {TrailingStop}
|
|
3253
|
+
* @memberof TrailingStopOrderType
|
|
3254
|
+
*/
|
|
3255
|
+
'trail': TrailingStop;
|
|
3256
|
+
/**
|
|
3257
|
+
* The current trigger price, when the brokerage reports it.
|
|
3258
|
+
* @type {string}
|
|
3259
|
+
* @memberof TrailingStopOrderType
|
|
3260
|
+
*/
|
|
3261
|
+
'stop_price'?: string | null;
|
|
3262
|
+
}
|
|
3263
|
+
type TrailingStopOrderTypeKindEnum = 'trailing_stop';
|
|
3264
|
+
//#endregion
|
|
3265
|
+
//#region models/order-type-configuration.d.ts
|
|
3266
|
+
/**
|
|
3267
|
+
* @type OrderTypeConfiguration
|
|
3268
|
+
* The order type and the prices that belong to it. Use `kind` to determine which fields are present.
|
|
3269
|
+
* @export
|
|
3270
|
+
*/
|
|
3271
|
+
type OrderTypeConfiguration = {
|
|
3272
|
+
kind: 'limit';
|
|
3273
|
+
} & LimitOrderType | {
|
|
3274
|
+
kind: 'market';
|
|
3275
|
+
} & MarketOrderType | {
|
|
3276
|
+
kind: 'other';
|
|
3277
|
+
} & OtherOrderType | {
|
|
3278
|
+
kind: 'stop';
|
|
3279
|
+
} & StopOrderType | {
|
|
3280
|
+
kind: 'stop_limit';
|
|
3281
|
+
} & StopLimitOrderType | {
|
|
3282
|
+
kind: 'trailing_stop';
|
|
3283
|
+
} & TrailingStopOrderType | {
|
|
3284
|
+
kind: 'trailing_stop_limit';
|
|
3285
|
+
} & TrailingStopLimitOrderType;
|
|
3286
|
+
//#endregion
|
|
3287
|
+
//#region models/account-order.d.ts
|
|
3288
|
+
/**
|
|
3289
|
+
* A single order. Single-leg orders have exactly one entry in `legs`; multi-leg orders (spreads, strangles, covered calls) have one entry per leg.
|
|
3290
|
+
* @export
|
|
3291
|
+
* @interface AccountOrder
|
|
3292
|
+
*/
|
|
3293
|
+
interface AccountOrder {
|
|
3294
|
+
[key: string]: unknown;
|
|
3295
|
+
/**
|
|
3296
|
+
* Order ID returned by brokerage. This is the unique identifier for the order in the brokerage system.
|
|
3297
|
+
* @type {string}
|
|
3298
|
+
* @memberof AccountOrder
|
|
3299
|
+
*/
|
|
3300
|
+
'brokerage_order_id': string;
|
|
3301
|
+
/**
|
|
3302
|
+
* Indicates the status of an order. SnapTrade does a best effort to map brokerage statuses to statuses in this enum.
|
|
3303
|
+
* @type {AccountOrderRecordStatusV2}
|
|
3304
|
+
* @memberof AccountOrder
|
|
3305
|
+
*/
|
|
3306
|
+
'status': AccountOrderRecordStatusV2;
|
|
3307
|
+
/**
|
|
3308
|
+
*
|
|
3309
|
+
* @type {OrderTypeConfiguration}
|
|
3310
|
+
* @memberof AccountOrder
|
|
3311
|
+
*/
|
|
3312
|
+
'order_type': OrderTypeConfiguration;
|
|
3313
|
+
/**
|
|
3314
|
+
* How long the order remains active. Brokerage values that cannot be mapped to this list are returned as `OTHER`. - `DAY` - valid only for the trading day on which it is placed. - `GTC` - Good Til Canceled. - `FOK` - Fill Or Kill. - `IOC` - Immediate Or Cancel. - `GTD` - Good Til Date; see `expiry_date`. - `MOO` - Market On Open. - `EHP` - Extended Hours P.M. - `EHA` - Extended Hours A.M. - `OTHER` - the brokerage reported a value outside this list.
|
|
3315
|
+
* @type {string}
|
|
3316
|
+
* @memberof AccountOrder
|
|
3317
|
+
*/
|
|
3318
|
+
'time_in_force': AccountOrderTimeInForceEnum;
|
|
3319
|
+
/**
|
|
3320
|
+
* When the order expires, for orders with a `time_in_force` of `GTD`.
|
|
3321
|
+
* @type {string}
|
|
3322
|
+
* @memberof AccountOrder
|
|
3323
|
+
*/
|
|
3324
|
+
'expiry_date'?: string | null;
|
|
3325
|
+
/**
|
|
3326
|
+
* ISO-4217 currency code the order prices are denominated in. For crypto pairs this is the quote asset (for example `USDC` for `ETH-USDC`).
|
|
3327
|
+
* @type {string}
|
|
3328
|
+
* @memberof AccountOrder
|
|
3329
|
+
*/
|
|
3330
|
+
'price_currency'?: string | null;
|
|
3331
|
+
/**
|
|
3332
|
+
* Direction of the net order price. CREDIT means cash is received, DEBIT means cash is paid, EVEN means the net price is zero, and UNKNOWN means the direction could not be determined.
|
|
3333
|
+
* @type {string}
|
|
3334
|
+
* @memberof AccountOrder
|
|
3335
|
+
*/
|
|
3336
|
+
'price_effect': AccountOrderPriceEffectEnum;
|
|
3337
|
+
/**
|
|
3338
|
+
* Total quantity requested. For multi-leg orders this is the number of spreads, not the sum of leg quantities.
|
|
3339
|
+
* @type {string}
|
|
3340
|
+
* @memberof AccountOrder
|
|
3341
|
+
*/
|
|
3342
|
+
'total_quantity'?: string | null;
|
|
3343
|
+
/**
|
|
3344
|
+
* Quantity filled so far.
|
|
3345
|
+
* @type {string}
|
|
3346
|
+
* @memberof AccountOrder
|
|
3347
|
+
*/
|
|
3348
|
+
'filled_quantity'?: string | null;
|
|
3349
|
+
/**
|
|
3350
|
+
* Quantity canceled.
|
|
3351
|
+
* @type {string}
|
|
3352
|
+
* @memberof AccountOrder
|
|
3353
|
+
*/
|
|
3354
|
+
'canceled_quantity'?: string | null;
|
|
3355
|
+
/**
|
|
3356
|
+
* Quantity still open (not yet filled or canceled).
|
|
3357
|
+
* @type {string}
|
|
3358
|
+
* @memberof AccountOrder
|
|
3359
|
+
*/
|
|
3360
|
+
'open_quantity'?: string | null;
|
|
3361
|
+
/**
|
|
3362
|
+
* Average execution price. Per unit for single-leg orders; net price per spread for multi-leg orders.
|
|
3363
|
+
* @type {string}
|
|
3364
|
+
* @memberof AccountOrder
|
|
3365
|
+
*/
|
|
3366
|
+
'execution_price'?: string | null;
|
|
3367
|
+
/**
|
|
3368
|
+
* The time the order was submitted to the brokerage, when the brokerage reports it.
|
|
3369
|
+
* @type {string}
|
|
3370
|
+
* @memberof AccountOrder
|
|
3371
|
+
*/
|
|
3372
|
+
'time_placed'?: string | null;
|
|
3373
|
+
/**
|
|
3374
|
+
* The time the order was last updated at the brokerage, when available.
|
|
3375
|
+
* @type {string}
|
|
3376
|
+
* @memberof AccountOrder
|
|
3377
|
+
*/
|
|
3378
|
+
'time_updated'?: string | null;
|
|
3379
|
+
/**
|
|
3380
|
+
* The time the order was executed, when available.
|
|
3381
|
+
* @type {string}
|
|
3382
|
+
* @memberof AccountOrder
|
|
3383
|
+
*/
|
|
3384
|
+
'time_executed'?: string | null;
|
|
3385
|
+
/**
|
|
3386
|
+
*
|
|
3387
|
+
* @type {AccountOrderGroupNullable}
|
|
3388
|
+
* @memberof AccountOrder
|
|
3389
|
+
*/
|
|
3390
|
+
'group'?: AccountOrderGroupNullable | null;
|
|
3391
|
+
/**
|
|
3392
|
+
* The legs that make up the order. Always has at least one entry.
|
|
3393
|
+
* @type {Array<AccountOrderLeg>}
|
|
3394
|
+
* @memberof AccountOrder
|
|
3395
|
+
*/
|
|
3396
|
+
'legs': Array<AccountOrderLeg>;
|
|
3397
|
+
}
|
|
3398
|
+
type AccountOrderTimeInForceEnum = 'DAY' | 'GTC' | 'FOK' | 'IOC' | 'GTD' | 'MOO' | 'EHP' | 'EHA' | 'OTHER';
|
|
3399
|
+
type AccountOrderPriceEffectEnum = 'CREDIT' | 'DEBIT' | 'EVEN' | 'UNKNOWN';
|
|
3400
|
+
//#endregion
|
|
3401
|
+
//#region models/account-order-group.d.ts
|
|
3402
|
+
/**
|
|
3403
|
+
* Links the orders that make up a complex order (OCO, OTO, OTOCO).
|
|
3404
|
+
* @export
|
|
3405
|
+
* @interface AccountOrderGroup
|
|
3406
|
+
*/
|
|
3407
|
+
interface AccountOrderGroup {
|
|
3408
|
+
[key: string]: unknown;
|
|
3409
|
+
/**
|
|
3410
|
+
* Brokerage-assigned identifier shared by every order in the group.
|
|
3411
|
+
* @type {string}
|
|
3412
|
+
* @memberof AccountOrderGroup
|
|
3413
|
+
*/
|
|
3414
|
+
'id': string;
|
|
3415
|
+
/**
|
|
3416
|
+
*
|
|
3417
|
+
* @type {AccountOrderRecordV2OrderRoleNullable}
|
|
3418
|
+
* @memberof AccountOrderGroup
|
|
3419
|
+
*/
|
|
3420
|
+
'role'?: AccountOrderRecordV2OrderRoleNullable | null;
|
|
3421
|
+
}
|
|
3422
|
+
//#endregion
|
|
3423
|
+
//#region models/account-order-record-leg-instrument.d.ts
|
|
3424
|
+
/**
|
|
3425
|
+
* Instrument metadata for an order leg.
|
|
3426
|
+
* @export
|
|
3427
|
+
* @interface AccountOrderRecordLegInstrument
|
|
3428
|
+
*/
|
|
3429
|
+
interface AccountOrderRecordLegInstrument {
|
|
3430
|
+
[key: string]: unknown;
|
|
3431
|
+
/**
|
|
3432
|
+
* The symbol or ticker for the security.
|
|
3433
|
+
* @type {string}
|
|
3434
|
+
* @memberof AccountOrderRecordLegInstrument
|
|
3435
|
+
*/
|
|
3436
|
+
'symbol'?: string;
|
|
3437
|
+
/**
|
|
3438
|
+
* Human-readable description of the security.
|
|
3439
|
+
* @type {string}
|
|
3440
|
+
* @memberof AccountOrderRecordLegInstrument
|
|
3441
|
+
*/
|
|
3442
|
+
'description'?: string;
|
|
3443
|
+
/**
|
|
3444
|
+
* Type of instrument for the leg. - EQUITY - OPTION - CRYPTO
|
|
3445
|
+
* @type {string}
|
|
3446
|
+
* @memberof AccountOrderRecordLegInstrument
|
|
3447
|
+
*/
|
|
3448
|
+
'asset_type'?: string;
|
|
3449
|
+
/**
|
|
3450
|
+
* Market Identifier Code (MIC) for the exchange on which the instrument trades. Omitted for instruments with no listing exchange, such as index options (VIX, SPX).
|
|
3451
|
+
* @type {string}
|
|
3452
|
+
* @memberof AccountOrderRecordLegInstrument
|
|
3453
|
+
*/
|
|
3454
|
+
'exchange_mic_code'?: string;
|
|
3455
|
+
/**
|
|
3456
|
+
* Financial Instrument Global Identifier (FIGI) if available.
|
|
3457
|
+
* @type {string}
|
|
3458
|
+
* @memberof AccountOrderRecordLegInstrument
|
|
3459
|
+
*/
|
|
3460
|
+
'figi_code'?: string | null;
|
|
3461
|
+
}
|
|
3462
|
+
//#endregion
|
|
3463
|
+
//#region models/account-order-record-leg.d.ts
|
|
3464
|
+
/**
|
|
3465
|
+
* Describes an individual leg that makes up an order in the V2 format.
|
|
3466
|
+
* @export
|
|
3467
|
+
* @interface AccountOrderRecordLeg
|
|
3468
|
+
*/
|
|
3469
|
+
interface AccountOrderRecordLeg {
|
|
3470
|
+
[key: string]: unknown;
|
|
3471
|
+
/**
|
|
3472
|
+
* Brokerage order identifier for this leg, if available.
|
|
3473
|
+
* @type {string}
|
|
3474
|
+
* @memberof AccountOrderRecordLeg
|
|
3475
|
+
*/
|
|
3476
|
+
'leg_id'?: string | null;
|
|
3477
|
+
/**
|
|
3478
|
+
*
|
|
3479
|
+
* @type {AccountOrderRecordLegInstrument}
|
|
3480
|
+
* @memberof AccountOrderRecordLeg
|
|
3481
|
+
*/
|
|
3482
|
+
'instrument'?: AccountOrderRecordLegInstrument;
|
|
3483
|
+
/**
|
|
3484
|
+
* The action describes the intent or side of a trade. - BUY - SELL - BUY_COVER - SELL_SHORT - BUY_TO_OPEN - BUY_TO_CLOSE - SELL_TO_OPEN - SELL_TO_CLOSE
|
|
3485
|
+
* @type {string}
|
|
3486
|
+
* @memberof AccountOrderRecordLeg
|
|
3487
|
+
*/
|
|
3488
|
+
'action'?: string;
|
|
3489
|
+
/**
|
|
3490
|
+
* Execution price for this leg, if available.
|
|
3491
|
+
* @type {string}
|
|
3492
|
+
* @memberof AccountOrderRecordLeg
|
|
3493
|
+
*/
|
|
3494
|
+
'execution_price'?: string | null;
|
|
3495
|
+
/**
|
|
3496
|
+
* The total number of shares or contracts associated with this leg. Can be a decimal number for fractional shares.
|
|
3497
|
+
* @type {string}
|
|
3498
|
+
* @memberof AccountOrderRecordLeg
|
|
3499
|
+
*/
|
|
3500
|
+
'total_quantity'?: string | null;
|
|
3501
|
+
/**
|
|
3502
|
+
* The number of shares or contracts that have been canceled for this leg.
|
|
3503
|
+
* @type {string}
|
|
3504
|
+
* @memberof AccountOrderRecordLeg
|
|
3505
|
+
*/
|
|
3506
|
+
'canceled_quantity'?: string | null;
|
|
3507
|
+
/**
|
|
3508
|
+
* The number of shares or contracts that have been filled for this leg.
|
|
3509
|
+
* @type {string}
|
|
3510
|
+
* @memberof AccountOrderRecordLeg
|
|
3511
|
+
*/
|
|
3512
|
+
'filled_quantity'?: string | null;
|
|
3513
|
+
/**
|
|
3514
|
+
*
|
|
3515
|
+
* @type {AccountOrderRecordStatusV2Nullable}
|
|
3516
|
+
* @memberof AccountOrderRecordLeg
|
|
3517
|
+
*/
|
|
3518
|
+
'status'?: AccountOrderRecordStatusV2Nullable | null;
|
|
3519
|
+
}
|
|
3520
|
+
//#endregion
|
|
3521
|
+
//#region models/account-order-record-nullable.d.ts
|
|
3522
|
+
/**
|
|
3523
|
+
* Describes a single recent order in an account. Each record here represents a single order leg. For multi-leg orders, there will be multiple records.
|
|
3524
|
+
* @export
|
|
3525
|
+
* @interface AccountOrderRecordNullable
|
|
3526
|
+
*/
|
|
3527
|
+
interface AccountOrderRecordNullable {
|
|
3528
|
+
[key: string]: unknown;
|
|
3529
|
+
/**
|
|
3530
|
+
* Order ID returned by brokerage. This is the unique identifier for the order in the brokerage system.
|
|
3531
|
+
* @type {string}
|
|
3532
|
+
* @memberof AccountOrderRecordNullable
|
|
3533
|
+
*/
|
|
3534
|
+
'brokerage_order_id'?: string;
|
|
3535
|
+
/**
|
|
3536
|
+
* The brokerage-assigned identifier that links all orders within a complex order (OCO, OTO, OTOCO) together. Null for non-complex orders or when the brokerage does not return a group identifier.
|
|
3537
|
+
* @type {string}
|
|
3538
|
+
* @memberof AccountOrderRecordNullable
|
|
3539
|
+
*/
|
|
3540
|
+
'brokerage_group_order_id'?: string | null;
|
|
3541
|
+
/**
|
|
3542
|
+
* The role of this order within a complex order group (OCO, OTO, OTOCO). Null for non-complex orders.
|
|
3543
|
+
* @type {string}
|
|
3544
|
+
* @memberof AccountOrderRecordNullable
|
|
3545
|
+
*/
|
|
3546
|
+
'order_role'?: AccountOrderRecordNullableOrderRoleEnum;
|
|
3547
|
+
/**
|
|
3548
|
+
* Indicates the status of an order. SnapTrade does a best effort to map brokerage statuses to statuses in this enum. Possible values include: - NONE - PENDING - ACCEPTED - FAILED - REJECTED - CANCELED - PARTIAL_CANCELED - CANCEL_PENDING - EXECUTED - PARTIAL - REPLACE_PENDING - REPLACED - EXPIRED - QUEUED - TRIGGERED - ACTIVATED
|
|
3549
|
+
* @type {AccountOrderRecordStatus}
|
|
3550
|
+
* @memberof AccountOrderRecordNullable
|
|
3551
|
+
*/
|
|
3552
|
+
'status'?: AccountOrderRecordStatus;
|
|
3553
|
+
/**
|
|
3554
|
+
*
|
|
3555
|
+
* @type {UniversalSymbolNullable}
|
|
3556
|
+
* @memberof AccountOrderRecordNullable
|
|
3557
|
+
*/
|
|
3558
|
+
'universal_symbol'?: UniversalSymbolNullable | null;
|
|
3559
|
+
/**
|
|
3560
|
+
*
|
|
3561
|
+
* @type {OptionsSymbolNullable}
|
|
3562
|
+
* @memberof AccountOrderRecordNullable
|
|
3563
|
+
*/
|
|
3564
|
+
'option_symbol'?: OptionsSymbolNullable | null;
|
|
3565
|
+
/**
|
|
3566
|
+
*
|
|
3567
|
+
* @type {UniversalSymbolNullable}
|
|
3568
|
+
* @memberof AccountOrderRecordNullable
|
|
3569
|
+
*/
|
|
3570
|
+
'quote_universal_symbol'?: UniversalSymbolNullable | null;
|
|
3571
|
+
/**
|
|
3572
|
+
*
|
|
3573
|
+
* @type {CurrencyNullable}
|
|
3574
|
+
* @memberof AccountOrderRecordNullable
|
|
3575
|
+
*/
|
|
3576
|
+
'quote_currency'?: CurrencyNullable | null;
|
|
3577
|
+
/**
|
|
3578
|
+
* The action describes the intent or side of a trade. This is usually `BUY` or `SELL` but can include other potential values like the following depending on the specific brokerage. - BUY - SELL - BUY_COVER - SELL_SHORT - BUY_OPEN - BUY_CLOSE - SELL_OPEN - SELL_CLOSE
|
|
3579
|
+
* @type {string}
|
|
3580
|
+
* @memberof AccountOrderRecordNullable
|
|
3581
|
+
*/
|
|
3582
|
+
'action'?: string;
|
|
3583
|
+
/**
|
|
3584
|
+
* The total number of shares or contracts of the order. This should be the sum of the filled, canceled, and open quantities. Can be a decimal number for fractional shares.
|
|
3585
|
+
* @type {string}
|
|
3586
|
+
* @memberof AccountOrderRecordNullable
|
|
3587
|
+
*/
|
|
3588
|
+
'total_quantity'?: string | null;
|
|
3589
|
+
/**
|
|
3590
|
+
* The number of shares or contracts that are still open (waiting for execution). Can be a decimal number for fractional shares.
|
|
3591
|
+
* @type {string}
|
|
3592
|
+
* @memberof AccountOrderRecordNullable
|
|
3593
|
+
*/
|
|
3594
|
+
'open_quantity'?: string | null;
|
|
3595
|
+
/**
|
|
3596
|
+
* The number of shares or contracts that have been canceled. Can be a decimal number for fractional shares.
|
|
3597
|
+
* @type {string}
|
|
3598
|
+
* @memberof AccountOrderRecordNullable
|
|
3599
|
+
*/
|
|
3600
|
+
'canceled_quantity'?: string | null;
|
|
3601
|
+
/**
|
|
3602
|
+
* The number of shares or contracts that have been filled. Can be a decimal number for fractional shares.
|
|
3603
|
+
* @type {string}
|
|
3604
|
+
* @memberof AccountOrderRecordNullable
|
|
3605
|
+
*/
|
|
3606
|
+
'filled_quantity'?: string | null;
|
|
3607
|
+
/**
|
|
3608
|
+
* The price at which the order was executed. For option orders, this represents the price per share.
|
|
3609
|
+
* @type {string}
|
|
3610
|
+
* @memberof AccountOrderRecordNullable
|
|
3611
|
+
*/
|
|
3612
|
+
'execution_price'?: string | null;
|
|
3613
|
+
/**
|
|
3614
|
+
* The limit price is maximum price one is willing to pay for a buy order or the minimum price one is willing to accept for a sell order. Should only apply to `Limit` and `StopLimit` orders. For option orders, this represents the price per share.
|
|
3615
|
+
* @type {string}
|
|
3616
|
+
* @memberof AccountOrderRecordNullable
|
|
3617
|
+
*/
|
|
3618
|
+
'limit_price'?: string | null;
|
|
3619
|
+
/**
|
|
3620
|
+
* The stop price is the price at which a stop order is triggered. Should only apply to `Stop` and `StopLimit` orders. For option orders, this represents the price per share.
|
|
3621
|
+
* @type {string}
|
|
3622
|
+
* @memberof AccountOrderRecordNullable
|
|
3623
|
+
*/
|
|
3624
|
+
'stop_price'?: string | null;
|
|
3625
|
+
/**
|
|
3626
|
+
*
|
|
3627
|
+
* @type {TrailingStopNullable}
|
|
3628
|
+
* @memberof AccountOrderRecordNullable
|
|
3629
|
+
*/
|
|
3630
|
+
'trailing_stop'?: TrailingStopNullable | null;
|
|
3631
|
+
/**
|
|
3632
|
+
* The type of order placed. The most common values are `Market`, `Limit`, `Stop`, and `StopLimit`. We try our best to map brokerage order types to these values. When mapping fails, we will return the brokerage\'s order type value.
|
|
3633
|
+
* @type {string}
|
|
3634
|
+
* @memberof AccountOrderRecordNullable
|
|
3635
|
+
*/
|
|
3636
|
+
'order_type'?: string | null;
|
|
3637
|
+
/**
|
|
3638
|
+
* The Time in Force type for the order. This field indicates how long the order will remain active before it is executed or expires. We try our best to map brokerage time in force values to the following. When mapping fails, we will return the brokerage\'s time in force value. - `Day` - Day. The order is valid only for the trading day on which it is placed. - `GTC` - Good Til Canceled. The order is valid until it is executed or canceled. - `FOK` - Fill Or Kill. The order must be executed in its entirety immediately or be canceled completely. - `IOC` - Immediate Or Cancel. The order must be executed immediately. Any portion of the order that cannot be filled immediately will be canceled. - `GTD` - Good Til Date. The order is valid until the specified date. - `MOO` - Market On Open. The order is to be executed at the day\'s opening price. - `EHP` - Extended Hours P.M. The order is to be placed during extended hour trading, after markets close.
|
|
3639
|
+
* @type {string}
|
|
3640
|
+
* @memberof AccountOrderRecordNullable
|
|
3641
|
+
*/
|
|
3642
|
+
'time_in_force'?: string;
|
|
3643
|
+
/**
|
|
3644
|
+
* The time the order was placed. This is the time the order was submitted to the brokerage.
|
|
3645
|
+
* @type {string}
|
|
3646
|
+
* @memberof AccountOrderRecordNullable
|
|
3647
|
+
*/
|
|
3648
|
+
'time_placed'?: string;
|
|
3649
|
+
/**
|
|
3650
|
+
* The time the order was last updated in the brokerage system. This value is not always available from the brokerage.
|
|
3651
|
+
* @type {string}
|
|
3652
|
+
* @memberof AccountOrderRecordNullable
|
|
3653
|
+
*/
|
|
3654
|
+
'time_updated'?: string | null;
|
|
3655
|
+
/**
|
|
3656
|
+
* The time the order was executed in the brokerage system. This value is not always available from the brokerage.
|
|
3657
|
+
* @type {string}
|
|
3658
|
+
* @memberof AccountOrderRecordNullable
|
|
3659
|
+
*/
|
|
3660
|
+
'time_executed'?: string | null;
|
|
3661
|
+
/**
|
|
3662
|
+
* The time the order expires. This value is not always available from the brokerage.
|
|
3663
|
+
* @type {string}
|
|
3664
|
+
* @memberof AccountOrderRecordNullable
|
|
3665
|
+
*/
|
|
3666
|
+
'expiry_date'?: string | null;
|
|
3667
|
+
/**
|
|
3668
|
+
* A unique ID for the security within SnapTrade, scoped to the brokerage account that the security belongs to. This is a legacy field and should not be used. Do not rely on this being a stable ID as it can change.
|
|
3669
|
+
* @type {string}
|
|
3670
|
+
* @memberof AccountOrderRecordNullable
|
|
3671
|
+
* @deprecated
|
|
3672
|
+
*/
|
|
3673
|
+
'symbol'?: string;
|
|
3674
|
+
/**
|
|
3675
|
+
*
|
|
3676
|
+
* @type {ChildBrokerageOrderIDsNullable}
|
|
3677
|
+
* @memberof AccountOrderRecordNullable
|
|
3678
|
+
*/
|
|
3679
|
+
'child_brokerage_order_ids'?: ChildBrokerageOrderIDsNullable | null;
|
|
3680
|
+
}
|
|
3681
|
+
type AccountOrderRecordNullableOrderRoleEnum = 'TRIGGER' | 'CONDITIONAL' | 'PEER';
|
|
3682
|
+
//#endregion
|
|
3683
|
+
//#region models/account-order-record-v2.d.ts
|
|
3684
|
+
/**
|
|
3685
|
+
* Describes a single order in the standardized V2 format.
|
|
3686
|
+
* @export
|
|
3687
|
+
* @interface AccountOrderRecordV2
|
|
3688
|
+
*/
|
|
3689
|
+
interface AccountOrderRecordV2 {
|
|
3690
|
+
[key: string]: unknown;
|
|
3691
|
+
/**
|
|
3692
|
+
* Order ID returned by brokerage. This is the unique identifier for the order in the brokerage system.
|
|
3693
|
+
* @type {string}
|
|
3694
|
+
* @memberof AccountOrderRecordV2
|
|
3695
|
+
*/
|
|
3696
|
+
'brokerage_order_id'?: string;
|
|
3697
|
+
/**
|
|
3698
|
+
* The brokerage-assigned identifier that links all orders within a complex order (OCO, OTO, OTOCO) together. Null for non-complex orders or when the brokerage does not return a group identifier.
|
|
3699
|
+
* @type {string}
|
|
3700
|
+
* @memberof AccountOrderRecordV2
|
|
3701
|
+
*/
|
|
3702
|
+
'brokerage_group_order_id'?: string | null;
|
|
3703
|
+
/**
|
|
3704
|
+
*
|
|
3705
|
+
* @type {AccountOrderRecordV2OrderRoleNullable}
|
|
3706
|
+
* @memberof AccountOrderRecordV2
|
|
3707
|
+
*/
|
|
3708
|
+
'order_role'?: AccountOrderRecordV2OrderRoleNullable | null;
|
|
3709
|
+
/**
|
|
3710
|
+
* Indicates the status of an order. SnapTrade does a best effort to map brokerage statuses to statuses in this enum. Possible values include: - NONE - PENDING - ACCEPTED - FAILED - REJECTED - CANCELED - PARTIAL_CANCELED - CANCEL_PENDING - EXECUTED - PARTIAL - REPLACE_PENDING - REPLACED - EXPIRED - QUEUED - TRIGGERED - ACTIVATED
|
|
3711
|
+
* @type {AccountOrderRecordStatus}
|
|
3712
|
+
* @memberof AccountOrderRecordV2
|
|
3713
|
+
*/
|
|
3714
|
+
'status'?: AccountOrderRecordStatus;
|
|
3715
|
+
/**
|
|
3716
|
+
* The type of order placed. - `MARKET` - `LIMIT` - `STOP` - `STOP_LIMIT`
|
|
3213
3717
|
* @type {string}
|
|
3214
|
-
* @memberof
|
|
3718
|
+
* @memberof AccountOrderRecordV2
|
|
3215
3719
|
*/
|
|
3216
|
-
'
|
|
3720
|
+
'order_type'?: string | null;
|
|
3217
3721
|
/**
|
|
3218
|
-
*
|
|
3722
|
+
* The Time in Force type for the order. This field indicates how long the order will remain active before it is executed or expires. We try our best to map brokerage time in force values to the following. When mapping fails, we will return the brokerage\'s time in force value. - `DAY` - Day. The order is valid only for the trading day on which it is placed. - `GTC` - Good Til Canceled. The order is valid until it is executed or canceled. - `FOK` - Fill Or Kill. The order must be executed in its entirety immediately or be canceled completely. - `IOC` - Immediate Or Cancel. The order must be executed immediately. Any portion of the order that cannot be filled immediately will be canceled. - `GTD` - Good Til Date. The order is valid until the specified date. - `MOO` - Market On Open. The order is to be executed at the day\'s opening price. - `EHP` - Extended Hours P.M. The order is to be placed during extended hour trading, after markets close.
|
|
3219
3723
|
* @type {string}
|
|
3220
|
-
* @memberof
|
|
3724
|
+
* @memberof AccountOrderRecordV2
|
|
3221
3725
|
*/
|
|
3222
|
-
'
|
|
3726
|
+
'time_in_force'?: string;
|
|
3223
3727
|
/**
|
|
3224
|
-
*
|
|
3728
|
+
* The time the order was placed. This is the time the order was submitted to the brokerage.
|
|
3225
3729
|
* @type {string}
|
|
3226
|
-
* @memberof
|
|
3730
|
+
* @memberof AccountOrderRecordV2
|
|
3227
3731
|
*/
|
|
3228
|
-
'
|
|
3732
|
+
'time_placed'?: string;
|
|
3229
3733
|
/**
|
|
3230
|
-
*
|
|
3734
|
+
* The time the order was executed in the brokerage system. This value is not always available from the brokerage.
|
|
3231
3735
|
* @type {string}
|
|
3232
|
-
* @memberof
|
|
3736
|
+
* @memberof AccountOrderRecordV2
|
|
3233
3737
|
*/
|
|
3234
|
-
'
|
|
3738
|
+
'time_executed'?: string | null;
|
|
3235
3739
|
/**
|
|
3236
|
-
*
|
|
3740
|
+
* Price currency code for the order.
|
|
3237
3741
|
* @type {string}
|
|
3238
|
-
* @memberof
|
|
3742
|
+
* @memberof AccountOrderRecordV2
|
|
3239
3743
|
*/
|
|
3240
|
-
'
|
|
3744
|
+
'price_currency'?: string;
|
|
3241
3745
|
/**
|
|
3242
|
-
*
|
|
3746
|
+
* Direction of the net order price. CREDIT means cash is received, DEBIT means cash is paid, EVEN means the net price is zero, and UNKNOWN means the direction could not be determined.
|
|
3243
3747
|
* @type {string}
|
|
3244
|
-
* @memberof
|
|
3748
|
+
* @memberof AccountOrderRecordV2
|
|
3245
3749
|
*/
|
|
3246
|
-
'
|
|
3750
|
+
'price_effect': AccountOrderRecordV2PriceEffectEnum;
|
|
3247
3751
|
/**
|
|
3248
|
-
*
|
|
3752
|
+
* The price at which the order was executed.
|
|
3249
3753
|
* @type {string}
|
|
3250
|
-
* @memberof
|
|
3754
|
+
* @memberof AccountOrderRecordV2
|
|
3251
3755
|
*/
|
|
3252
|
-
'
|
|
3756
|
+
'execution_price'?: string | null;
|
|
3253
3757
|
/**
|
|
3254
|
-
*
|
|
3758
|
+
* The limit price is maximum price one is willing to pay for a buy order or the minimum price one is willing to accept for a sell order. Should only apply to `Limit` and `StopLimit` orders.
|
|
3255
3759
|
* @type {string}
|
|
3256
|
-
* @memberof
|
|
3760
|
+
* @memberof AccountOrderRecordV2
|
|
3257
3761
|
*/
|
|
3258
|
-
'
|
|
3762
|
+
'limit_price'?: string | null;
|
|
3763
|
+
/**
|
|
3764
|
+
* The stop price is the price at which a stop order is triggered. Should only apply to `Stop` and `StopLimit` orders.
|
|
3765
|
+
* @type {string}
|
|
3766
|
+
* @memberof AccountOrderRecordV2
|
|
3767
|
+
*/
|
|
3768
|
+
'stop_price'?: string | null;
|
|
3259
3769
|
/**
|
|
3260
3770
|
*
|
|
3261
|
-
* @type {
|
|
3262
|
-
* @memberof
|
|
3771
|
+
* @type {TrailingStopNullable}
|
|
3772
|
+
* @memberof AccountOrderRecordV2
|
|
3263
3773
|
*/
|
|
3264
|
-
'
|
|
3774
|
+
'trailing_stop'?: TrailingStopNullable | null;
|
|
3775
|
+
/**
|
|
3776
|
+
* List of legs that make up the order.
|
|
3777
|
+
* @type {Array<AccountOrderRecordLeg>}
|
|
3778
|
+
* @memberof AccountOrderRecordV2
|
|
3779
|
+
*/
|
|
3780
|
+
'legs'?: Array<AccountOrderRecordLeg>;
|
|
3265
3781
|
}
|
|
3266
|
-
type
|
|
3267
|
-
type OptionInstrumentOptionTypeEnum = 'CALL' | 'PUT';
|
|
3782
|
+
type AccountOrderRecordV2PriceEffectEnum = 'CREDIT' | 'DEBIT' | 'EVEN' | 'UNKNOWN';
|
|
3268
3783
|
//#endregion
|
|
3269
|
-
//#region models/
|
|
3784
|
+
//#region models/account-order-record-v2-order-role.d.ts
|
|
3270
3785
|
/**
|
|
3271
|
-
*
|
|
3272
|
-
* The listed stock or ETF underlying a tokenized asset.
|
|
3786
|
+
* The role of an order within a complex order group (OCO, OTO, OTOCO).
|
|
3273
3787
|
* @export
|
|
3788
|
+
* @enum {string}
|
|
3274
3789
|
*/
|
|
3275
|
-
type
|
|
3276
|
-
kind: 'etf';
|
|
3277
|
-
} & EtfInstrument | {
|
|
3278
|
-
kind: 'stock';
|
|
3279
|
-
} & StockInstrument;
|
|
3790
|
+
type AccountOrderRecordV2OrderRole = 'TRIGGER' | 'CONDITIONAL' | 'PEER';
|
|
3280
3791
|
//#endregion
|
|
3281
|
-
//#region models/
|
|
3792
|
+
//#region models/account-orders-v2-response.d.ts
|
|
3282
3793
|
/**
|
|
3283
|
-
*
|
|
3794
|
+
* Contains a standardized list of account orders in the V2 format.
|
|
3284
3795
|
* @export
|
|
3285
|
-
* @interface
|
|
3796
|
+
* @interface AccountOrdersV2Response
|
|
3286
3797
|
*/
|
|
3287
|
-
interface
|
|
3798
|
+
interface AccountOrdersV2Response {
|
|
3288
3799
|
[key: string]: unknown;
|
|
3289
3800
|
/**
|
|
3290
|
-
*
|
|
3291
|
-
* @type {
|
|
3292
|
-
* @memberof
|
|
3293
|
-
*/
|
|
3294
|
-
'kind': TokenizedAssetInstrumentKindEnum;
|
|
3295
|
-
/**
|
|
3296
|
-
* Unique identifier for the canonical tokenized asset wrapper.
|
|
3297
|
-
* @type {string}
|
|
3298
|
-
* @memberof TokenizedAssetInstrument
|
|
3299
|
-
*/
|
|
3300
|
-
'id': string;
|
|
3301
|
-
/**
|
|
3302
|
-
* Display symbol of the underlying stock or ETF, not a token-specific ticker.
|
|
3303
|
-
* @type {string}
|
|
3304
|
-
* @memberof TokenizedAssetInstrument
|
|
3305
|
-
*/
|
|
3306
|
-
'symbol': string;
|
|
3307
|
-
/**
|
|
3308
|
-
* Display name of the underlying stock or ETF, when available.
|
|
3309
|
-
* @type {string}
|
|
3310
|
-
* @memberof TokenizedAssetInstrument
|
|
3311
|
-
*/
|
|
3312
|
-
'description'?: string;
|
|
3313
|
-
/**
|
|
3314
|
-
*
|
|
3315
|
-
* @type {UnderlyingTokenizedAssetInstrument}
|
|
3316
|
-
* @memberof TokenizedAssetInstrument
|
|
3801
|
+
* List of orders returned by the endpoint.
|
|
3802
|
+
* @type {Array<AccountOrderRecordV2>}
|
|
3803
|
+
* @memberof AccountOrdersV2Response
|
|
3317
3804
|
*/
|
|
3318
|
-
'
|
|
3805
|
+
'orders': Array<AccountOrderRecordV2>;
|
|
3319
3806
|
}
|
|
3320
|
-
type TokenizedAssetInstrumentKindEnum = 'tokenized_asset';
|
|
3321
|
-
//#endregion
|
|
3322
|
-
//#region models/instrument.d.ts
|
|
3323
|
-
/**
|
|
3324
|
-
* @type Instrument
|
|
3325
|
-
* Instrument metadata for a V2 position. Use `kind` to determine which schema is present.
|
|
3326
|
-
* @export
|
|
3327
|
-
*/
|
|
3328
|
-
type Instrument = {
|
|
3329
|
-
kind: 'adr';
|
|
3330
|
-
} & AdrInstrument | {
|
|
3331
|
-
kind: 'bond';
|
|
3332
|
-
} & OtherInstrument | {
|
|
3333
|
-
kind: 'cef';
|
|
3334
|
-
} & CefInstrument | {
|
|
3335
|
-
kind: 'cfd';
|
|
3336
|
-
} & CfdInstrument | {
|
|
3337
|
-
kind: 'crypto';
|
|
3338
|
-
} & CryptoInstrument | {
|
|
3339
|
-
kind: 'etf';
|
|
3340
|
-
} & EtfInstrument | {
|
|
3341
|
-
kind: 'future';
|
|
3342
|
-
} & FutureInstrument | {
|
|
3343
|
-
kind: 'future_option';
|
|
3344
|
-
} & FutureOptionInstrument | {
|
|
3345
|
-
kind: 'mutualfund';
|
|
3346
|
-
} & MutualFundInstrument | {
|
|
3347
|
-
kind: 'option';
|
|
3348
|
-
} & OptionInstrument | {
|
|
3349
|
-
kind: 'other';
|
|
3350
|
-
} & OtherInstrument | {
|
|
3351
|
-
kind: 'stock';
|
|
3352
|
-
} & StockInstrument | {
|
|
3353
|
-
kind: 'tokenized_asset';
|
|
3354
|
-
} & TokenizedAssetInstrument;
|
|
3355
3807
|
//#endregion
|
|
3356
3808
|
//#region models/account-position.d.ts
|
|
3357
3809
|
/**
|
|
@@ -3681,6 +4133,44 @@ type ActionStrict = 'BUY' | 'SELL';
|
|
|
3681
4133
|
*/
|
|
3682
4134
|
type ActionStrictWithOptions = 'BUY' | 'SELL' | 'BUY_TO_OPEN' | 'BUY_TO_CLOSE' | 'SELL_TO_OPEN' | 'SELL_TO_CLOSE';
|
|
3683
4135
|
//#endregion
|
|
4136
|
+
//#region models/all-account-orders-response-data-freshness.d.ts
|
|
4137
|
+
/**
|
|
4138
|
+
* Metadata describing freshness of the returned orders data.
|
|
4139
|
+
* @export
|
|
4140
|
+
* @interface AllAccountOrdersResponseDataFreshness
|
|
4141
|
+
*/
|
|
4142
|
+
interface AllAccountOrdersResponseDataFreshness {
|
|
4143
|
+
[key: string]: unknown;
|
|
4144
|
+
/**
|
|
4145
|
+
* The time the returned orders data was fetched from the brokerage.
|
|
4146
|
+
* @type {string}
|
|
4147
|
+
* @memberof AllAccountOrdersResponseDataFreshness
|
|
4148
|
+
*/
|
|
4149
|
+
'as_of': string;
|
|
4150
|
+
}
|
|
4151
|
+
//#endregion
|
|
4152
|
+
//#region models/all-account-orders-response.d.ts
|
|
4153
|
+
/**
|
|
4154
|
+
* Orders in the `kind`-discriminated format returned by `/accounts/{accountId}/orders/all`.
|
|
4155
|
+
* @export
|
|
4156
|
+
* @interface AllAccountOrdersResponse
|
|
4157
|
+
*/
|
|
4158
|
+
interface AllAccountOrdersResponse {
|
|
4159
|
+
[key: string]: unknown;
|
|
4160
|
+
/**
|
|
4161
|
+
* Orders returned for the request.
|
|
4162
|
+
* @type {Array<AccountOrder>}
|
|
4163
|
+
* @memberof AllAccountOrdersResponse
|
|
4164
|
+
*/
|
|
4165
|
+
'results': Array<AccountOrder>;
|
|
4166
|
+
/**
|
|
4167
|
+
*
|
|
4168
|
+
* @type {AllAccountOrdersResponseDataFreshness}
|
|
4169
|
+
* @memberof AllAccountOrdersResponse
|
|
4170
|
+
*/
|
|
4171
|
+
'data_freshness': AllAccountOrdersResponseDataFreshness;
|
|
4172
|
+
}
|
|
4173
|
+
//#endregion
|
|
3684
4174
|
//#region models/all-account-positions-response-data-freshness.d.ts
|
|
3685
4175
|
/**
|
|
3686
4176
|
* Metadata describing freshness of the returned positions data.
|
|
@@ -8004,29 +8494,6 @@ interface TradingSearchCryptocurrencyPairInstruments200Response {
|
|
|
8004
8494
|
'items': Array<CryptocurrencyPair>;
|
|
8005
8495
|
}
|
|
8006
8496
|
//#endregion
|
|
8007
|
-
//#region models/trailing-stop.d.ts
|
|
8008
|
-
/**
|
|
8009
|
-
* Trail configuration for trailing stop orders.
|
|
8010
|
-
* @export
|
|
8011
|
-
* @interface TrailingStop
|
|
8012
|
-
*/
|
|
8013
|
-
interface TrailingStop {
|
|
8014
|
-
[key: string]: unknown;
|
|
8015
|
-
/**
|
|
8016
|
-
* The trail amount. Interpreted as dollars if `type` is `DOLLAR`, or a percentage if `type` is `PERCENT`.
|
|
8017
|
-
* @type {string}
|
|
8018
|
-
* @memberof TrailingStop
|
|
8019
|
-
*/
|
|
8020
|
-
'amount': string;
|
|
8021
|
-
/**
|
|
8022
|
-
* Whether the trail `amount` is a dollar amount (`DOLLAR`) or a percentage (`PERCENT`). For example, if `amount` is \"0.60\" and `type` is `DOLLAR`, the stop price will trail the market price by $0.60. If `amount` is \"5\" and `type` is `PERCENT`, the stop price will trail the market price by 5%.
|
|
8023
|
-
* @type {string}
|
|
8024
|
-
* @memberof TrailingStop
|
|
8025
|
-
*/
|
|
8026
|
-
'type': TrailingStopTypeEnum;
|
|
8027
|
-
}
|
|
8028
|
-
type TrailingStopTypeEnum = 'DOLLAR' | 'PERCENT';
|
|
8029
|
-
//#endregion
|
|
8030
8497
|
//#region models/usexchange.d.ts
|
|
8031
8498
|
/**
|
|
8032
8499
|
* US Stock Exchange
|
|
@@ -8278,7 +8745,7 @@ declare const AccountInformationApiAxiosParamCreator: (configuration?: Configura
|
|
|
8278
8745
|
getAccountBalanceHistory: (accountId: string, userId?: string, userSecret?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
8279
8746
|
/**
|
|
8280
8747
|
* Returns the account\'s balances in a single snapshot: total net value, cash per currency, buying power, and margin details for margin accounts. Every field is always present and is `null` when the institution doesn\'t report it. **Beta:** this endpoint is only available for partners it has been enabled for. Please contact the SnapTrade team to enable it. The response schema may change. Check your API key on the [Customer Dashboard billing page](https://dashboard.snaptrade.com/settings/billing) to see if you have real-time data access: - If you do, this endpoint returns real-time data. - If you don\'t, Daily data is cached and refreshed once a day. Exact refresh timing may vary by institution. If you need real-time, use the [manual refresh](/reference/Connections/Connections_refreshBrokerageAuthorization) endpoint. `data_freshness.as_of` is the time the returned data was fetched from the institution. If the connection has become disabled, it can no longer access the latest data from the institution, but will continue to return the last available cached state. Please see [this guide](/docs/fix-broken-connections) on how to fix a disabled connection.
|
|
8281
|
-
* @summary
|
|
8748
|
+
* @summary List account balances (V2)
|
|
8282
8749
|
* @param {string} accountId
|
|
8283
8750
|
* @param {string} [userId]
|
|
8284
8751
|
* @param {string} [userSecret]
|
|
@@ -8436,7 +8903,7 @@ declare const AccountInformationApiFp: <TAuth extends AuthMode>(configuration?:
|
|
|
8436
8903
|
getAccountBalanceHistory(...args: AccountInformationApiGetAccountBalanceHistoryArgs<TAuth>): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<AccountValueHistoryResponse, unknown>>>;
|
|
8437
8904
|
/**
|
|
8438
8905
|
* Returns the account\'s balances in a single snapshot: total net value, cash per currency, buying power, and margin details for margin accounts. Every field is always present and is `null` when the institution doesn\'t report it. **Beta:** this endpoint is only available for partners it has been enabled for. Please contact the SnapTrade team to enable it. The response schema may change. Check your API key on the [Customer Dashboard billing page](https://dashboard.snaptrade.com/settings/billing) to see if you have real-time data access: - If you do, this endpoint returns real-time data. - If you don\'t, Daily data is cached and refreshed once a day. Exact refresh timing may vary by institution. If you need real-time, use the [manual refresh](/reference/Connections/Connections_refreshBrokerageAuthorization) endpoint. `data_freshness.as_of` is the time the returned data was fetched from the institution. If the connection has become disabled, it can no longer access the latest data from the institution, but will continue to return the last available cached state. Please see [this guide](/docs/fix-broken-connections) on how to fix a disabled connection.
|
|
8439
|
-
* @summary
|
|
8906
|
+
* @summary List account balances (V2)
|
|
8440
8907
|
* @param {AccountInformationApiGetAccountBalancesV2Request<TAuth>} requestParameters Request parameters.
|
|
8441
8908
|
* @param {*} [options] Override http request option.
|
|
8442
8909
|
* @throws {RequiredError}
|
|
@@ -8565,7 +9032,7 @@ declare const AccountInformationApiFactory: <TAuth extends AuthMode>(configurati
|
|
|
8565
9032
|
getAccountBalanceHistory(...args: AccountInformationApiGetAccountBalanceHistoryArgs<TAuth>): Promise<AxiosResponse<AccountValueHistoryResponse, unknown>>;
|
|
8566
9033
|
/**
|
|
8567
9034
|
* Returns the account\'s balances in a single snapshot: total net value, cash per currency, buying power, and margin details for margin accounts. Every field is always present and is `null` when the institution doesn\'t report it. **Beta:** this endpoint is only available for partners it has been enabled for. Please contact the SnapTrade team to enable it. The response schema may change. Check your API key on the [Customer Dashboard billing page](https://dashboard.snaptrade.com/settings/billing) to see if you have real-time data access: - If you do, this endpoint returns real-time data. - If you don\'t, Daily data is cached and refreshed once a day. Exact refresh timing may vary by institution. If you need real-time, use the [manual refresh](/reference/Connections/Connections_refreshBrokerageAuthorization) endpoint. `data_freshness.as_of` is the time the returned data was fetched from the institution. If the connection has become disabled, it can no longer access the latest data from the institution, but will continue to return the last available cached state. Please see [this guide](/docs/fix-broken-connections) on how to fix a disabled connection.
|
|
8568
|
-
* @summary
|
|
9035
|
+
* @summary List account balances (V2)
|
|
8569
9036
|
* @param {AccountInformationApiGetAccountBalancesV2Request<TAuth>} requestParameters Request parameters.
|
|
8570
9037
|
* @param {*} [options] Override http request option.
|
|
8571
9038
|
* @throws {RequiredError}
|
|
@@ -9143,7 +9610,7 @@ declare class AccountInformationApiGenerated<TAuth extends AuthMode> extends Bas
|
|
|
9143
9610
|
getAccountBalanceHistory(...args: AccountInformationApiGetAccountBalanceHistoryArgs<TAuth>): Promise<AxiosResponse<AccountValueHistoryResponse, unknown, {}, any>>;
|
|
9144
9611
|
/**
|
|
9145
9612
|
* Returns the account\'s balances in a single snapshot: total net value, cash per currency, buying power, and margin details for margin accounts. Every field is always present and is `null` when the institution doesn\'t report it. **Beta:** this endpoint is only available for partners it has been enabled for. Please contact the SnapTrade team to enable it. The response schema may change. Check your API key on the [Customer Dashboard billing page](https://dashboard.snaptrade.com/settings/billing) to see if you have real-time data access: - If you do, this endpoint returns real-time data. - If you don\'t, Daily data is cached and refreshed once a day. Exact refresh timing may vary by institution. If you need real-time, use the [manual refresh](/reference/Connections/Connections_refreshBrokerageAuthorization) endpoint. `data_freshness.as_of` is the time the returned data was fetched from the institution. If the connection has become disabled, it can no longer access the latest data from the institution, but will continue to return the last available cached state. Please see [this guide](/docs/fix-broken-connections) on how to fix a disabled connection.
|
|
9146
|
-
* @summary
|
|
9613
|
+
* @summary List account balances (V2)
|
|
9147
9614
|
* @param {AccountInformationApiGetAccountBalancesV2Request<TAuth>} requestParameters Request parameters.
|
|
9148
9615
|
* @param {*} [options] Override http request option.
|
|
9149
9616
|
* @throws {RequiredError}
|
|
@@ -10190,6 +10657,18 @@ declare const ExperimentalEndpointsApiAxiosParamCreator: (configuration?: Config
|
|
|
10190
10657
|
* @throws {RequiredError}
|
|
10191
10658
|
*/
|
|
10192
10659
|
cancelSubscription: (tradeDetectionCancelSubscriptionRequest: TradeDetectionCancelSubscriptionRequest, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
10660
|
+
/**
|
|
10661
|
+
* Returns a list of recent orders in the specified account, in the same `kind`-discriminated format as `/accounts/{accountId}/positions/all`. Every order carries a `legs` list with at least one leg. Each leg\'s `instrument` uses the same `Instrument` union as positions; switch on `instrument.kind` to know which fields are present. Multi-leg orders (spreads, strangles, covered calls) are a single order with multiple legs. Orders that belong to a complex order group (OCO, OTO, OTOCO) share a `group.id`. `order_type` is an object discriminated by `kind`. Each kind declares the price fields it requires (`limit_price` on `limit`, `stop_price` on `stop`, both on `stop_limit`, `trail` on `trailing_stop`), so a consumer never has to null-check a price that cannot exist for that kind. When the brokerage reports an order type we cannot normalize, `kind` is `other` and the brokerage\'s own label is in `raw_type`. **Experimental:** this endpoint may change without notice. If the connection has become disabled, it can no longer access the latest data from the brokerage, but will continue to return the last available cached state. Please see [this guide](/docs/fix-broken-connections) on how to fix a disabled connection.
|
|
10662
|
+
* @summary List all account orders
|
|
10663
|
+
* @param {string} accountId
|
|
10664
|
+
* @param {'all' | 'open' | 'executed'} [state] defaults to \"all\"
|
|
10665
|
+
* @param {number} [days] Number of days in the past to fetch the most recent orders. Defaults to the last 30 days if no value is passed in. Values greater than 90 will be capped at 90.
|
|
10666
|
+
* @param {string} [userId]
|
|
10667
|
+
* @param {string} [userSecret]
|
|
10668
|
+
* @param {*} [options] Override http request option.
|
|
10669
|
+
* @throws {RequiredError}
|
|
10670
|
+
*/
|
|
10671
|
+
getAllAccountOrders: (accountId: string, state?: "all" | "open" | "executed", days?: number, userId?: string, userSecret?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
|
|
10193
10672
|
/**
|
|
10194
10673
|
* Returns the detail of a single order using the brokerage order ID provided as a path parameter. The V2 order response format includes all legs of the order in the `legs` list field. If the order is single legged, `legs` will be a list of one leg. This endpoint is always realtime and does not rely on cached data. This endpoint only returns orders placed through SnapTrade. In other words, orders placed outside of the SnapTrade network are not returned by this endpoint.
|
|
10195
10674
|
* @summary Get account order detail (V2)
|
|
@@ -10264,6 +10743,14 @@ declare const ExperimentalEndpointsApiFp: <TAuth extends AuthMode>(configuration
|
|
|
10264
10743
|
* @throws {RequiredError}
|
|
10265
10744
|
*/
|
|
10266
10745
|
cancelSubscription(...args: ExperimentalEndpointsApiCancelSubscriptionArgs<TAuth>): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<TradeDetectionCancelSubscriptionResponse, unknown>>>;
|
|
10746
|
+
/**
|
|
10747
|
+
* Returns a list of recent orders in the specified account, in the same `kind`-discriminated format as `/accounts/{accountId}/positions/all`. Every order carries a `legs` list with at least one leg. Each leg\'s `instrument` uses the same `Instrument` union as positions; switch on `instrument.kind` to know which fields are present. Multi-leg orders (spreads, strangles, covered calls) are a single order with multiple legs. Orders that belong to a complex order group (OCO, OTO, OTOCO) share a `group.id`. `order_type` is an object discriminated by `kind`. Each kind declares the price fields it requires (`limit_price` on `limit`, `stop_price` on `stop`, both on `stop_limit`, `trail` on `trailing_stop`), so a consumer never has to null-check a price that cannot exist for that kind. When the brokerage reports an order type we cannot normalize, `kind` is `other` and the brokerage\'s own label is in `raw_type`. **Experimental:** this endpoint may change without notice. If the connection has become disabled, it can no longer access the latest data from the brokerage, but will continue to return the last available cached state. Please see [this guide](/docs/fix-broken-connections) on how to fix a disabled connection.
|
|
10748
|
+
* @summary List all account orders
|
|
10749
|
+
* @param {ExperimentalEndpointsApiGetAllAccountOrdersRequest<TAuth>} requestParameters Request parameters.
|
|
10750
|
+
* @param {*} [options] Override http request option.
|
|
10751
|
+
* @throws {RequiredError}
|
|
10752
|
+
*/
|
|
10753
|
+
getAllAccountOrders(...args: ExperimentalEndpointsApiGetAllAccountOrdersArgs<TAuth>): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<AllAccountOrdersResponse, unknown>>>;
|
|
10267
10754
|
/**
|
|
10268
10755
|
* Returns the detail of a single order using the brokerage order ID provided as a path parameter. The V2 order response format includes all legs of the order in the `legs` list field. If the order is single legged, `legs` will be a list of one leg. This endpoint is always realtime and does not rely on cached data. This endpoint only returns orders placed through SnapTrade. In other words, orders placed outside of the SnapTrade network are not returned by this endpoint.
|
|
10269
10756
|
* @summary Get account order detail (V2)
|
|
@@ -10325,6 +10812,14 @@ declare const ExperimentalEndpointsApiFactory: <TAuth extends AuthMode>(configur
|
|
|
10325
10812
|
* @throws {RequiredError}
|
|
10326
10813
|
*/
|
|
10327
10814
|
cancelSubscription(...args: ExperimentalEndpointsApiCancelSubscriptionArgs<TAuth>): Promise<AxiosResponse<TradeDetectionCancelSubscriptionResponse, unknown>>;
|
|
10815
|
+
/**
|
|
10816
|
+
* Returns a list of recent orders in the specified account, in the same `kind`-discriminated format as `/accounts/{accountId}/positions/all`. Every order carries a `legs` list with at least one leg. Each leg\'s `instrument` uses the same `Instrument` union as positions; switch on `instrument.kind` to know which fields are present. Multi-leg orders (spreads, strangles, covered calls) are a single order with multiple legs. Orders that belong to a complex order group (OCO, OTO, OTOCO) share a `group.id`. `order_type` is an object discriminated by `kind`. Each kind declares the price fields it requires (`limit_price` on `limit`, `stop_price` on `stop`, both on `stop_limit`, `trail` on `trailing_stop`), so a consumer never has to null-check a price that cannot exist for that kind. When the brokerage reports an order type we cannot normalize, `kind` is `other` and the brokerage\'s own label is in `raw_type`. **Experimental:** this endpoint may change without notice. If the connection has become disabled, it can no longer access the latest data from the brokerage, but will continue to return the last available cached state. Please see [this guide](/docs/fix-broken-connections) on how to fix a disabled connection.
|
|
10817
|
+
* @summary List all account orders
|
|
10818
|
+
* @param {ExperimentalEndpointsApiGetAllAccountOrdersRequest<TAuth>} requestParameters Request parameters.
|
|
10819
|
+
* @param {*} [options] Override http request option.
|
|
10820
|
+
* @throws {RequiredError}
|
|
10821
|
+
*/
|
|
10822
|
+
getAllAccountOrders(...args: ExperimentalEndpointsApiGetAllAccountOrdersArgs<TAuth>): Promise<AxiosResponse<AllAccountOrdersResponse, unknown>>;
|
|
10328
10823
|
/**
|
|
10329
10824
|
* Returns the detail of a single order using the brokerage order ID provided as a path parameter. The V2 order response format includes all legs of the order in the `legs` list field. If the order is single legged, `legs` will be a list of one leg. This endpoint is always realtime and does not rely on cached data. This endpoint only returns orders placed through SnapTrade. In other words, orders placed outside of the SnapTrade network are not returned by this endpoint.
|
|
10330
10825
|
* @summary Get account order detail (V2)
|
|
@@ -10399,6 +10894,45 @@ type ExperimentalEndpointsApiCancelSubscriptionRequestByAuthMode = {
|
|
|
10399
10894
|
type ExperimentalEndpointsApiCancelSubscriptionRequest<TAuth extends AuthMode> = ExperimentalEndpointsApiCancelSubscriptionRequestByAuthMode[TAuth["mode"] & keyof ExperimentalEndpointsApiCancelSubscriptionRequestByAuthMode];
|
|
10400
10895
|
/** Request argument optionality depends on the selected authentication mode. */
|
|
10401
10896
|
type ExperimentalEndpointsApiCancelSubscriptionArgs<TAuth extends AuthMode> = TAuth["mode"] extends never ? [requestParameters?: ExperimentalEndpointsApiCancelSubscriptionRequest<TAuth>, options?: AxiosRequestConfig] : [requestParameters: ExperimentalEndpointsApiCancelSubscriptionRequest<TAuth>, options?: AxiosRequestConfig];
|
|
10897
|
+
/**
|
|
10898
|
+
* Request parameters for getAllAccountOrders operation in ExperimentalEndpointsApi.
|
|
10899
|
+
* @export
|
|
10900
|
+
*/
|
|
10901
|
+
type ExperimentalEndpointsApiGetAllAccountOrdersBaseRequest = {
|
|
10902
|
+
/**
|
|
10903
|
+
*
|
|
10904
|
+
* @type {string}
|
|
10905
|
+
* @memberof ExperimentalEndpointsApiGetAllAccountOrders
|
|
10906
|
+
*/
|
|
10907
|
+
readonly accountId: string;
|
|
10908
|
+
/**
|
|
10909
|
+
* defaults to \"all\"
|
|
10910
|
+
* @type {'all' | 'open' | 'executed'}
|
|
10911
|
+
* @memberof ExperimentalEndpointsApiGetAllAccountOrders
|
|
10912
|
+
*/
|
|
10913
|
+
readonly state?: 'all' | 'open' | 'executed';
|
|
10914
|
+
/**
|
|
10915
|
+
* Number of days in the past to fetch the most recent orders. Defaults to the last 30 days if no value is passed in. Values greater than 90 will be capped at 90.
|
|
10916
|
+
* @type {number}
|
|
10917
|
+
* @memberof ExperimentalEndpointsApiGetAllAccountOrders
|
|
10918
|
+
*/
|
|
10919
|
+
readonly days?: number;
|
|
10920
|
+
};
|
|
10921
|
+
type ExperimentalEndpointsApiGetAllAccountOrderscommercialApiKeyRequest = ExperimentalEndpointsApiGetAllAccountOrdersBaseRequest & {
|
|
10922
|
+
readonly userId: string;
|
|
10923
|
+
readonly userSecret: string;
|
|
10924
|
+
};
|
|
10925
|
+
type ExperimentalEndpointsApiGetAllAccountOrderspersonalApiKeyRequest = ExperimentalEndpointsApiGetAllAccountOrdersBaseRequest & {
|
|
10926
|
+
readonly userId?: never;
|
|
10927
|
+
readonly userSecret?: never;
|
|
10928
|
+
};
|
|
10929
|
+
type ExperimentalEndpointsApiGetAllAccountOrdersRequestByAuthMode = {
|
|
10930
|
+
"commercialApiKey": ExperimentalEndpointsApiGetAllAccountOrderscommercialApiKeyRequest;
|
|
10931
|
+
"personalApiKey": ExperimentalEndpointsApiGetAllAccountOrderspersonalApiKeyRequest;
|
|
10932
|
+
};
|
|
10933
|
+
type ExperimentalEndpointsApiGetAllAccountOrdersRequest<TAuth extends AuthMode> = ExperimentalEndpointsApiGetAllAccountOrdersRequestByAuthMode[TAuth["mode"] & keyof ExperimentalEndpointsApiGetAllAccountOrdersRequestByAuthMode];
|
|
10934
|
+
/** Request argument optionality depends on the selected authentication mode. */
|
|
10935
|
+
type ExperimentalEndpointsApiGetAllAccountOrdersArgs<TAuth extends AuthMode> = TAuth["mode"] extends never ? [requestParameters?: ExperimentalEndpointsApiGetAllAccountOrdersRequest<TAuth>, options?: AxiosRequestConfig] : [requestParameters: ExperimentalEndpointsApiGetAllAccountOrdersRequest<TAuth>, options?: AxiosRequestConfig];
|
|
10402
10936
|
/**
|
|
10403
10937
|
* Request parameters for getUserAccountOrderDetailV2 operation in ExperimentalEndpointsApi.
|
|
10404
10938
|
* @export
|
|
@@ -10556,6 +11090,15 @@ declare class ExperimentalEndpointsApiGenerated<TAuth extends AuthMode> extends
|
|
|
10556
11090
|
* @memberof ExperimentalEndpointsApiGenerated
|
|
10557
11091
|
*/
|
|
10558
11092
|
cancelSubscription(...args: ExperimentalEndpointsApiCancelSubscriptionArgs<TAuth>): Promise<AxiosResponse<TradeDetectionCancelSubscriptionResponse, unknown, {}, any>>;
|
|
11093
|
+
/**
|
|
11094
|
+
* Returns a list of recent orders in the specified account, in the same `kind`-discriminated format as `/accounts/{accountId}/positions/all`. Every order carries a `legs` list with at least one leg. Each leg\'s `instrument` uses the same `Instrument` union as positions; switch on `instrument.kind` to know which fields are present. Multi-leg orders (spreads, strangles, covered calls) are a single order with multiple legs. Orders that belong to a complex order group (OCO, OTO, OTOCO) share a `group.id`. `order_type` is an object discriminated by `kind`. Each kind declares the price fields it requires (`limit_price` on `limit`, `stop_price` on `stop`, both on `stop_limit`, `trail` on `trailing_stop`), so a consumer never has to null-check a price that cannot exist for that kind. When the brokerage reports an order type we cannot normalize, `kind` is `other` and the brokerage\'s own label is in `raw_type`. **Experimental:** this endpoint may change without notice. If the connection has become disabled, it can no longer access the latest data from the brokerage, but will continue to return the last available cached state. Please see [this guide](/docs/fix-broken-connections) on how to fix a disabled connection.
|
|
11095
|
+
* @summary List all account orders
|
|
11096
|
+
* @param {ExperimentalEndpointsApiGetAllAccountOrdersRequest<TAuth>} requestParameters Request parameters.
|
|
11097
|
+
* @param {*} [options] Override http request option.
|
|
11098
|
+
* @throws {RequiredError}
|
|
11099
|
+
* @memberof ExperimentalEndpointsApiGenerated
|
|
11100
|
+
*/
|
|
11101
|
+
getAllAccountOrders(...args: ExperimentalEndpointsApiGetAllAccountOrdersArgs<TAuth>): Promise<AxiosResponse<AllAccountOrdersResponse, unknown, {}, any>>;
|
|
10559
11102
|
/**
|
|
10560
11103
|
* Returns the detail of a single order using the brokerage order ID provided as a path parameter. The V2 order response format includes all legs of the order in the `legs` list field. If the order is single legged, `legs` will be a list of one leg. This endpoint is always realtime and does not rely on cached data. This endpoint only returns orders placed through SnapTrade. In other words, orders placed outside of the SnapTrade network are not returned by this endpoint.
|
|
10561
11104
|
* @summary Get account order detail (V2)
|
|
@@ -12171,4 +12714,4 @@ declare class SnaptradeError extends Error {
|
|
|
12171
12714
|
declare function readableStreamToString(stream: ReadableStream): Promise<string>;
|
|
12172
12715
|
declare function parseIfJson(input: unknown): object | unknown;
|
|
12173
12716
|
//#endregion
|
|
12174
|
-
export { Account, AccountBalance, AccountBalanceTotal, AccountBalancesV2Response, AccountBalancesV2ResponseBuyingPowerInner, AccountBalancesV2ResponseDataFreshness, AccountBalancesV2ResponseMargin, AccountBalancesV2ResponseNetValue, AccountHoldings, AccountHoldingsAccount, AccountInformationApi, AccountInformationApiAxiosParamCreator, AccountInformationApiFactory, AccountInformationApiFp, AccountInformationApiGenerated, type AccountInformationApiGetAccountActivitiesArgs, type AccountInformationApiGetAccountActivitiesBaseRequest, type AccountInformationApiGetAccountActivitiesRequest, type AccountInformationApiGetAccountActivitiesRequestByAuthMode, type AccountInformationApiGetAccountActivitiescommercialApiKeyRequest, type AccountInformationApiGetAccountActivitiespersonalApiKeyRequest, type AccountInformationApiGetAccountBalanceHistoryArgs, type AccountInformationApiGetAccountBalanceHistoryBaseRequest, type AccountInformationApiGetAccountBalanceHistoryRequest, type AccountInformationApiGetAccountBalanceHistoryRequestByAuthMode, type AccountInformationApiGetAccountBalanceHistorycommercialApiKeyRequest, type AccountInformationApiGetAccountBalanceHistorypersonalApiKeyRequest, type AccountInformationApiGetAccountBalancesV2Args, type AccountInformationApiGetAccountBalancesV2BaseRequest, type AccountInformationApiGetAccountBalancesV2Request, type AccountInformationApiGetAccountBalancesV2RequestByAuthMode, type AccountInformationApiGetAccountBalancesV2commercialApiKeyRequest, type AccountInformationApiGetAccountBalancesV2personalApiKeyRequest, type AccountInformationApiGetAccountDetailsArgs, type AccountInformationApiGetAccountDetailsBaseRequest, type AccountInformationApiGetAccountDetailsRequest, type AccountInformationApiGetAccountDetailsRequestByAuthMode, type AccountInformationApiGetAccountDetailscommercialApiKeyRequest, type AccountInformationApiGetAccountDetailspersonalApiKeyRequest, type AccountInformationApiGetAllAccountPositionsArgs, type AccountInformationApiGetAllAccountPositionsBaseRequest, type AccountInformationApiGetAllAccountPositionsRequest, type AccountInformationApiGetAllAccountPositionsRequestByAuthMode, type AccountInformationApiGetAllAccountPositionscommercialApiKeyRequest, type AccountInformationApiGetAllAccountPositionspersonalApiKeyRequest, type AccountInformationApiGetUserAccountBalanceArgs, type AccountInformationApiGetUserAccountBalanceBaseRequest, type AccountInformationApiGetUserAccountBalanceRequest, type AccountInformationApiGetUserAccountBalanceRequestByAuthMode, type AccountInformationApiGetUserAccountBalancecommercialApiKeyRequest, type AccountInformationApiGetUserAccountBalancepersonalApiKeyRequest, type AccountInformationApiGetUserAccountDetailsArgs, type AccountInformationApiGetUserAccountDetailsBaseRequest, type AccountInformationApiGetUserAccountDetailsRequest, type AccountInformationApiGetUserAccountDetailsRequestByAuthMode, type AccountInformationApiGetUserAccountDetailscommercialApiKeyRequest, type AccountInformationApiGetUserAccountDetailspersonalApiKeyRequest, type AccountInformationApiGetUserAccountOrderDetailArgs, type AccountInformationApiGetUserAccountOrderDetailBaseRequest, type AccountInformationApiGetUserAccountOrderDetailRequest, type AccountInformationApiGetUserAccountOrderDetailRequestByAuthMode, type AccountInformationApiGetUserAccountOrderDetailcommercialApiKeyRequest, type AccountInformationApiGetUserAccountOrderDetailpersonalApiKeyRequest, type AccountInformationApiGetUserAccountOrdersArgs, type AccountInformationApiGetUserAccountOrdersBaseRequest, type AccountInformationApiGetUserAccountOrdersRequest, type AccountInformationApiGetUserAccountOrdersRequestByAuthMode, type AccountInformationApiGetUserAccountOrderscommercialApiKeyRequest, type AccountInformationApiGetUserAccountOrderspersonalApiKeyRequest, type AccountInformationApiGetUserAccountRecentOrdersArgs, type AccountInformationApiGetUserAccountRecentOrdersBaseRequest, type AccountInformationApiGetUserAccountRecentOrdersRequest, type AccountInformationApiGetUserAccountRecentOrdersRequestByAuthMode, type AccountInformationApiGetUserAccountRecentOrderscommercialApiKeyRequest, type AccountInformationApiGetUserAccountRecentOrderspersonalApiKeyRequest, type AccountInformationApiGetUserAccountReturnRatesArgs, type AccountInformationApiGetUserAccountReturnRatesBaseRequest, type AccountInformationApiGetUserAccountReturnRatesRequest, type AccountInformationApiGetUserAccountReturnRatesRequestByAuthMode, type AccountInformationApiGetUserAccountReturnRatescommercialApiKeyRequest, type AccountInformationApiGetUserAccountReturnRatespersonalApiKeyRequest, type AccountInformationApiGetUserHoldingsArgs, type AccountInformationApiGetUserHoldingsBaseRequest, type AccountInformationApiGetUserHoldingsRequest, type AccountInformationApiGetUserHoldingsRequestByAuthMode, type AccountInformationApiGetUserHoldingscommercialApiKeyRequest, type AccountInformationApiGetUserHoldingspersonalApiKeyRequest, type AccountInformationApiListAllUserAccountsArgs, type AccountInformationApiListAllUserAccountsBaseRequest, type AccountInformationApiListAllUserAccountsRequest, type AccountInformationApiListAllUserAccountsRequestByAuthMode, type AccountInformationApiListAllUserAccountscommercialApiKeyRequest, type AccountInformationApiListAllUserAccountspersonalApiKeyRequest, type AccountInformationApiListUserAccountsArgs, type AccountInformationApiListUserAccountsBaseRequest, type AccountInformationApiListUserAccountsRequest, type AccountInformationApiListUserAccountsRequestByAuthMode, type AccountInformationApiListUserAccountscommercialApiKeyRequest, type AccountInformationApiListUserAccountspersonalApiKeyRequest, type AccountInformationApiUpdateUserAccountArgs, type AccountInformationApiUpdateUserAccountBaseRequest, type AccountInformationApiUpdateUserAccountRequest, type AccountInformationApiUpdateUserAccountRequestByAuthMode, type AccountInformationApiUpdateUserAccountcommercialApiKeyRequest, type AccountInformationApiUpdateUserAccountpersonalApiKeyRequest, AccountInformationGetUserAccountOrderDetailRequest, AccountInformationGetUserHoldings409Response, AccountOrderRecord, AccountOrderRecordLeg, AccountOrderRecordLegInstrument, AccountOrderRecordNullable, AccountOrderRecordStatus, AccountOrderRecordStatusV2, AccountOrderRecordStatusV2Nullable, AccountOrderRecordV2, AccountOrderRecordV2OrderRole, AccountOrderRecordV2OrderRoleNullable, AccountOrdersV2Response, AccountPosition, AccountSimple, AccountSyncStatus, AccountUniversalActivity, AccountValueHistoryItem, AccountValueHistoryResponse, ActionStrict, ActionStrictWithOptions, AdrInstrument, AllAccountPositionsResponse, AllAccountPositionsResponseDataFreshness, AllUserAccountsResponse, ApiKey, ApiStatusApi, ApiStatusApiAxiosParamCreator, ApiStatusApiFactory, ApiStatusApiFp, ApiStatusApiGenerated, type AuthMode, AuthenticationApi, AuthenticationApiAxiosParamCreator, type AuthenticationApiDeleteSnapTradeUserArgs, type AuthenticationApiDeleteSnapTradeUserBaseRequest, type AuthenticationApiDeleteSnapTradeUserRequest, type AuthenticationApiDeleteSnapTradeUserRequestByAuthMode, type AuthenticationApiDeleteSnapTradeUsercommercialApiKeyRequest, AuthenticationApiFactory, AuthenticationApiFp, AuthenticationApiGenerated, type AuthenticationApiLoginSnapTradeUserArgs, type AuthenticationApiLoginSnapTradeUserBaseRequest, type AuthenticationApiLoginSnapTradeUserRequest, type AuthenticationApiLoginSnapTradeUserRequestByAuthMode, type AuthenticationApiLoginSnapTradeUsercommercialApiKeyRequest, type AuthenticationApiLoginSnapTradeUserpersonalApiKeyRequest, type AuthenticationApiRegisterSnapTradeUserArgs, type AuthenticationApiRegisterSnapTradeUserBaseRequest, type AuthenticationApiRegisterSnapTradeUserRequest, type AuthenticationApiRegisterSnapTradeUserRequestByAuthMode, type AuthenticationApiRegisterSnapTradeUsercommercialApiKeyRequest, type AuthenticationApiResetSnapTradeUserSecretArgs, type AuthenticationApiResetSnapTradeUserSecretBaseRequest, type AuthenticationApiResetSnapTradeUserSecretRequest, type AuthenticationApiResetSnapTradeUserSecretRequestByAuthMode, type AuthenticationApiResetSnapTradeUserSecretcommercialApiKeyRequest, AuthenticationLoginSnapTradeUser200Response, Balance, BalanceCurrency, BalanceV2CurrencyAmount, BalanceV2Money, Brokerage, BrokerageAuthorization, BrokerageAuthorizationDataFreshnessMode, BrokerageAuthorizationDisabledConfirmation, BrokerageAuthorizationRefreshConfirmation, BrokerageAuthorizationTransactionsSyncConfirmation, BrokerageAuthorizationTypeReadOnly, BrokerageAuthorizationTypeReadOnlyBrokerage, BrokerageInstrument, BrokerageInstrumentsResponse, BrokerageType, CancelOrderResponse, CefInstrument, CfdInstrument, ChildBrokerageOrderIDs, ChildBrokerageOrderIDsNullable, CommercialApiKeyAuth, ComplexOrderLeg, ComplexOrderResponse, Configuration, ConfigurationParameters, ConfigurationParametersShared, ConnectedAssetPartnerStats, ConnectionAccount, ConnectionAccountSyncStatus, ConnectionAccountsResponse, ConnectionsApi, ConnectionsApiAxiosParamCreator, type ConnectionsApiDeleteConnectionArgs, type ConnectionsApiDeleteConnectionBaseRequest, type ConnectionsApiDeleteConnectionRequest, type ConnectionsApiDeleteConnectionRequestByAuthMode, type ConnectionsApiDeleteConnectioncommercialApiKeyRequest, type ConnectionsApiDeleteConnectionpersonalApiKeyRequest, type ConnectionsApiDetailBrokerageAuthorizationArgs, type ConnectionsApiDetailBrokerageAuthorizationBaseRequest, type ConnectionsApiDetailBrokerageAuthorizationRequest, type ConnectionsApiDetailBrokerageAuthorizationRequestByAuthMode, type ConnectionsApiDetailBrokerageAuthorizationcommercialApiKeyRequest, type ConnectionsApiDetailBrokerageAuthorizationpersonalApiKeyRequest, type ConnectionsApiDisableBrokerageAuthorizationArgs, type ConnectionsApiDisableBrokerageAuthorizationBaseRequest, type ConnectionsApiDisableBrokerageAuthorizationRequest, type ConnectionsApiDisableBrokerageAuthorizationRequestByAuthMode, type ConnectionsApiDisableBrokerageAuthorizationcommercialApiKeyRequest, type ConnectionsApiDisableBrokerageAuthorizationpersonalApiKeyRequest, ConnectionsApiFactory, ConnectionsApiFp, ConnectionsApiGenerated, type ConnectionsApiListBrokerageAuthorizationAccountsArgs, type ConnectionsApiListBrokerageAuthorizationAccountsBaseRequest, type ConnectionsApiListBrokerageAuthorizationAccountsRequest, type ConnectionsApiListBrokerageAuthorizationAccountsRequestByAuthMode, type ConnectionsApiListBrokerageAuthorizationAccountscommercialApiKeyRequest, type ConnectionsApiListBrokerageAuthorizationAccountspersonalApiKeyRequest, type ConnectionsApiListBrokerageAuthorizationsArgs, type ConnectionsApiListBrokerageAuthorizationsBaseRequest, type ConnectionsApiListBrokerageAuthorizationsRequest, type ConnectionsApiListBrokerageAuthorizationsRequestByAuthMode, type ConnectionsApiListBrokerageAuthorizationscommercialApiKeyRequest, type ConnectionsApiListBrokerageAuthorizationspersonalApiKeyRequest, type ConnectionsApiListConnectionAccountsArgs, type ConnectionsApiListConnectionAccountsBaseRequest, type ConnectionsApiListConnectionAccountsRequest, type ConnectionsApiListConnectionAccountsRequestByAuthMode, type ConnectionsApiListConnectionAccountscommercialApiKeyRequest, type ConnectionsApiListConnectionAccountspersonalApiKeyRequest, type ConnectionsApiRefreshBrokerageAuthorizationArgs, type ConnectionsApiRefreshBrokerageAuthorizationBaseRequest, type ConnectionsApiRefreshBrokerageAuthorizationRequest, type ConnectionsApiRefreshBrokerageAuthorizationRequestByAuthMode, type ConnectionsApiRefreshBrokerageAuthorizationcommercialApiKeyRequest, type ConnectionsApiRefreshBrokerageAuthorizationpersonalApiKeyRequest, type ConnectionsApiReturnRatesArgs, type ConnectionsApiReturnRatesBaseRequest, type ConnectionsApiReturnRatesRequest, type ConnectionsApiReturnRatesRequestByAuthMode, type ConnectionsApiReturnRatescommercialApiKeyRequest, type ConnectionsApiReturnRatespersonalApiKeyRequest, type ConnectionsApiSyncBrokerageAuthorizationTransactionsArgs, type ConnectionsApiSyncBrokerageAuthorizationTransactionsBaseRequest, type ConnectionsApiSyncBrokerageAuthorizationTransactionsRequest, type ConnectionsApiSyncBrokerageAuthorizationTransactionsRequestByAuthMode, type ConnectionsApiSyncBrokerageAuthorizationTransactionscommercialApiKeyRequest, type ConnectionsApiSyncBrokerageAuthorizationTransactionspersonalApiKeyRequest, CryptoInstrument, CryptoOrderForm, CryptoOrderPreview, CryptoOrderPreviewEstimatedFee, CryptoTradingInstrument, CryptocurrencyPair, CryptocurrencyPairQuote, Currency, CurrencyNullable, DeleteConnectionConfirmation, DeleteUserResponse, DepositAccount, DepositAccountNetValue, DepositAccountSyncStatus, DividendAtDate, EncryptedResponse, EncryptedResponseEncryptedMessageData, EtfInstrument, Exchange, ExchangeRatePairs, ExperimentalEndpointsApi, type ExperimentalEndpointsApiAddSubscriptionArgs, type ExperimentalEndpointsApiAddSubscriptionBaseRequest, type ExperimentalEndpointsApiAddSubscriptionRequest, type ExperimentalEndpointsApiAddSubscriptionRequestByAuthMode, type ExperimentalEndpointsApiAddSubscriptioncommercialApiKeyRequest, type ExperimentalEndpointsApiAddSubscriptionpersonalApiKeyRequest, ExperimentalEndpointsApiAxiosParamCreator, type ExperimentalEndpointsApiCancelSubscriptionArgs, type ExperimentalEndpointsApiCancelSubscriptionBaseRequest, type ExperimentalEndpointsApiCancelSubscriptionRequest, type ExperimentalEndpointsApiCancelSubscriptionRequestByAuthMode, type ExperimentalEndpointsApiCancelSubscriptioncommercialApiKeyRequest, type ExperimentalEndpointsApiCancelSubscriptionpersonalApiKeyRequest, ExperimentalEndpointsApiFactory, ExperimentalEndpointsApiFp, ExperimentalEndpointsApiGenerated, type ExperimentalEndpointsApiGetUserAccountOrderDetailV2Args, type ExperimentalEndpointsApiGetUserAccountOrderDetailV2BaseRequest, type ExperimentalEndpointsApiGetUserAccountOrderDetailV2Request, type ExperimentalEndpointsApiGetUserAccountOrderDetailV2RequestByAuthMode, type ExperimentalEndpointsApiGetUserAccountOrderDetailV2commercialApiKeyRequest, type ExperimentalEndpointsApiGetUserAccountOrderDetailV2personalApiKeyRequest, type ExperimentalEndpointsApiGetUserAccountOrdersV2Args, type ExperimentalEndpointsApiGetUserAccountOrdersV2BaseRequest, type ExperimentalEndpointsApiGetUserAccountOrdersV2Request, type ExperimentalEndpointsApiGetUserAccountOrdersV2RequestByAuthMode, type ExperimentalEndpointsApiGetUserAccountOrdersV2commercialApiKeyRequest, type ExperimentalEndpointsApiGetUserAccountOrdersV2personalApiKeyRequest, type ExperimentalEndpointsApiGetUserAccountRecentOrdersV2Args, type ExperimentalEndpointsApiGetUserAccountRecentOrdersV2BaseRequest, type ExperimentalEndpointsApiGetUserAccountRecentOrdersV2Request, type ExperimentalEndpointsApiGetUserAccountRecentOrdersV2RequestByAuthMode, type ExperimentalEndpointsApiGetUserAccountRecentOrdersV2commercialApiKeyRequest, type ExperimentalEndpointsApiGetUserAccountRecentOrdersV2personalApiKeyRequest, type ExperimentalEndpointsApiPlaceSimpleOrderArgs, type ExperimentalEndpointsApiPlaceSimpleOrderBaseRequest, type ExperimentalEndpointsApiPlaceSimpleOrderRequest, type ExperimentalEndpointsApiPlaceSimpleOrderRequestByAuthMode, type ExperimentalEndpointsApiPlaceSimpleOrdercommercialApiKeyRequest, type ExperimentalEndpointsApiPlaceSimpleOrderpersonalApiKeyRequest, FigiInstrument, FigiInstrumentNullable, FormDataLike, FutureInstrument, FutureOptionInstrument, HoldingsStatus, Institution, InstitutionConnection, InstitutionConnectionNullable, Instrument, InvestmentAccount, InvestmentAccountNetValue, LineOfCreditAccount, LineOfCreditAccountAvailableCredit, LineOfCreditAccountMinimumPaymentAmount, LineOfCreditAccountNetValue, LineOfCreditAccountSyncStatus, LoginRedirectURI, ManagementApi, ManagementApiAxiosParamCreator, ManagementApiFactory, ManagementApiFp, ManagementApiGenerated, type ManagementApiGetStatsArgs, type ManagementApiGetStatsBaseRequest, type ManagementApiGetStatsLegacyArgs, type ManagementApiGetStatsLegacyBaseRequest, type ManagementApiGetStatsLegacyRequest, type ManagementApiGetStatsLegacyRequestByAuthMode, type ManagementApiGetStatsLegacycommercialApiKeyRequest, type ManagementApiGetStatsLegacypersonalApiKeyRequest, type ManagementApiGetStatsRequest, type ManagementApiGetStatsRequestByAuthMode, type ManagementApiGetStatscommercialApiKeyRequest, type ManagementApiGetStatspersonalApiKeyRequest, ManualTrade, ManualTradeAndImpact, ManualTradeBalance, ManualTradeForm, ManualTradeFormBracket, ManualTradeFormComplex, ManualTradeFormWithOptions, ManualTradeImpact, ManualTradePlaceTimeInForceStrict, ManualTradeReplaceForm, ManualTradeSymbol, MlegActionStrict, MlegInstrumentType, MlegLeg, MlegOrderResponse, MlegOrderTypeStrict, MlegPriceEffectStrict, MlegPriceEffectStrictNullable, MlegTradeForm, MlegTradingInstrument, Model400FailedRequestResponse, Model401FailedRequestResponse, Model402BrokerageAuthAlreadyDisabledException, Model402BrokerageAuthDisabledResponse, Model403FailedRequestResponse, Model403FeatureNotEnabledResponse, Model404FailedRequestResponse, Model425FailedRequestResponse, Model429TooManyRequestsResponse, Model500UnexpectedExceptionResponse, Model501NotImplementedResponse, Model503BrokerageRequestResponse, Model503CurrencyConversionUnavailableResponse, MonthlyDividends, MutualFundInstrument, NetContributions, NetDividend, NotionalValue, NotionalValueNullable, OAuthWebhookBase, OptionBrokerageSymbol, OptionChainInner, OptionChainInnerChainPerRootInner, OptionChainInnerChainPerRootInnerChainPerStrikePriceInner, OptionImpact, OptionInstrument, OptionLeg, OptionQuote, OptionQuoteGreeks, OptionStrategy, OptionStrategyLegsInner, OptionsPosition, OptionsSymbol, OptionsSymbolNullable, OrderTypeStrict, OrderUpdatedResponse, OtherInstrument, PaginatedUniversalActivity, PaginationDetails, PartnerData, PartnerStats, PastValue, PerformanceCustom, PersonalApiKeyAuth, Position, PositionCurrency, PositionSymbol, RateOfReturnObject, RateOfReturnResponse, RecentOrdersResponse, ReferenceDataApi, ReferenceDataApiAxiosParamCreator, ReferenceDataApiFactory, ReferenceDataApiFp, ReferenceDataApiGenerated, type ReferenceDataApiGetSymbolsArgs, type ReferenceDataApiGetSymbolsBaseRequest, type ReferenceDataApiGetSymbolsByTickerArgs, type ReferenceDataApiGetSymbolsByTickerBaseRequest, type ReferenceDataApiGetSymbolsByTickerRequest, type ReferenceDataApiGetSymbolsByTickerRequestByAuthMode, type ReferenceDataApiGetSymbolsByTickercommercialApiKeyRequest, type ReferenceDataApiGetSymbolsByTickerpersonalApiKeyRequest, type ReferenceDataApiGetSymbolsRequest, type ReferenceDataApiGetSymbolsRequestByAuthMode, type ReferenceDataApiGetSymbolscommercialApiKeyRequest, type ReferenceDataApiGetSymbolspersonalApiKeyRequest, type ReferenceDataApiListAllBrokerageAuthorizationTypeArgs, type ReferenceDataApiListAllBrokerageAuthorizationTypeBaseRequest, type ReferenceDataApiListAllBrokerageAuthorizationTypeRequest, type ReferenceDataApiListAllBrokerageAuthorizationTypeRequestByAuthMode, type ReferenceDataApiListAllBrokerageAuthorizationTypecommercialApiKeyRequest, type ReferenceDataApiListAllBrokerageAuthorizationTypepersonalApiKeyRequest, type ReferenceDataApiListAllBrokerageInstrumentsArgs, type ReferenceDataApiListAllBrokerageInstrumentsBaseRequest, type ReferenceDataApiListAllBrokerageInstrumentsRequest, type ReferenceDataApiListAllBrokerageInstrumentsRequestByAuthMode, type ReferenceDataApiListAllBrokerageInstrumentscommercialApiKeyRequest, type ReferenceDataApiListAllBrokerageInstrumentspersonalApiKeyRequest, type ReferenceDataApiSymbolSearchUserAccountArgs, type ReferenceDataApiSymbolSearchUserAccountBaseRequest, type ReferenceDataApiSymbolSearchUserAccountRequest, type ReferenceDataApiSymbolSearchUserAccountRequestByAuthMode, type ReferenceDataApiSymbolSearchUserAccountcommercialApiKeyRequest, type ReferenceDataApiSymbolSearchUserAccountpersonalApiKeyRequest, SecurityType, SessionEvent, SimpleOrderForm, SimpleTradeForm, SimpleTradeInstrument, SimpleTradeLeg, SimpleTradeResponse, SnapTradeHoldingsAccount, SnapTradeHoldingsTotalValue, SnapTradeLoginUserRequestBody, SnapTradeRegisterUserRequestBody, Snaptrade, SnaptradeAuth, SnaptradeError, Status, StockInstrument, StopLoss, StrategyOrderRecord, StrategyQuotes, StrategyQuotesGreek, SubPeriodReturnRate, Symbol, SymbolCurrency, SymbolExchange, SymbolNullable, SymbolQuery, SymbolsQuotesInner, TakeProfit, TaxLot, TimeInForceStrict, TokenizedAssetInstrument, TradeDetectionAddSubscriptionRequest, TradeDetectionCancelSubscriptionRequest, TradeDetectionCancelSubscriptionResponse, TradeDetectionSubscription, TradingApi, TradingApiAxiosParamCreator, type TradingApiCancelOrderArgs, type TradingApiCancelOrderBaseRequest, type TradingApiCancelOrderRequest, type TradingApiCancelOrderRequestByAuthMode, type TradingApiCancelOrdercommercialApiKeyRequest, type TradingApiCancelOrderpersonalApiKeyRequest, TradingApiFactory, TradingApiFp, TradingApiGenerated, type TradingApiGetCryptocurrencyPairQuoteArgs, type TradingApiGetCryptocurrencyPairQuoteBaseRequest, type TradingApiGetCryptocurrencyPairQuoteRequest, type TradingApiGetCryptocurrencyPairQuoteRequestByAuthMode, type TradingApiGetCryptocurrencyPairQuotecommercialApiKeyRequest, type TradingApiGetCryptocurrencyPairQuotepersonalApiKeyRequest, type TradingApiGetOptionImpactArgs, type TradingApiGetOptionImpactBaseRequest, type TradingApiGetOptionImpactRequest, type TradingApiGetOptionImpactRequestByAuthMode, type TradingApiGetOptionImpactcommercialApiKeyRequest, type TradingApiGetOptionImpactpersonalApiKeyRequest, type TradingApiGetOrderImpactArgs, type TradingApiGetOrderImpactBaseRequest, type TradingApiGetOrderImpactRequest, type TradingApiGetOrderImpactRequestByAuthMode, type TradingApiGetOrderImpactcommercialApiKeyRequest, type TradingApiGetOrderImpactpersonalApiKeyRequest, type TradingApiGetUserAccountOptionQuotesArgs, type TradingApiGetUserAccountOptionQuotesBaseRequest, type TradingApiGetUserAccountOptionQuotesRequest, type TradingApiGetUserAccountOptionQuotesRequestByAuthMode, type TradingApiGetUserAccountOptionQuotescommercialApiKeyRequest, type TradingApiGetUserAccountOptionQuotespersonalApiKeyRequest, type TradingApiGetUserAccountQuotesArgs, type TradingApiGetUserAccountQuotesBaseRequest, type TradingApiGetUserAccountQuotesRequest, type TradingApiGetUserAccountQuotesRequestByAuthMode, type TradingApiGetUserAccountQuotescommercialApiKeyRequest, type TradingApiGetUserAccountQuotespersonalApiKeyRequest, type TradingApiPlaceComplexOrderArgs, type TradingApiPlaceComplexOrderBaseRequest, type TradingApiPlaceComplexOrderRequest, type TradingApiPlaceComplexOrderRequestByAuthMode, type TradingApiPlaceComplexOrdercommercialApiKeyRequest, type TradingApiPlaceComplexOrderpersonalApiKeyRequest, type TradingApiPlaceCryptoOrderArgs, type TradingApiPlaceCryptoOrderBaseRequest, type TradingApiPlaceCryptoOrderRequest, type TradingApiPlaceCryptoOrderRequestByAuthMode, type TradingApiPlaceCryptoOrdercommercialApiKeyRequest, type TradingApiPlaceCryptoOrderpersonalApiKeyRequest, type TradingApiPlaceForceOrderArgs, type TradingApiPlaceForceOrderBaseRequest, type TradingApiPlaceForceOrderRequest, type TradingApiPlaceForceOrderRequestByAuthMode, type TradingApiPlaceForceOrdercommercialApiKeyRequest, type TradingApiPlaceForceOrderpersonalApiKeyRequest, type TradingApiPlaceMlegOrderArgs, type TradingApiPlaceMlegOrderBaseRequest, type TradingApiPlaceMlegOrderRequest, type TradingApiPlaceMlegOrderRequestByAuthMode, type TradingApiPlaceMlegOrdercommercialApiKeyRequest, type TradingApiPlaceMlegOrderpersonalApiKeyRequest, type TradingApiPlaceOrderArgs, type TradingApiPlaceOrderBaseRequest, type TradingApiPlaceOrderRequest, type TradingApiPlaceOrderRequestByAuthMode, type TradingApiPlaceOrdercommercialApiKeyRequest, type TradingApiPlaceOrderpersonalApiKeyRequest, type TradingApiPreviewCryptoOrderArgs, type TradingApiPreviewCryptoOrderBaseRequest, type TradingApiPreviewCryptoOrderRequest, type TradingApiPreviewCryptoOrderRequestByAuthMode, type TradingApiPreviewCryptoOrdercommercialApiKeyRequest, type TradingApiPreviewCryptoOrderpersonalApiKeyRequest, type TradingApiReplaceOrderArgs, type TradingApiReplaceOrderBaseRequest, type TradingApiReplaceOrderRequest, type TradingApiReplaceOrderRequestByAuthMode, type TradingApiReplaceOrdercommercialApiKeyRequest, type TradingApiReplaceOrderpersonalApiKeyRequest, type TradingApiSearchCryptocurrencyPairInstrumentsArgs, type TradingApiSearchCryptocurrencyPairInstrumentsBaseRequest, type TradingApiSearchCryptocurrencyPairInstrumentsRequest, type TradingApiSearchCryptocurrencyPairInstrumentsRequestByAuthMode, type TradingApiSearchCryptocurrencyPairInstrumentscommercialApiKeyRequest, type TradingApiSearchCryptocurrencyPairInstrumentspersonalApiKeyRequest, TradingGetUserAccountOptionQuotes410Response, TradingInstrument, TradingSearchCryptocurrencyPairInstruments200Response, TradingSession, TrailingStop, TrailingStopNullable, TransactionsStatus, USExchange, UnderlyingCfdInstrument, UnderlyingOptionInstrument, UnderlyingSymbol, UnderlyingSymbolExchange, UnderlyingSymbolType, UnderlyingTokenizedAssetInstrument, UniversalActivity, UniversalSymbol, UniversalSymbolNullable, UserIDandSecret, ValidatedTradeBody, parseIfJson, readableStreamToString };
|
|
12717
|
+
export { Account, AccountBalance, AccountBalanceTotal, AccountBalancesV2Response, AccountBalancesV2ResponseBuyingPowerInner, AccountBalancesV2ResponseDataFreshness, AccountBalancesV2ResponseMargin, AccountBalancesV2ResponseNetValue, AccountHoldings, AccountHoldingsAccount, AccountInformationApi, AccountInformationApiAxiosParamCreator, AccountInformationApiFactory, AccountInformationApiFp, AccountInformationApiGenerated, type AccountInformationApiGetAccountActivitiesArgs, type AccountInformationApiGetAccountActivitiesBaseRequest, type AccountInformationApiGetAccountActivitiesRequest, type AccountInformationApiGetAccountActivitiesRequestByAuthMode, type AccountInformationApiGetAccountActivitiescommercialApiKeyRequest, type AccountInformationApiGetAccountActivitiespersonalApiKeyRequest, type AccountInformationApiGetAccountBalanceHistoryArgs, type AccountInformationApiGetAccountBalanceHistoryBaseRequest, type AccountInformationApiGetAccountBalanceHistoryRequest, type AccountInformationApiGetAccountBalanceHistoryRequestByAuthMode, type AccountInformationApiGetAccountBalanceHistorycommercialApiKeyRequest, type AccountInformationApiGetAccountBalanceHistorypersonalApiKeyRequest, type AccountInformationApiGetAccountBalancesV2Args, type AccountInformationApiGetAccountBalancesV2BaseRequest, type AccountInformationApiGetAccountBalancesV2Request, type AccountInformationApiGetAccountBalancesV2RequestByAuthMode, type AccountInformationApiGetAccountBalancesV2commercialApiKeyRequest, type AccountInformationApiGetAccountBalancesV2personalApiKeyRequest, type AccountInformationApiGetAccountDetailsArgs, type AccountInformationApiGetAccountDetailsBaseRequest, type AccountInformationApiGetAccountDetailsRequest, type AccountInformationApiGetAccountDetailsRequestByAuthMode, type AccountInformationApiGetAccountDetailscommercialApiKeyRequest, type AccountInformationApiGetAccountDetailspersonalApiKeyRequest, type AccountInformationApiGetAllAccountPositionsArgs, type AccountInformationApiGetAllAccountPositionsBaseRequest, type AccountInformationApiGetAllAccountPositionsRequest, type AccountInformationApiGetAllAccountPositionsRequestByAuthMode, type AccountInformationApiGetAllAccountPositionscommercialApiKeyRequest, type AccountInformationApiGetAllAccountPositionspersonalApiKeyRequest, type AccountInformationApiGetUserAccountBalanceArgs, type AccountInformationApiGetUserAccountBalanceBaseRequest, type AccountInformationApiGetUserAccountBalanceRequest, type AccountInformationApiGetUserAccountBalanceRequestByAuthMode, type AccountInformationApiGetUserAccountBalancecommercialApiKeyRequest, type AccountInformationApiGetUserAccountBalancepersonalApiKeyRequest, type AccountInformationApiGetUserAccountDetailsArgs, type AccountInformationApiGetUserAccountDetailsBaseRequest, type AccountInformationApiGetUserAccountDetailsRequest, type AccountInformationApiGetUserAccountDetailsRequestByAuthMode, type AccountInformationApiGetUserAccountDetailscommercialApiKeyRequest, type AccountInformationApiGetUserAccountDetailspersonalApiKeyRequest, type AccountInformationApiGetUserAccountOrderDetailArgs, type AccountInformationApiGetUserAccountOrderDetailBaseRequest, type AccountInformationApiGetUserAccountOrderDetailRequest, type AccountInformationApiGetUserAccountOrderDetailRequestByAuthMode, type AccountInformationApiGetUserAccountOrderDetailcommercialApiKeyRequest, type AccountInformationApiGetUserAccountOrderDetailpersonalApiKeyRequest, type AccountInformationApiGetUserAccountOrdersArgs, type AccountInformationApiGetUserAccountOrdersBaseRequest, type AccountInformationApiGetUserAccountOrdersRequest, type AccountInformationApiGetUserAccountOrdersRequestByAuthMode, type AccountInformationApiGetUserAccountOrderscommercialApiKeyRequest, type AccountInformationApiGetUserAccountOrderspersonalApiKeyRequest, type AccountInformationApiGetUserAccountRecentOrdersArgs, type AccountInformationApiGetUserAccountRecentOrdersBaseRequest, type AccountInformationApiGetUserAccountRecentOrdersRequest, type AccountInformationApiGetUserAccountRecentOrdersRequestByAuthMode, type AccountInformationApiGetUserAccountRecentOrderscommercialApiKeyRequest, type AccountInformationApiGetUserAccountRecentOrderspersonalApiKeyRequest, type AccountInformationApiGetUserAccountReturnRatesArgs, type AccountInformationApiGetUserAccountReturnRatesBaseRequest, type AccountInformationApiGetUserAccountReturnRatesRequest, type AccountInformationApiGetUserAccountReturnRatesRequestByAuthMode, type AccountInformationApiGetUserAccountReturnRatescommercialApiKeyRequest, type AccountInformationApiGetUserAccountReturnRatespersonalApiKeyRequest, type AccountInformationApiGetUserHoldingsArgs, type AccountInformationApiGetUserHoldingsBaseRequest, type AccountInformationApiGetUserHoldingsRequest, type AccountInformationApiGetUserHoldingsRequestByAuthMode, type AccountInformationApiGetUserHoldingscommercialApiKeyRequest, type AccountInformationApiGetUserHoldingspersonalApiKeyRequest, type AccountInformationApiListAllUserAccountsArgs, type AccountInformationApiListAllUserAccountsBaseRequest, type AccountInformationApiListAllUserAccountsRequest, type AccountInformationApiListAllUserAccountsRequestByAuthMode, type AccountInformationApiListAllUserAccountscommercialApiKeyRequest, type AccountInformationApiListAllUserAccountspersonalApiKeyRequest, type AccountInformationApiListUserAccountsArgs, type AccountInformationApiListUserAccountsBaseRequest, type AccountInformationApiListUserAccountsRequest, type AccountInformationApiListUserAccountsRequestByAuthMode, type AccountInformationApiListUserAccountscommercialApiKeyRequest, type AccountInformationApiListUserAccountspersonalApiKeyRequest, type AccountInformationApiUpdateUserAccountArgs, type AccountInformationApiUpdateUserAccountBaseRequest, type AccountInformationApiUpdateUserAccountRequest, type AccountInformationApiUpdateUserAccountRequestByAuthMode, type AccountInformationApiUpdateUserAccountcommercialApiKeyRequest, type AccountInformationApiUpdateUserAccountpersonalApiKeyRequest, AccountInformationGetUserAccountOrderDetailRequest, AccountInformationGetUserHoldings409Response, AccountOrder, AccountOrderGroup, AccountOrderGroupNullable, AccountOrderLeg, AccountOrderRecord, AccountOrderRecordLeg, AccountOrderRecordLegInstrument, AccountOrderRecordNullable, AccountOrderRecordStatus, AccountOrderRecordStatusV2, AccountOrderRecordStatusV2Nullable, AccountOrderRecordV2, AccountOrderRecordV2OrderRole, AccountOrderRecordV2OrderRoleNullable, AccountOrdersV2Response, AccountPosition, AccountSimple, AccountSyncStatus, AccountUniversalActivity, AccountValueHistoryItem, AccountValueHistoryResponse, ActionStrict, ActionStrictWithOptions, AdrInstrument, AllAccountOrdersResponse, AllAccountOrdersResponseDataFreshness, AllAccountPositionsResponse, AllAccountPositionsResponseDataFreshness, AllUserAccountsResponse, ApiKey, ApiStatusApi, ApiStatusApiAxiosParamCreator, ApiStatusApiFactory, ApiStatusApiFp, ApiStatusApiGenerated, type AuthMode, AuthenticationApi, AuthenticationApiAxiosParamCreator, type AuthenticationApiDeleteSnapTradeUserArgs, type AuthenticationApiDeleteSnapTradeUserBaseRequest, type AuthenticationApiDeleteSnapTradeUserRequest, type AuthenticationApiDeleteSnapTradeUserRequestByAuthMode, type AuthenticationApiDeleteSnapTradeUsercommercialApiKeyRequest, AuthenticationApiFactory, AuthenticationApiFp, AuthenticationApiGenerated, type AuthenticationApiLoginSnapTradeUserArgs, type AuthenticationApiLoginSnapTradeUserBaseRequest, type AuthenticationApiLoginSnapTradeUserRequest, type AuthenticationApiLoginSnapTradeUserRequestByAuthMode, type AuthenticationApiLoginSnapTradeUsercommercialApiKeyRequest, type AuthenticationApiLoginSnapTradeUserpersonalApiKeyRequest, type AuthenticationApiRegisterSnapTradeUserArgs, type AuthenticationApiRegisterSnapTradeUserBaseRequest, type AuthenticationApiRegisterSnapTradeUserRequest, type AuthenticationApiRegisterSnapTradeUserRequestByAuthMode, type AuthenticationApiRegisterSnapTradeUsercommercialApiKeyRequest, type AuthenticationApiResetSnapTradeUserSecretArgs, type AuthenticationApiResetSnapTradeUserSecretBaseRequest, type AuthenticationApiResetSnapTradeUserSecretRequest, type AuthenticationApiResetSnapTradeUserSecretRequestByAuthMode, type AuthenticationApiResetSnapTradeUserSecretcommercialApiKeyRequest, AuthenticationLoginSnapTradeUser200Response, Balance, BalanceCurrency, BalanceV2CurrencyAmount, BalanceV2Money, Brokerage, BrokerageAuthorization, BrokerageAuthorizationDataFreshnessMode, BrokerageAuthorizationDisabledConfirmation, BrokerageAuthorizationRefreshConfirmation, BrokerageAuthorizationTransactionsSyncConfirmation, BrokerageAuthorizationTypeReadOnly, BrokerageAuthorizationTypeReadOnlyBrokerage, BrokerageInstrument, BrokerageInstrumentsResponse, BrokerageType, CancelOrderResponse, CefInstrument, CfdInstrument, ChildBrokerageOrderIDs, ChildBrokerageOrderIDsNullable, CommercialApiKeyAuth, ComplexOrderLeg, ComplexOrderResponse, Configuration, ConfigurationParameters, ConfigurationParametersShared, ConnectedAssetPartnerStats, ConnectionAccount, ConnectionAccountSyncStatus, ConnectionAccountsResponse, ConnectionsApi, ConnectionsApiAxiosParamCreator, type ConnectionsApiDeleteConnectionArgs, type ConnectionsApiDeleteConnectionBaseRequest, type ConnectionsApiDeleteConnectionRequest, type ConnectionsApiDeleteConnectionRequestByAuthMode, type ConnectionsApiDeleteConnectioncommercialApiKeyRequest, type ConnectionsApiDeleteConnectionpersonalApiKeyRequest, type ConnectionsApiDetailBrokerageAuthorizationArgs, type ConnectionsApiDetailBrokerageAuthorizationBaseRequest, type ConnectionsApiDetailBrokerageAuthorizationRequest, type ConnectionsApiDetailBrokerageAuthorizationRequestByAuthMode, type ConnectionsApiDetailBrokerageAuthorizationcommercialApiKeyRequest, type ConnectionsApiDetailBrokerageAuthorizationpersonalApiKeyRequest, type ConnectionsApiDisableBrokerageAuthorizationArgs, type ConnectionsApiDisableBrokerageAuthorizationBaseRequest, type ConnectionsApiDisableBrokerageAuthorizationRequest, type ConnectionsApiDisableBrokerageAuthorizationRequestByAuthMode, type ConnectionsApiDisableBrokerageAuthorizationcommercialApiKeyRequest, type ConnectionsApiDisableBrokerageAuthorizationpersonalApiKeyRequest, ConnectionsApiFactory, ConnectionsApiFp, ConnectionsApiGenerated, type ConnectionsApiListBrokerageAuthorizationAccountsArgs, type ConnectionsApiListBrokerageAuthorizationAccountsBaseRequest, type ConnectionsApiListBrokerageAuthorizationAccountsRequest, type ConnectionsApiListBrokerageAuthorizationAccountsRequestByAuthMode, type ConnectionsApiListBrokerageAuthorizationAccountscommercialApiKeyRequest, type ConnectionsApiListBrokerageAuthorizationAccountspersonalApiKeyRequest, type ConnectionsApiListBrokerageAuthorizationsArgs, type ConnectionsApiListBrokerageAuthorizationsBaseRequest, type ConnectionsApiListBrokerageAuthorizationsRequest, type ConnectionsApiListBrokerageAuthorizationsRequestByAuthMode, type ConnectionsApiListBrokerageAuthorizationscommercialApiKeyRequest, type ConnectionsApiListBrokerageAuthorizationspersonalApiKeyRequest, type ConnectionsApiListConnectionAccountsArgs, type ConnectionsApiListConnectionAccountsBaseRequest, type ConnectionsApiListConnectionAccountsRequest, type ConnectionsApiListConnectionAccountsRequestByAuthMode, type ConnectionsApiListConnectionAccountscommercialApiKeyRequest, type ConnectionsApiListConnectionAccountspersonalApiKeyRequest, type ConnectionsApiRefreshBrokerageAuthorizationArgs, type ConnectionsApiRefreshBrokerageAuthorizationBaseRequest, type ConnectionsApiRefreshBrokerageAuthorizationRequest, type ConnectionsApiRefreshBrokerageAuthorizationRequestByAuthMode, type ConnectionsApiRefreshBrokerageAuthorizationcommercialApiKeyRequest, type ConnectionsApiRefreshBrokerageAuthorizationpersonalApiKeyRequest, type ConnectionsApiReturnRatesArgs, type ConnectionsApiReturnRatesBaseRequest, type ConnectionsApiReturnRatesRequest, type ConnectionsApiReturnRatesRequestByAuthMode, type ConnectionsApiReturnRatescommercialApiKeyRequest, type ConnectionsApiReturnRatespersonalApiKeyRequest, type ConnectionsApiSyncBrokerageAuthorizationTransactionsArgs, type ConnectionsApiSyncBrokerageAuthorizationTransactionsBaseRequest, type ConnectionsApiSyncBrokerageAuthorizationTransactionsRequest, type ConnectionsApiSyncBrokerageAuthorizationTransactionsRequestByAuthMode, type ConnectionsApiSyncBrokerageAuthorizationTransactionscommercialApiKeyRequest, type ConnectionsApiSyncBrokerageAuthorizationTransactionspersonalApiKeyRequest, CryptoInstrument, CryptoOrderForm, CryptoOrderPreview, CryptoOrderPreviewEstimatedFee, CryptoTradingInstrument, CryptocurrencyPair, CryptocurrencyPairQuote, Currency, CurrencyNullable, DeleteConnectionConfirmation, DeleteUserResponse, DepositAccount, DepositAccountNetValue, DepositAccountSyncStatus, DividendAtDate, EncryptedResponse, EncryptedResponseEncryptedMessageData, EtfInstrument, Exchange, ExchangeRatePairs, ExperimentalEndpointsApi, type ExperimentalEndpointsApiAddSubscriptionArgs, type ExperimentalEndpointsApiAddSubscriptionBaseRequest, type ExperimentalEndpointsApiAddSubscriptionRequest, type ExperimentalEndpointsApiAddSubscriptionRequestByAuthMode, type ExperimentalEndpointsApiAddSubscriptioncommercialApiKeyRequest, type ExperimentalEndpointsApiAddSubscriptionpersonalApiKeyRequest, ExperimentalEndpointsApiAxiosParamCreator, type ExperimentalEndpointsApiCancelSubscriptionArgs, type ExperimentalEndpointsApiCancelSubscriptionBaseRequest, type ExperimentalEndpointsApiCancelSubscriptionRequest, type ExperimentalEndpointsApiCancelSubscriptionRequestByAuthMode, type ExperimentalEndpointsApiCancelSubscriptioncommercialApiKeyRequest, type ExperimentalEndpointsApiCancelSubscriptionpersonalApiKeyRequest, ExperimentalEndpointsApiFactory, ExperimentalEndpointsApiFp, ExperimentalEndpointsApiGenerated, type ExperimentalEndpointsApiGetAllAccountOrdersArgs, type ExperimentalEndpointsApiGetAllAccountOrdersBaseRequest, type ExperimentalEndpointsApiGetAllAccountOrdersRequest, type ExperimentalEndpointsApiGetAllAccountOrdersRequestByAuthMode, type ExperimentalEndpointsApiGetAllAccountOrderscommercialApiKeyRequest, type ExperimentalEndpointsApiGetAllAccountOrderspersonalApiKeyRequest, type ExperimentalEndpointsApiGetUserAccountOrderDetailV2Args, type ExperimentalEndpointsApiGetUserAccountOrderDetailV2BaseRequest, type ExperimentalEndpointsApiGetUserAccountOrderDetailV2Request, type ExperimentalEndpointsApiGetUserAccountOrderDetailV2RequestByAuthMode, type ExperimentalEndpointsApiGetUserAccountOrderDetailV2commercialApiKeyRequest, type ExperimentalEndpointsApiGetUserAccountOrderDetailV2personalApiKeyRequest, type ExperimentalEndpointsApiGetUserAccountOrdersV2Args, type ExperimentalEndpointsApiGetUserAccountOrdersV2BaseRequest, type ExperimentalEndpointsApiGetUserAccountOrdersV2Request, type ExperimentalEndpointsApiGetUserAccountOrdersV2RequestByAuthMode, type ExperimentalEndpointsApiGetUserAccountOrdersV2commercialApiKeyRequest, type ExperimentalEndpointsApiGetUserAccountOrdersV2personalApiKeyRequest, type ExperimentalEndpointsApiGetUserAccountRecentOrdersV2Args, type ExperimentalEndpointsApiGetUserAccountRecentOrdersV2BaseRequest, type ExperimentalEndpointsApiGetUserAccountRecentOrdersV2Request, type ExperimentalEndpointsApiGetUserAccountRecentOrdersV2RequestByAuthMode, type ExperimentalEndpointsApiGetUserAccountRecentOrdersV2commercialApiKeyRequest, type ExperimentalEndpointsApiGetUserAccountRecentOrdersV2personalApiKeyRequest, type ExperimentalEndpointsApiPlaceSimpleOrderArgs, type ExperimentalEndpointsApiPlaceSimpleOrderBaseRequest, type ExperimentalEndpointsApiPlaceSimpleOrderRequest, type ExperimentalEndpointsApiPlaceSimpleOrderRequestByAuthMode, type ExperimentalEndpointsApiPlaceSimpleOrdercommercialApiKeyRequest, type ExperimentalEndpointsApiPlaceSimpleOrderpersonalApiKeyRequest, FigiInstrument, FigiInstrumentNullable, FormDataLike, FutureInstrument, FutureOptionInstrument, HoldingsStatus, Institution, InstitutionConnection, InstitutionConnectionNullable, Instrument, InvestmentAccount, InvestmentAccountNetValue, LimitOrderType, LineOfCreditAccount, LineOfCreditAccountAvailableCredit, LineOfCreditAccountMinimumPaymentAmount, LineOfCreditAccountNetValue, LineOfCreditAccountSyncStatus, LoginRedirectURI, ManagementApi, ManagementApiAxiosParamCreator, ManagementApiFactory, ManagementApiFp, ManagementApiGenerated, type ManagementApiGetStatsArgs, type ManagementApiGetStatsBaseRequest, type ManagementApiGetStatsLegacyArgs, type ManagementApiGetStatsLegacyBaseRequest, type ManagementApiGetStatsLegacyRequest, type ManagementApiGetStatsLegacyRequestByAuthMode, type ManagementApiGetStatsLegacycommercialApiKeyRequest, type ManagementApiGetStatsLegacypersonalApiKeyRequest, type ManagementApiGetStatsRequest, type ManagementApiGetStatsRequestByAuthMode, type ManagementApiGetStatscommercialApiKeyRequest, type ManagementApiGetStatspersonalApiKeyRequest, ManualTrade, ManualTradeAndImpact, ManualTradeBalance, ManualTradeForm, ManualTradeFormBracket, ManualTradeFormComplex, ManualTradeFormWithOptions, ManualTradeImpact, ManualTradePlaceTimeInForceStrict, ManualTradeReplaceForm, ManualTradeSymbol, MarketOrderType, MlegActionStrict, MlegInstrumentType, MlegLeg, MlegOrderResponse, MlegOrderTypeStrict, MlegPriceEffectStrict, MlegPriceEffectStrictNullable, MlegTradeForm, MlegTradingInstrument, Model400FailedRequestResponse, Model401FailedRequestResponse, Model402BrokerageAuthAlreadyDisabledException, Model402BrokerageAuthDisabledResponse, Model403FailedRequestResponse, Model403FeatureNotEnabledResponse, Model404FailedRequestResponse, Model425FailedRequestResponse, Model429TooManyRequestsResponse, Model500UnexpectedExceptionResponse, Model501NotImplementedResponse, Model503BrokerageRequestResponse, Model503CurrencyConversionUnavailableResponse, MonthlyDividends, MutualFundInstrument, NetContributions, NetDividend, NotionalValue, NotionalValueNullable, OAuthWebhookBase, OptionBrokerageSymbol, OptionChainInner, OptionChainInnerChainPerRootInner, OptionChainInnerChainPerRootInnerChainPerStrikePriceInner, OptionImpact, OptionInstrument, OptionLeg, OptionQuote, OptionQuoteGreeks, OptionStrategy, OptionStrategyLegsInner, OptionsPosition, OptionsSymbol, OptionsSymbolNullable, OrderTypeConfiguration, OrderTypeStrict, OrderUpdatedResponse, OtherInstrument, OtherOrderType, PaginatedUniversalActivity, PaginationDetails, PartnerData, PartnerStats, PastValue, PerformanceCustom, PersonalApiKeyAuth, Position, PositionCurrency, PositionSymbol, RateOfReturnObject, RateOfReturnResponse, RecentOrdersResponse, ReferenceDataApi, ReferenceDataApiAxiosParamCreator, ReferenceDataApiFactory, ReferenceDataApiFp, ReferenceDataApiGenerated, type ReferenceDataApiGetSymbolsArgs, type ReferenceDataApiGetSymbolsBaseRequest, type ReferenceDataApiGetSymbolsByTickerArgs, type ReferenceDataApiGetSymbolsByTickerBaseRequest, type ReferenceDataApiGetSymbolsByTickerRequest, type ReferenceDataApiGetSymbolsByTickerRequestByAuthMode, type ReferenceDataApiGetSymbolsByTickercommercialApiKeyRequest, type ReferenceDataApiGetSymbolsByTickerpersonalApiKeyRequest, type ReferenceDataApiGetSymbolsRequest, type ReferenceDataApiGetSymbolsRequestByAuthMode, type ReferenceDataApiGetSymbolscommercialApiKeyRequest, type ReferenceDataApiGetSymbolspersonalApiKeyRequest, type ReferenceDataApiListAllBrokerageAuthorizationTypeArgs, type ReferenceDataApiListAllBrokerageAuthorizationTypeBaseRequest, type ReferenceDataApiListAllBrokerageAuthorizationTypeRequest, type ReferenceDataApiListAllBrokerageAuthorizationTypeRequestByAuthMode, type ReferenceDataApiListAllBrokerageAuthorizationTypecommercialApiKeyRequest, type ReferenceDataApiListAllBrokerageAuthorizationTypepersonalApiKeyRequest, type ReferenceDataApiListAllBrokerageInstrumentsArgs, type ReferenceDataApiListAllBrokerageInstrumentsBaseRequest, type ReferenceDataApiListAllBrokerageInstrumentsRequest, type ReferenceDataApiListAllBrokerageInstrumentsRequestByAuthMode, type ReferenceDataApiListAllBrokerageInstrumentscommercialApiKeyRequest, type ReferenceDataApiListAllBrokerageInstrumentspersonalApiKeyRequest, type ReferenceDataApiSymbolSearchUserAccountArgs, type ReferenceDataApiSymbolSearchUserAccountBaseRequest, type ReferenceDataApiSymbolSearchUserAccountRequest, type ReferenceDataApiSymbolSearchUserAccountRequestByAuthMode, type ReferenceDataApiSymbolSearchUserAccountcommercialApiKeyRequest, type ReferenceDataApiSymbolSearchUserAccountpersonalApiKeyRequest, SecurityType, SessionEvent, SimpleOrderForm, SimpleTradeForm, SimpleTradeInstrument, SimpleTradeLeg, SimpleTradeResponse, SnapTradeHoldingsAccount, SnapTradeHoldingsTotalValue, SnapTradeLoginUserRequestBody, SnapTradeRegisterUserRequestBody, Snaptrade, SnaptradeAuth, SnaptradeError, Status, StockInstrument, StopLimitOrderType, StopLoss, StopOrderType, StrategyOrderRecord, StrategyQuotes, StrategyQuotesGreek, SubPeriodReturnRate, Symbol, SymbolCurrency, SymbolExchange, SymbolNullable, SymbolQuery, SymbolsQuotesInner, TakeProfit, TaxLot, TimeInForceStrict, TokenizedAssetInstrument, TradeDetectionAddSubscriptionRequest, TradeDetectionCancelSubscriptionRequest, TradeDetectionCancelSubscriptionResponse, TradeDetectionSubscription, TradingApi, TradingApiAxiosParamCreator, type TradingApiCancelOrderArgs, type TradingApiCancelOrderBaseRequest, type TradingApiCancelOrderRequest, type TradingApiCancelOrderRequestByAuthMode, type TradingApiCancelOrdercommercialApiKeyRequest, type TradingApiCancelOrderpersonalApiKeyRequest, TradingApiFactory, TradingApiFp, TradingApiGenerated, type TradingApiGetCryptocurrencyPairQuoteArgs, type TradingApiGetCryptocurrencyPairQuoteBaseRequest, type TradingApiGetCryptocurrencyPairQuoteRequest, type TradingApiGetCryptocurrencyPairQuoteRequestByAuthMode, type TradingApiGetCryptocurrencyPairQuotecommercialApiKeyRequest, type TradingApiGetCryptocurrencyPairQuotepersonalApiKeyRequest, type TradingApiGetOptionImpactArgs, type TradingApiGetOptionImpactBaseRequest, type TradingApiGetOptionImpactRequest, type TradingApiGetOptionImpactRequestByAuthMode, type TradingApiGetOptionImpactcommercialApiKeyRequest, type TradingApiGetOptionImpactpersonalApiKeyRequest, type TradingApiGetOrderImpactArgs, type TradingApiGetOrderImpactBaseRequest, type TradingApiGetOrderImpactRequest, type TradingApiGetOrderImpactRequestByAuthMode, type TradingApiGetOrderImpactcommercialApiKeyRequest, type TradingApiGetOrderImpactpersonalApiKeyRequest, type TradingApiGetUserAccountOptionQuotesArgs, type TradingApiGetUserAccountOptionQuotesBaseRequest, type TradingApiGetUserAccountOptionQuotesRequest, type TradingApiGetUserAccountOptionQuotesRequestByAuthMode, type TradingApiGetUserAccountOptionQuotescommercialApiKeyRequest, type TradingApiGetUserAccountOptionQuotespersonalApiKeyRequest, type TradingApiGetUserAccountQuotesArgs, type TradingApiGetUserAccountQuotesBaseRequest, type TradingApiGetUserAccountQuotesRequest, type TradingApiGetUserAccountQuotesRequestByAuthMode, type TradingApiGetUserAccountQuotescommercialApiKeyRequest, type TradingApiGetUserAccountQuotespersonalApiKeyRequest, type TradingApiPlaceComplexOrderArgs, type TradingApiPlaceComplexOrderBaseRequest, type TradingApiPlaceComplexOrderRequest, type TradingApiPlaceComplexOrderRequestByAuthMode, type TradingApiPlaceComplexOrdercommercialApiKeyRequest, type TradingApiPlaceComplexOrderpersonalApiKeyRequest, type TradingApiPlaceCryptoOrderArgs, type TradingApiPlaceCryptoOrderBaseRequest, type TradingApiPlaceCryptoOrderRequest, type TradingApiPlaceCryptoOrderRequestByAuthMode, type TradingApiPlaceCryptoOrdercommercialApiKeyRequest, type TradingApiPlaceCryptoOrderpersonalApiKeyRequest, type TradingApiPlaceForceOrderArgs, type TradingApiPlaceForceOrderBaseRequest, type TradingApiPlaceForceOrderRequest, type TradingApiPlaceForceOrderRequestByAuthMode, type TradingApiPlaceForceOrdercommercialApiKeyRequest, type TradingApiPlaceForceOrderpersonalApiKeyRequest, type TradingApiPlaceMlegOrderArgs, type TradingApiPlaceMlegOrderBaseRequest, type TradingApiPlaceMlegOrderRequest, type TradingApiPlaceMlegOrderRequestByAuthMode, type TradingApiPlaceMlegOrdercommercialApiKeyRequest, type TradingApiPlaceMlegOrderpersonalApiKeyRequest, type TradingApiPlaceOrderArgs, type TradingApiPlaceOrderBaseRequest, type TradingApiPlaceOrderRequest, type TradingApiPlaceOrderRequestByAuthMode, type TradingApiPlaceOrdercommercialApiKeyRequest, type TradingApiPlaceOrderpersonalApiKeyRequest, type TradingApiPreviewCryptoOrderArgs, type TradingApiPreviewCryptoOrderBaseRequest, type TradingApiPreviewCryptoOrderRequest, type TradingApiPreviewCryptoOrderRequestByAuthMode, type TradingApiPreviewCryptoOrdercommercialApiKeyRequest, type TradingApiPreviewCryptoOrderpersonalApiKeyRequest, type TradingApiReplaceOrderArgs, type TradingApiReplaceOrderBaseRequest, type TradingApiReplaceOrderRequest, type TradingApiReplaceOrderRequestByAuthMode, type TradingApiReplaceOrdercommercialApiKeyRequest, type TradingApiReplaceOrderpersonalApiKeyRequest, type TradingApiSearchCryptocurrencyPairInstrumentsArgs, type TradingApiSearchCryptocurrencyPairInstrumentsBaseRequest, type TradingApiSearchCryptocurrencyPairInstrumentsRequest, type TradingApiSearchCryptocurrencyPairInstrumentsRequestByAuthMode, type TradingApiSearchCryptocurrencyPairInstrumentscommercialApiKeyRequest, type TradingApiSearchCryptocurrencyPairInstrumentspersonalApiKeyRequest, TradingGetUserAccountOptionQuotes410Response, TradingInstrument, TradingSearchCryptocurrencyPairInstruments200Response, TradingSession, TrailingStop, TrailingStopLimitOrderType, TrailingStopNullable, TrailingStopOrderType, TransactionsStatus, USExchange, UnderlyingCfdInstrument, UnderlyingOptionInstrument, UnderlyingSymbol, UnderlyingSymbolExchange, UnderlyingSymbolType, UnderlyingTokenizedAssetInstrument, UniversalActivity, UniversalSymbol, UniversalSymbolNullable, UserIDandSecret, ValidatedTradeBody, parseIfJson, readableStreamToString };
|