@finatic/client 0.9.9 → 0.9.11
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/CHANGELOG.md +5 -0
- package/dist/index.d.ts +747 -1401
- package/dist/index.js +371 -870
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +372 -871
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -131,6 +131,9 @@ declare class BaseAPI {
|
|
|
131
131
|
* https://openapi-generator.tech
|
|
132
132
|
* Do not edit the class manually.
|
|
133
133
|
*/
|
|
134
|
+
/**
|
|
135
|
+
* Broker-provided account number (top-level).
|
|
136
|
+
*/
|
|
134
137
|
interface Accountnumber {
|
|
135
138
|
}
|
|
136
139
|
|
|
@@ -413,6 +416,182 @@ interface BrokerInfo {
|
|
|
413
416
|
interface Buyingpower {
|
|
414
417
|
}
|
|
415
418
|
|
|
419
|
+
/**
|
|
420
|
+
* Finatic FastAPI Backend
|
|
421
|
+
* FinaticAPI REST API
|
|
422
|
+
*
|
|
423
|
+
* The version of the OpenAPI document: 1.0.0
|
|
424
|
+
*
|
|
425
|
+
*
|
|
426
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
427
|
+
* https://openapi-generator.tech
|
|
428
|
+
* Do not edit the class manually.
|
|
429
|
+
*/
|
|
430
|
+
/**
|
|
431
|
+
* Cancel-order payload enriched with NinjaTrader-specific extras.
|
|
432
|
+
*/
|
|
433
|
+
interface NinjaTraderOrderCancelQueryParams {
|
|
434
|
+
/**
|
|
435
|
+
* Broker-assigned order identifier
|
|
436
|
+
*/
|
|
437
|
+
'orderId': string;
|
|
438
|
+
'clOrdId'?: string | null;
|
|
439
|
+
'customTag50'?: string | null;
|
|
440
|
+
'activationTime'?: string | null;
|
|
441
|
+
'isAutomated'?: boolean | null;
|
|
442
|
+
}
|
|
443
|
+
|
|
444
|
+
/**
|
|
445
|
+
* Finatic FastAPI Backend
|
|
446
|
+
* FinaticAPI REST API
|
|
447
|
+
*
|
|
448
|
+
* The version of the OpenAPI document: 1.0.0
|
|
449
|
+
*
|
|
450
|
+
*
|
|
451
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
452
|
+
* https://openapi-generator.tech
|
|
453
|
+
* Do not edit the class manually.
|
|
454
|
+
*/
|
|
455
|
+
|
|
456
|
+
/**
|
|
457
|
+
* NinjaTrader cancel-order request body. Attributes ---------- broker : Literal[\"ninja_trader\"] Discriminator; must be ``\"ninja_trader\"``. account_number : str | int Broker-provided account number (top-level). Serialized as ``accountNumber``. order : NinjaTraderOrderCancelQueryParamsUnion NinjaTrader-specific cancel parameters. Notes ----- Uses ``extra=\"forbid\"`` and ``populate_by_name=True``.
|
|
458
|
+
*/
|
|
459
|
+
interface NinjaTraderOrderCancelRequest {
|
|
460
|
+
'broker': NinjaTraderOrderCancelRequestBrokerEnum;
|
|
461
|
+
'accountNumber': Accountnumber;
|
|
462
|
+
'order': NinjaTraderOrderCancelQueryParams;
|
|
463
|
+
}
|
|
464
|
+
declare enum NinjaTraderOrderCancelRequestBrokerEnum {
|
|
465
|
+
NinjaTrader = "ninja_trader"
|
|
466
|
+
}
|
|
467
|
+
|
|
468
|
+
/**
|
|
469
|
+
* Finatic FastAPI Backend
|
|
470
|
+
* FinaticAPI REST API
|
|
471
|
+
*
|
|
472
|
+
* The version of the OpenAPI document: 1.0.0
|
|
473
|
+
*
|
|
474
|
+
*
|
|
475
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
476
|
+
* https://openapi-generator.tech
|
|
477
|
+
* Do not edit the class manually.
|
|
478
|
+
*/
|
|
479
|
+
/**
|
|
480
|
+
* Cancel order query params for Robinhood. **NOTE:** This file is a template and was auto-generated. You must review and tailor the fields to pull from the full JSON query params model in the `src/finatic_broker_factory/brokers/robinhood/executors/raw/robinhood_order_cancel_raw_query_params.py` file. The goal is to offer a type-safe yet convenient schema that callers can use without worrying about the full raw REST payload - the executor layer will translate this higher-level model into the wire-level counterpart defined in `executors/raw/robinhood_order_cancel_raw_query_params.py`. Extends the core OrderCancelQueryParams with asset_type for routing to the correct cancel function. The order_id field is inherited from the core model. Matches the function signatures: - cancel_stock_order(orderID): Cancel a specific order - cancel_option_order(orderID): Cancel a specific option order - cancel_crypto_order(orderID): Cancel a specific crypto order
|
|
481
|
+
*/
|
|
482
|
+
interface RobinhoodOrderCancelQueryParams {
|
|
483
|
+
/**
|
|
484
|
+
* Broker-assigned order identifier
|
|
485
|
+
*/
|
|
486
|
+
'orderId': string;
|
|
487
|
+
/**
|
|
488
|
+
* Asset type for routing to correct cancel function (EQUITY, EQUITY_OPTION, or CRYPTO)
|
|
489
|
+
*/
|
|
490
|
+
'assetType'?: RobinhoodOrderCancelQueryParamsAssetTypeEnum;
|
|
491
|
+
}
|
|
492
|
+
declare enum RobinhoodOrderCancelQueryParamsAssetTypeEnum {
|
|
493
|
+
Equity = "equity",
|
|
494
|
+
EquityOption = "equity_option",
|
|
495
|
+
Crypto = "crypto"
|
|
496
|
+
}
|
|
497
|
+
|
|
498
|
+
/**
|
|
499
|
+
* Finatic FastAPI Backend
|
|
500
|
+
* FinaticAPI REST API
|
|
501
|
+
*
|
|
502
|
+
* The version of the OpenAPI document: 1.0.0
|
|
503
|
+
*
|
|
504
|
+
*
|
|
505
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
506
|
+
* https://openapi-generator.tech
|
|
507
|
+
* Do not edit the class manually.
|
|
508
|
+
*/
|
|
509
|
+
|
|
510
|
+
/**
|
|
511
|
+
* Robinhood cancel-order request body. Attributes ---------- broker : Literal[\"robinhood\"] Discriminator; must be ``\"robinhood\"``. account_number : str | int Broker-provided account number (top-level). Serialized as ``accountNumber``. order : RobinhoodOrderCancelQueryParamsUnion Robinhood-specific cancel parameters (e.g. order identifier). Notes ----- Uses ``extra=\"forbid\"`` and ``populate_by_name=True``.
|
|
512
|
+
*/
|
|
513
|
+
interface RobinhoodOrderCancelRequest {
|
|
514
|
+
'broker': RobinhoodOrderCancelRequestBrokerEnum;
|
|
515
|
+
'accountNumber': Accountnumber;
|
|
516
|
+
'order': RobinhoodOrderCancelQueryParams;
|
|
517
|
+
}
|
|
518
|
+
declare enum RobinhoodOrderCancelRequestBrokerEnum {
|
|
519
|
+
Robinhood = "robinhood"
|
|
520
|
+
}
|
|
521
|
+
|
|
522
|
+
/**
|
|
523
|
+
* Finatic FastAPI Backend
|
|
524
|
+
* FinaticAPI REST API
|
|
525
|
+
*
|
|
526
|
+
* The version of the OpenAPI document: 1.0.0
|
|
527
|
+
*
|
|
528
|
+
*
|
|
529
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
530
|
+
* https://openapi-generator.tech
|
|
531
|
+
* Do not edit the class manually.
|
|
532
|
+
*/
|
|
533
|
+
/**
|
|
534
|
+
* Cancel-order payload enriched with TastyTrade-specific *account_number*.
|
|
535
|
+
*/
|
|
536
|
+
interface TastyTradeOrderCancelQueryParams {
|
|
537
|
+
/**
|
|
538
|
+
* Broker-assigned order identifier
|
|
539
|
+
*/
|
|
540
|
+
'orderId': string;
|
|
541
|
+
/**
|
|
542
|
+
* TastyTrade account number owning the order.
|
|
543
|
+
*/
|
|
544
|
+
'accountNumber': number;
|
|
545
|
+
}
|
|
546
|
+
|
|
547
|
+
/**
|
|
548
|
+
* Finatic FastAPI Backend
|
|
549
|
+
* FinaticAPI REST API
|
|
550
|
+
*
|
|
551
|
+
* The version of the OpenAPI document: 1.0.0
|
|
552
|
+
*
|
|
553
|
+
*
|
|
554
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
555
|
+
* https://openapi-generator.tech
|
|
556
|
+
* Do not edit the class manually.
|
|
557
|
+
*/
|
|
558
|
+
|
|
559
|
+
/**
|
|
560
|
+
* TastyTrade cancel-order request body. Attributes ---------- broker : Literal[\"tasty_trade\"] Discriminator; must be ``\"tasty_trade\"``. account_number : str | int Broker-provided account number (top-level). Serialized as ``accountNumber``. order : TastyTradeOrderCancelQueryParams TastyTrade-specific cancel parameters. Notes ----- Uses ``extra=\"forbid\"`` and ``populate_by_name=True``.
|
|
561
|
+
*/
|
|
562
|
+
interface TastyTradeOrderCancelRequest {
|
|
563
|
+
'broker': TastyTradeOrderCancelRequestBrokerEnum;
|
|
564
|
+
'accountNumber': Accountnumber;
|
|
565
|
+
'order': TastyTradeOrderCancelQueryParams;
|
|
566
|
+
}
|
|
567
|
+
declare enum TastyTradeOrderCancelRequestBrokerEnum {
|
|
568
|
+
TastyTrade = "tasty_trade"
|
|
569
|
+
}
|
|
570
|
+
|
|
571
|
+
/**
|
|
572
|
+
* Finatic FastAPI Backend
|
|
573
|
+
* FinaticAPI REST API
|
|
574
|
+
*
|
|
575
|
+
* The version of the OpenAPI document: 1.0.0
|
|
576
|
+
*
|
|
577
|
+
*
|
|
578
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
579
|
+
* https://openapi-generator.tech
|
|
580
|
+
* Do not edit the class manually.
|
|
581
|
+
*/
|
|
582
|
+
|
|
583
|
+
/**
|
|
584
|
+
* @type CancelOrderApiBetaBrokersOrdersOrderIdDeleteRequest
|
|
585
|
+
* Broker-specific parameters object for *cancel order* operations
|
|
586
|
+
*/
|
|
587
|
+
type CancelOrderApiBetaBrokersOrdersOrderIdDeleteRequest = {
|
|
588
|
+
broker: 'ninja_trader';
|
|
589
|
+
} & NinjaTraderOrderCancelRequest | {
|
|
590
|
+
broker: 'robinhood';
|
|
591
|
+
} & RobinhoodOrderCancelRequest | {
|
|
592
|
+
broker: 'tasty_trade';
|
|
593
|
+
} & TastyTradeOrderCancelRequest;
|
|
594
|
+
|
|
416
595
|
/**
|
|
417
596
|
* Finatic FastAPI Backend
|
|
418
597
|
* FinaticAPI REST API
|
|
@@ -2110,62 +2289,6 @@ interface FinaticAPIErrorResponse {
|
|
|
2110
2289
|
};
|
|
2111
2290
|
}
|
|
2112
2291
|
|
|
2113
|
-
/**
|
|
2114
|
-
* Finatic FastAPI Backend
|
|
2115
|
-
* FinaticAPI REST API
|
|
2116
|
-
*
|
|
2117
|
-
* The version of the OpenAPI document: 1.0.0
|
|
2118
|
-
*
|
|
2119
|
-
*
|
|
2120
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
2121
|
-
* https://openapi-generator.tech
|
|
2122
|
-
* Do not edit the class manually.
|
|
2123
|
-
*/
|
|
2124
|
-
|
|
2125
|
-
/**
|
|
2126
|
-
* One leg within a spread for option orders. Used by order_option_spread() function. Matches the structure expected by the raw query params layer.
|
|
2127
|
-
*/
|
|
2128
|
-
interface FinaticBrokerFactoryBrokersRobinhoodExecutorsConsumerRobinhoodOrderModifyQueryParamsRobinhoodOptionSpreadLeg {
|
|
2129
|
-
'expirationDate': string;
|
|
2130
|
-
'strike': number;
|
|
2131
|
-
'optionType': BrokerDataOptionTypeEnum;
|
|
2132
|
-
'effect': FinaticBrokerFactoryBrokersRobinhoodExecutorsConsumerRobinhoodOrderModifyQueryParamsRobinhoodOptionSpreadLegEffectEnum;
|
|
2133
|
-
'action': BrokerDataOrderSideEnum;
|
|
2134
|
-
'ratioQuantity'?: number;
|
|
2135
|
-
}
|
|
2136
|
-
declare enum FinaticBrokerFactoryBrokersRobinhoodExecutorsConsumerRobinhoodOrderModifyQueryParamsRobinhoodOptionSpreadLegEffectEnum {
|
|
2137
|
-
Open = "open",
|
|
2138
|
-
Close = "close"
|
|
2139
|
-
}
|
|
2140
|
-
|
|
2141
|
-
/**
|
|
2142
|
-
* Finatic FastAPI Backend
|
|
2143
|
-
* FinaticAPI REST API
|
|
2144
|
-
*
|
|
2145
|
-
* The version of the OpenAPI document: 1.0.0
|
|
2146
|
-
*
|
|
2147
|
-
*
|
|
2148
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
2149
|
-
* https://openapi-generator.tech
|
|
2150
|
-
* Do not edit the class manually.
|
|
2151
|
-
*/
|
|
2152
|
-
|
|
2153
|
-
/**
|
|
2154
|
-
* One leg within a spread for option orders. Used by order_option_spread() function. Matches the structure expected by the raw query params layer.
|
|
2155
|
-
*/
|
|
2156
|
-
interface FinaticBrokerFactoryBrokersRobinhoodExecutorsConsumerRobinhoodOrderPlaceQueryParamsRobinhoodOptionSpreadLeg {
|
|
2157
|
-
'expirationDate': string;
|
|
2158
|
-
'strikePrice': number;
|
|
2159
|
-
'optionType': BrokerDataOptionTypeEnum;
|
|
2160
|
-
'positionEffect': FinaticBrokerFactoryBrokersRobinhoodExecutorsConsumerRobinhoodOrderPlaceQueryParamsRobinhoodOptionSpreadLegPositionEffectEnum;
|
|
2161
|
-
'action': BrokerDataOrderSideEnum;
|
|
2162
|
-
'ratioQuantity'?: number;
|
|
2163
|
-
}
|
|
2164
|
-
declare enum FinaticBrokerFactoryBrokersRobinhoodExecutorsConsumerRobinhoodOrderPlaceQueryParamsRobinhoodOptionSpreadLegPositionEffectEnum {
|
|
2165
|
-
Open = "open",
|
|
2166
|
-
Close = "close"
|
|
2167
|
-
}
|
|
2168
|
-
|
|
2169
2292
|
/**
|
|
2170
2293
|
* Finatic FastAPI Backend
|
|
2171
2294
|
* FinaticAPI REST API
|
|
@@ -3158,13 +3281,49 @@ interface FinaticResponseOrderActionResult {
|
|
|
3158
3281
|
* Do not edit the class manually.
|
|
3159
3282
|
*/
|
|
3160
3283
|
/**
|
|
3161
|
-
*
|
|
3284
|
+
* Status of a session.
|
|
3162
3285
|
*/
|
|
3163
|
-
|
|
3286
|
+
declare enum SessionStatus {
|
|
3287
|
+
Pending = "pending",
|
|
3288
|
+
Authenticating = "authenticating",
|
|
3289
|
+
Active = "active",
|
|
3290
|
+
Completed = "completed",
|
|
3291
|
+
Expired = "expired"
|
|
3292
|
+
}
|
|
3293
|
+
|
|
3294
|
+
/**
|
|
3295
|
+
* Finatic FastAPI Backend
|
|
3296
|
+
* FinaticAPI REST API
|
|
3297
|
+
*
|
|
3298
|
+
* The version of the OpenAPI document: 1.0.0
|
|
3299
|
+
*
|
|
3300
|
+
*
|
|
3301
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
3302
|
+
* https://openapi-generator.tech
|
|
3303
|
+
* Do not edit the class manually.
|
|
3304
|
+
*/
|
|
3305
|
+
|
|
3306
|
+
/**
|
|
3307
|
+
* Response data for session operations.
|
|
3308
|
+
*/
|
|
3309
|
+
interface SessionResponseData {
|
|
3164
3310
|
/**
|
|
3165
|
-
*
|
|
3311
|
+
* Session ID
|
|
3166
3312
|
*/
|
|
3167
|
-
'
|
|
3313
|
+
'session_id': string;
|
|
3314
|
+
/**
|
|
3315
|
+
* Company ID
|
|
3316
|
+
*/
|
|
3317
|
+
'company_id': string;
|
|
3318
|
+
/**
|
|
3319
|
+
* Session status
|
|
3320
|
+
*/
|
|
3321
|
+
'status': SessionStatus;
|
|
3322
|
+
/**
|
|
3323
|
+
* Session expiration time
|
|
3324
|
+
*/
|
|
3325
|
+
'expires_at': string;
|
|
3326
|
+
'user_id'?: string | null;
|
|
3168
3327
|
}
|
|
3169
3328
|
|
|
3170
3329
|
/**
|
|
@@ -3179,9 +3338,9 @@ interface PortalUrlResponse {
|
|
|
3179
3338
|
* Do not edit the class manually.
|
|
3180
3339
|
*/
|
|
3181
3340
|
|
|
3182
|
-
interface
|
|
3341
|
+
interface SuccessPayloadSessionResponseData {
|
|
3183
3342
|
'_id'?: string;
|
|
3184
|
-
'data'?:
|
|
3343
|
+
'data'?: SessionResponseData | null;
|
|
3185
3344
|
'meta'?: {
|
|
3186
3345
|
[key: string]: any;
|
|
3187
3346
|
} | null;
|
|
@@ -3199,7 +3358,7 @@ interface SuccessPayloadPortalUrlResponse {
|
|
|
3199
3358
|
* Do not edit the class manually.
|
|
3200
3359
|
*/
|
|
3201
3360
|
|
|
3202
|
-
interface
|
|
3361
|
+
interface FinaticResponseSessionResponseData {
|
|
3203
3362
|
/**
|
|
3204
3363
|
* Request trace identifier for tracking and debugging. Auto-generated if not provided.
|
|
3205
3364
|
*/
|
|
@@ -3207,7 +3366,7 @@ interface FinaticapiCoreStandardModelsAbstractResponsesFinaticResponsePortalUrlR
|
|
|
3207
3366
|
/**
|
|
3208
3367
|
* Success payload containing data and optional meta
|
|
3209
3368
|
*/
|
|
3210
|
-
'success':
|
|
3369
|
+
'success': SuccessPayloadSessionResponseData;
|
|
3211
3370
|
'error'?: {
|
|
3212
3371
|
[key: string]: any;
|
|
3213
3372
|
} | null;
|
|
@@ -3228,49 +3387,13 @@ interface FinaticapiCoreStandardModelsAbstractResponsesFinaticResponsePortalUrlR
|
|
|
3228
3387
|
* Do not edit the class manually.
|
|
3229
3388
|
*/
|
|
3230
3389
|
/**
|
|
3231
|
-
*
|
|
3390
|
+
* Response model for session user information.
|
|
3232
3391
|
*/
|
|
3233
|
-
|
|
3234
|
-
Pending = "pending",
|
|
3235
|
-
Authenticating = "authenticating",
|
|
3236
|
-
Active = "active",
|
|
3237
|
-
Completed = "completed",
|
|
3238
|
-
Expired = "expired"
|
|
3239
|
-
}
|
|
3240
|
-
|
|
3241
|
-
/**
|
|
3242
|
-
* Finatic FastAPI Backend
|
|
3243
|
-
* FinaticAPI REST API
|
|
3244
|
-
*
|
|
3245
|
-
* The version of the OpenAPI document: 1.0.0
|
|
3246
|
-
*
|
|
3247
|
-
*
|
|
3248
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
3249
|
-
* https://openapi-generator.tech
|
|
3250
|
-
* Do not edit the class manually.
|
|
3251
|
-
*/
|
|
3252
|
-
|
|
3253
|
-
/**
|
|
3254
|
-
* Response data for session operations.
|
|
3255
|
-
*/
|
|
3256
|
-
interface SessionResponseData {
|
|
3257
|
-
/**
|
|
3258
|
-
* Session ID
|
|
3259
|
-
*/
|
|
3260
|
-
'session_id': string;
|
|
3261
|
-
/**
|
|
3262
|
-
* Company ID
|
|
3263
|
-
*/
|
|
3264
|
-
'company_id': string;
|
|
3265
|
-
/**
|
|
3266
|
-
* Session status
|
|
3267
|
-
*/
|
|
3268
|
-
'status': SessionStatus;
|
|
3392
|
+
interface SessionUserResponse {
|
|
3269
3393
|
/**
|
|
3270
|
-
*
|
|
3394
|
+
* User ID
|
|
3271
3395
|
*/
|
|
3272
|
-
'
|
|
3273
|
-
'user_id'?: string | null;
|
|
3396
|
+
'user_id': string;
|
|
3274
3397
|
}
|
|
3275
3398
|
|
|
3276
3399
|
/**
|
|
@@ -3285,9 +3408,9 @@ interface SessionResponseData {
|
|
|
3285
3408
|
* Do not edit the class manually.
|
|
3286
3409
|
*/
|
|
3287
3410
|
|
|
3288
|
-
interface
|
|
3411
|
+
interface SuccessPayloadSessionUserResponse {
|
|
3289
3412
|
'_id'?: string;
|
|
3290
|
-
'data'?:
|
|
3413
|
+
'data'?: SessionUserResponse | null;
|
|
3291
3414
|
'meta'?: {
|
|
3292
3415
|
[key: string]: any;
|
|
3293
3416
|
} | null;
|
|
@@ -3305,7 +3428,7 @@ interface SuccessPayloadSessionResponseData {
|
|
|
3305
3428
|
* Do not edit the class manually.
|
|
3306
3429
|
*/
|
|
3307
3430
|
|
|
3308
|
-
interface
|
|
3431
|
+
interface FinaticResponseSessionUserResponse {
|
|
3309
3432
|
/**
|
|
3310
3433
|
* Request trace identifier for tracking and debugging. Auto-generated if not provided.
|
|
3311
3434
|
*/
|
|
@@ -3313,7 +3436,7 @@ interface FinaticapiCoreStandardModelsAbstractResponsesFinaticResponseSessionRes
|
|
|
3313
3436
|
/**
|
|
3314
3437
|
* Success payload containing data and optional meta
|
|
3315
3438
|
*/
|
|
3316
|
-
'success':
|
|
3439
|
+
'success': SuccessPayloadSessionUserResponse;
|
|
3317
3440
|
'error'?: {
|
|
3318
3441
|
[key: string]: any;
|
|
3319
3442
|
} | null;
|
|
@@ -3334,13 +3457,13 @@ interface FinaticapiCoreStandardModelsAbstractResponsesFinaticResponseSessionRes
|
|
|
3334
3457
|
* Do not edit the class manually.
|
|
3335
3458
|
*/
|
|
3336
3459
|
/**
|
|
3337
|
-
* Response model for
|
|
3460
|
+
* Response model for portal URL.
|
|
3338
3461
|
*/
|
|
3339
|
-
interface
|
|
3462
|
+
interface PortalUrlResponse {
|
|
3340
3463
|
/**
|
|
3341
|
-
*
|
|
3464
|
+
* Portal URL with token
|
|
3342
3465
|
*/
|
|
3343
|
-
'
|
|
3466
|
+
'portal_url': string;
|
|
3344
3467
|
}
|
|
3345
3468
|
|
|
3346
3469
|
/**
|
|
@@ -3355,9 +3478,9 @@ interface SessionUserResponse {
|
|
|
3355
3478
|
* Do not edit the class manually.
|
|
3356
3479
|
*/
|
|
3357
3480
|
|
|
3358
|
-
interface
|
|
3481
|
+
interface SuccessPayloadPortalUrlResponse {
|
|
3359
3482
|
'_id'?: string;
|
|
3360
|
-
'data'?:
|
|
3483
|
+
'data'?: PortalUrlResponse | null;
|
|
3361
3484
|
'meta'?: {
|
|
3362
3485
|
[key: string]: any;
|
|
3363
3486
|
} | null;
|
|
@@ -3375,7 +3498,7 @@ interface SuccessPayloadSessionUserResponse {
|
|
|
3375
3498
|
* Do not edit the class manually.
|
|
3376
3499
|
*/
|
|
3377
3500
|
|
|
3378
|
-
interface
|
|
3501
|
+
interface FinaticapiCoreStandardModelsAbstractResponsesFinaticResponsePortalUrlResponse2 {
|
|
3379
3502
|
/**
|
|
3380
3503
|
* Request trace identifier for tracking and debugging. Auto-generated if not provided.
|
|
3381
3504
|
*/
|
|
@@ -3383,7 +3506,7 @@ interface FinaticapiCoreStandardModelsAbstractResponsesFinaticResponseSessionUse
|
|
|
3383
3506
|
/**
|
|
3384
3507
|
* Success payload containing data and optional meta
|
|
3385
3508
|
*/
|
|
3386
|
-
'success':
|
|
3509
|
+
'success': SuccessPayloadPortalUrlResponse;
|
|
3387
3510
|
'error'?: {
|
|
3388
3511
|
[key: string]: any;
|
|
3389
3512
|
} | null;
|
|
@@ -3621,74 +3744,35 @@ type Timeinforce1 = {
|
|
|
3621
3744
|
*/
|
|
3622
3745
|
|
|
3623
3746
|
/**
|
|
3624
|
-
*
|
|
3747
|
+
* Parameters for a NinjaTrader limit order.
|
|
3625
3748
|
*/
|
|
3626
|
-
interface
|
|
3627
|
-
|
|
3628
|
-
'
|
|
3629
|
-
'
|
|
3630
|
-
'pegDifference'?: number | null;
|
|
3749
|
+
interface NinjaTraderLimitOrderPlaceQueryParams {
|
|
3750
|
+
[key: string]: any;
|
|
3751
|
+
'accountSpec'?: string | null;
|
|
3752
|
+
'isAutomated'?: boolean;
|
|
3631
3753
|
'activationTime'?: string | null;
|
|
3632
3754
|
'text'?: string | null;
|
|
3633
|
-
|
|
3634
|
-
|
|
3635
|
-
|
|
3636
|
-
'
|
|
3637
|
-
'orderType': NinjaTraderLimitOrderModifyQueryParamsOrderTypeEnum;
|
|
3638
|
-
'assetType': NinjaTraderLimitOrderModifyQueryParamsAssetTypeEnum;
|
|
3755
|
+
'pegDifference'?: number | null;
|
|
3756
|
+
'orderType': NinjaTraderLimitOrderPlaceQueryParamsOrderTypeEnum;
|
|
3757
|
+
'assetType': NinjaTraderLimitOrderPlaceQueryParamsAssetTypeEnum;
|
|
3758
|
+
'action': NinjaTraderLimitOrderPlaceQueryParamsActionEnum;
|
|
3639
3759
|
'timeInForce': Timeinforce1;
|
|
3640
|
-
'
|
|
3760
|
+
'symbol': string;
|
|
3761
|
+
'orderQty': number;
|
|
3641
3762
|
'price': number;
|
|
3642
3763
|
}
|
|
3643
|
-
declare enum
|
|
3764
|
+
declare enum NinjaTraderLimitOrderPlaceQueryParamsOrderTypeEnum {
|
|
3644
3765
|
Limit = "limit"
|
|
3645
3766
|
}
|
|
3646
|
-
declare enum
|
|
3767
|
+
declare enum NinjaTraderLimitOrderPlaceQueryParamsAssetTypeEnum {
|
|
3647
3768
|
Equity = "equity",
|
|
3648
3769
|
EquityOption = "equity_option",
|
|
3649
3770
|
Crypto = "crypto",
|
|
3650
3771
|
Forex = "forex"
|
|
3651
3772
|
}
|
|
3652
|
-
|
|
3653
|
-
|
|
3654
|
-
|
|
3655
|
-
* FinaticAPI REST API
|
|
3656
|
-
*
|
|
3657
|
-
* The version of the OpenAPI document: 1.0.0
|
|
3658
|
-
*
|
|
3659
|
-
*
|
|
3660
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
3661
|
-
* https://openapi-generator.tech
|
|
3662
|
-
* Do not edit the class manually.
|
|
3663
|
-
*/
|
|
3664
|
-
|
|
3665
|
-
/**
|
|
3666
|
-
* Market-order modification payload for NinjaTrader.
|
|
3667
|
-
*/
|
|
3668
|
-
interface NinjaTraderMarketOrderModifyQueryParams {
|
|
3669
|
-
'orderQty'?: number | null;
|
|
3670
|
-
'clOrdId'?: string | null;
|
|
3671
|
-
'maxShow'?: number | null;
|
|
3672
|
-
'pegDifference'?: number | null;
|
|
3673
|
-
'activationTime'?: string | null;
|
|
3674
|
-
'text'?: string | null;
|
|
3675
|
-
/**
|
|
3676
|
-
* Broker-assigned order identifier
|
|
3677
|
-
*/
|
|
3678
|
-
'orderId': string;
|
|
3679
|
-
'orderType': NinjaTraderMarketOrderModifyQueryParamsOrderTypeEnum;
|
|
3680
|
-
'assetType': NinjaTraderMarketOrderModifyQueryParamsAssetTypeEnum;
|
|
3681
|
-
'timeInForce': Timeinforce1;
|
|
3682
|
-
'isAutomated'?: boolean | null;
|
|
3683
|
-
}
|
|
3684
|
-
declare enum NinjaTraderMarketOrderModifyQueryParamsOrderTypeEnum {
|
|
3685
|
-
Market = "market"
|
|
3686
|
-
}
|
|
3687
|
-
declare enum NinjaTraderMarketOrderModifyQueryParamsAssetTypeEnum {
|
|
3688
|
-
Equity = "equity",
|
|
3689
|
-
EquityOption = "equity_option",
|
|
3690
|
-
Crypto = "crypto",
|
|
3691
|
-
Forex = "forex"
|
|
3773
|
+
declare enum NinjaTraderLimitOrderPlaceQueryParamsActionEnum {
|
|
3774
|
+
Buy = "buy",
|
|
3775
|
+
Sell = "sell"
|
|
3692
3776
|
}
|
|
3693
3777
|
|
|
3694
3778
|
/**
|
|
@@ -3704,120 +3788,34 @@ declare enum NinjaTraderMarketOrderModifyQueryParamsAssetTypeEnum {
|
|
|
3704
3788
|
*/
|
|
3705
3789
|
|
|
3706
3790
|
/**
|
|
3707
|
-
*
|
|
3791
|
+
* Parameters for a NinjaTrader market order.
|
|
3708
3792
|
*/
|
|
3709
|
-
interface
|
|
3710
|
-
|
|
3711
|
-
'
|
|
3712
|
-
'
|
|
3713
|
-
'pegDifference'?: number | null;
|
|
3793
|
+
interface NinjaTraderMarketOrderPlaceQueryParams {
|
|
3794
|
+
[key: string]: any;
|
|
3795
|
+
'accountSpec'?: string | null;
|
|
3796
|
+
'isAutomated'?: boolean;
|
|
3714
3797
|
'activationTime'?: string | null;
|
|
3715
3798
|
'text'?: string | null;
|
|
3716
|
-
/**
|
|
3717
|
-
* Broker-assigned order identifier
|
|
3718
|
-
*/
|
|
3719
|
-
'orderId': string;
|
|
3720
|
-
'orderType': NinjaTraderStopOrderModifyQueryParamsOrderTypeEnum;
|
|
3721
|
-
'assetType': NinjaTraderStopOrderModifyQueryParamsAssetTypeEnum;
|
|
3722
|
-
'timeInForce': Timeinforce1;
|
|
3723
|
-
'isAutomated'?: boolean | null;
|
|
3724
|
-
'stopPrice': number;
|
|
3725
|
-
}
|
|
3726
|
-
declare enum NinjaTraderStopOrderModifyQueryParamsOrderTypeEnum {
|
|
3727
|
-
Stop = "stop"
|
|
3728
|
-
}
|
|
3729
|
-
declare enum NinjaTraderStopOrderModifyQueryParamsAssetTypeEnum {
|
|
3730
|
-
Equity = "equity",
|
|
3731
|
-
EquityOption = "equity_option",
|
|
3732
|
-
Crypto = "crypto",
|
|
3733
|
-
Forex = "forex"
|
|
3734
|
-
}
|
|
3735
|
-
|
|
3736
|
-
/**
|
|
3737
|
-
* Finatic FastAPI Backend
|
|
3738
|
-
* FinaticAPI REST API
|
|
3739
|
-
*
|
|
3740
|
-
* The version of the OpenAPI document: 1.0.0
|
|
3741
|
-
*
|
|
3742
|
-
*
|
|
3743
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
3744
|
-
* https://openapi-generator.tech
|
|
3745
|
-
* Do not edit the class manually.
|
|
3746
|
-
*/
|
|
3747
|
-
|
|
3748
|
-
/**
|
|
3749
|
-
* Stop-Limit-order modification payload for NinjaTrader.
|
|
3750
|
-
*/
|
|
3751
|
-
interface NinjaTraderTrailingStopOrderModifyQueryParams {
|
|
3752
|
-
'orderQty'?: number | null;
|
|
3753
|
-
'clOrdId'?: string | null;
|
|
3754
|
-
'maxShow'?: number | null;
|
|
3755
3799
|
'pegDifference'?: number | null;
|
|
3756
|
-
'
|
|
3757
|
-
'
|
|
3758
|
-
|
|
3759
|
-
* Broker-assigned order identifier
|
|
3760
|
-
*/
|
|
3761
|
-
'orderId': string;
|
|
3762
|
-
'orderType': NinjaTraderTrailingStopOrderModifyQueryParamsOrderTypeEnum;
|
|
3763
|
-
'assetType': NinjaTraderTrailingStopOrderModifyQueryParamsAssetTypeEnum;
|
|
3800
|
+
'orderType': NinjaTraderMarketOrderPlaceQueryParamsOrderTypeEnum;
|
|
3801
|
+
'assetType': NinjaTraderMarketOrderPlaceQueryParamsAssetTypeEnum;
|
|
3802
|
+
'action': NinjaTraderMarketOrderPlaceQueryParamsActionEnum;
|
|
3764
3803
|
'timeInForce': Timeinforce1;
|
|
3765
|
-
'
|
|
3766
|
-
'
|
|
3804
|
+
'symbol': string;
|
|
3805
|
+
'orderQty': number;
|
|
3767
3806
|
}
|
|
3768
|
-
declare enum
|
|
3769
|
-
|
|
3807
|
+
declare enum NinjaTraderMarketOrderPlaceQueryParamsOrderTypeEnum {
|
|
3808
|
+
Market = "market"
|
|
3770
3809
|
}
|
|
3771
|
-
declare enum
|
|
3810
|
+
declare enum NinjaTraderMarketOrderPlaceQueryParamsAssetTypeEnum {
|
|
3772
3811
|
Equity = "equity",
|
|
3773
3812
|
EquityOption = "equity_option",
|
|
3774
3813
|
Crypto = "crypto",
|
|
3775
3814
|
Forex = "forex"
|
|
3776
3815
|
}
|
|
3777
|
-
|
|
3778
|
-
|
|
3779
|
-
|
|
3780
|
-
* FinaticAPI REST API
|
|
3781
|
-
*
|
|
3782
|
-
* The version of the OpenAPI document: 1.0.0
|
|
3783
|
-
*
|
|
3784
|
-
*
|
|
3785
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
3786
|
-
* https://openapi-generator.tech
|
|
3787
|
-
* Do not edit the class manually.
|
|
3788
|
-
*/
|
|
3789
|
-
|
|
3790
|
-
/**
|
|
3791
|
-
* @type Order3
|
|
3792
|
-
*/
|
|
3793
|
-
type Order3 = {
|
|
3794
|
-
orderType: 'limit';
|
|
3795
|
-
} & NinjaTraderLimitOrderModifyQueryParams | {
|
|
3796
|
-
orderType: 'market';
|
|
3797
|
-
} & NinjaTraderMarketOrderModifyQueryParams | {
|
|
3798
|
-
orderType: 'stop';
|
|
3799
|
-
} & NinjaTraderStopOrderModifyQueryParams | {
|
|
3800
|
-
orderType: 'trailing_stop';
|
|
3801
|
-
} & NinjaTraderTrailingStopOrderModifyQueryParams;
|
|
3802
|
-
|
|
3803
|
-
/**
|
|
3804
|
-
* Finatic FastAPI Backend
|
|
3805
|
-
* FinaticAPI REST API
|
|
3806
|
-
*
|
|
3807
|
-
* The version of the OpenAPI document: 1.0.0
|
|
3808
|
-
*
|
|
3809
|
-
*
|
|
3810
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
3811
|
-
* https://openapi-generator.tech
|
|
3812
|
-
* Do not edit the class manually.
|
|
3813
|
-
*/
|
|
3814
|
-
|
|
3815
|
-
interface NinjaTraderOrderModifyRequest {
|
|
3816
|
-
'broker': NinjaTraderOrderModifyRequestBrokerEnum;
|
|
3817
|
-
'order': Order3;
|
|
3818
|
-
}
|
|
3819
|
-
declare enum NinjaTraderOrderModifyRequestBrokerEnum {
|
|
3820
|
-
NinjaTrader = "ninja_trader"
|
|
3816
|
+
declare enum NinjaTraderMarketOrderPlaceQueryParamsActionEnum {
|
|
3817
|
+
Buy = "buy",
|
|
3818
|
+
Sell = "sell"
|
|
3821
3819
|
}
|
|
3822
3820
|
|
|
3823
3821
|
/**
|
|
@@ -3828,649 +3826,10 @@ declare enum NinjaTraderOrderModifyRequestBrokerEnum {
|
|
|
3828
3826
|
*
|
|
3829
3827
|
*
|
|
3830
3828
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
3831
|
-
* https://openapi-generator.tech
|
|
3832
|
-
* Do not edit the class manually.
|
|
3833
|
-
*/
|
|
3834
|
-
|
|
3835
|
-
/**
|
|
3836
|
-
* Limit order modification with Robinhood-specific extras.
|
|
3837
|
-
*/
|
|
3838
|
-
interface RobinhoodLimitOrderModifyQueryParams {
|
|
3839
|
-
[key: string]: any;
|
|
3840
|
-
/**
|
|
3841
|
-
* Allow trading during extended hours (premium users only)
|
|
3842
|
-
*/
|
|
3843
|
-
'extendedHours'?: boolean;
|
|
3844
|
-
/**
|
|
3845
|
-
* Market hours to trade in
|
|
3846
|
-
*/
|
|
3847
|
-
'marketHours'?: RobinhoodLimitOrderModifyQueryParamsMarketHoursEnum;
|
|
3848
|
-
'direction'?: RobinhoodLimitOrderModifyQueryParamsDirectionEnum | null;
|
|
3849
|
-
'spread'?: Array<FinaticBrokerFactoryBrokersRobinhoodExecutorsConsumerRobinhoodOrderModifyQueryParamsRobinhoodOptionSpreadLeg> | null;
|
|
3850
|
-
'positionEffect'?: RobinhoodLimitOrderModifyQueryParamsPositionEffectEnum | null;
|
|
3851
|
-
'creditOrDebit'?: RobinhoodLimitOrderModifyQueryParamsCreditOrDebitEnum | null;
|
|
3852
|
-
'expirationDate'?: string | null;
|
|
3853
|
-
'strike'?: number | null;
|
|
3854
|
-
'optionType'?: RobinhoodLimitOrderModifyQueryParamsOptionTypeEnum | null;
|
|
3855
|
-
/**
|
|
3856
|
-
* Whether quantityOrPrice represents quantity or price
|
|
3857
|
-
*/
|
|
3858
|
-
'amountIn'?: RobinhoodLimitOrderModifyQueryParamsAmountInEnum;
|
|
3859
|
-
/**
|
|
3860
|
-
* Broker-assigned order identifier
|
|
3861
|
-
*/
|
|
3862
|
-
'orderId': string;
|
|
3863
|
-
'orderType': RobinhoodLimitOrderModifyQueryParamsOrderTypeEnum;
|
|
3864
|
-
'assetType': RobinhoodLimitOrderModifyQueryParamsAssetTypeEnum;
|
|
3865
|
-
'timeInForce': Timeinforce1;
|
|
3866
|
-
'isAutomated'?: boolean | null;
|
|
3867
|
-
'price': number;
|
|
3868
|
-
}
|
|
3869
|
-
declare enum RobinhoodLimitOrderModifyQueryParamsMarketHoursEnum {
|
|
3870
|
-
RegularHours = "regular_hours",
|
|
3871
|
-
AllDayHours = "all_day_hours",
|
|
3872
|
-
ExtendedHours = "extended_hours"
|
|
3873
|
-
}
|
|
3874
|
-
declare enum RobinhoodLimitOrderModifyQueryParamsDirectionEnum {
|
|
3875
|
-
Debit = "debit",
|
|
3876
|
-
Credit = "credit"
|
|
3877
|
-
}
|
|
3878
|
-
declare enum RobinhoodLimitOrderModifyQueryParamsPositionEffectEnum {
|
|
3879
|
-
Open = "open",
|
|
3880
|
-
Close = "close"
|
|
3881
|
-
}
|
|
3882
|
-
declare enum RobinhoodLimitOrderModifyQueryParamsCreditOrDebitEnum {
|
|
3883
|
-
Debit = "debit",
|
|
3884
|
-
Credit = "credit"
|
|
3885
|
-
}
|
|
3886
|
-
declare enum RobinhoodLimitOrderModifyQueryParamsOptionTypeEnum {
|
|
3887
|
-
Call = "call",
|
|
3888
|
-
Put = "put",
|
|
3889
|
-
Both = "both"
|
|
3890
|
-
}
|
|
3891
|
-
declare enum RobinhoodLimitOrderModifyQueryParamsAmountInEnum {
|
|
3892
|
-
Quantity = "quantity",
|
|
3893
|
-
Price = "price"
|
|
3894
|
-
}
|
|
3895
|
-
declare enum RobinhoodLimitOrderModifyQueryParamsOrderTypeEnum {
|
|
3896
|
-
Limit = "limit"
|
|
3897
|
-
}
|
|
3898
|
-
declare enum RobinhoodLimitOrderModifyQueryParamsAssetTypeEnum {
|
|
3899
|
-
Equity = "equity",
|
|
3900
|
-
EquityOption = "equity_option",
|
|
3901
|
-
Crypto = "crypto",
|
|
3902
|
-
Forex = "forex"
|
|
3903
|
-
}
|
|
3904
|
-
|
|
3905
|
-
/**
|
|
3906
|
-
* Finatic FastAPI Backend
|
|
3907
|
-
* FinaticAPI REST API
|
|
3908
|
-
*
|
|
3909
|
-
* The version of the OpenAPI document: 1.0.0
|
|
3910
|
-
*
|
|
3911
|
-
*
|
|
3912
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
3913
|
-
* https://openapi-generator.tech
|
|
3914
|
-
* Do not edit the class manually.
|
|
3915
|
-
*/
|
|
3916
|
-
|
|
3917
|
-
/**
|
|
3918
|
-
* Market order modification with Robinhood-specific extras.
|
|
3919
|
-
*/
|
|
3920
|
-
interface RobinhoodMarketOrderModifyQueryParams {
|
|
3921
|
-
[key: string]: any;
|
|
3922
|
-
/**
|
|
3923
|
-
* Allow trading during extended hours (premium users only)
|
|
3924
|
-
*/
|
|
3925
|
-
'extendedHours'?: boolean;
|
|
3926
|
-
/**
|
|
3927
|
-
* Market hours to trade in
|
|
3928
|
-
*/
|
|
3929
|
-
'marketHours'?: RobinhoodMarketOrderModifyQueryParamsMarketHoursEnum;
|
|
3930
|
-
'direction'?: RobinhoodMarketOrderModifyQueryParamsDirectionEnum | null;
|
|
3931
|
-
'spread'?: Array<FinaticBrokerFactoryBrokersRobinhoodExecutorsConsumerRobinhoodOrderModifyQueryParamsRobinhoodOptionSpreadLeg> | null;
|
|
3932
|
-
'positionEffect'?: RobinhoodMarketOrderModifyQueryParamsPositionEffectEnum | null;
|
|
3933
|
-
'creditOrDebit'?: RobinhoodMarketOrderModifyQueryParamsCreditOrDebitEnum | null;
|
|
3934
|
-
'expirationDate'?: string | null;
|
|
3935
|
-
'strike'?: number | null;
|
|
3936
|
-
'optionType'?: RobinhoodMarketOrderModifyQueryParamsOptionTypeEnum | null;
|
|
3937
|
-
/**
|
|
3938
|
-
* Whether quantityOrPrice represents quantity or price
|
|
3939
|
-
*/
|
|
3940
|
-
'amountIn'?: RobinhoodMarketOrderModifyQueryParamsAmountInEnum;
|
|
3941
|
-
/**
|
|
3942
|
-
* Broker-assigned order identifier
|
|
3943
|
-
*/
|
|
3944
|
-
'orderId': string;
|
|
3945
|
-
'orderType': RobinhoodMarketOrderModifyQueryParamsOrderTypeEnum;
|
|
3946
|
-
'assetType': RobinhoodMarketOrderModifyQueryParamsAssetTypeEnum;
|
|
3947
|
-
'timeInForce': Timeinforce1;
|
|
3948
|
-
'isAutomated'?: boolean | null;
|
|
3949
|
-
}
|
|
3950
|
-
declare enum RobinhoodMarketOrderModifyQueryParamsMarketHoursEnum {
|
|
3951
|
-
RegularHours = "regular_hours",
|
|
3952
|
-
AllDayHours = "all_day_hours",
|
|
3953
|
-
ExtendedHours = "extended_hours"
|
|
3954
|
-
}
|
|
3955
|
-
declare enum RobinhoodMarketOrderModifyQueryParamsDirectionEnum {
|
|
3956
|
-
Debit = "debit",
|
|
3957
|
-
Credit = "credit"
|
|
3958
|
-
}
|
|
3959
|
-
declare enum RobinhoodMarketOrderModifyQueryParamsPositionEffectEnum {
|
|
3960
|
-
Open = "open",
|
|
3961
|
-
Close = "close"
|
|
3962
|
-
}
|
|
3963
|
-
declare enum RobinhoodMarketOrderModifyQueryParamsCreditOrDebitEnum {
|
|
3964
|
-
Debit = "debit",
|
|
3965
|
-
Credit = "credit"
|
|
3966
|
-
}
|
|
3967
|
-
declare enum RobinhoodMarketOrderModifyQueryParamsOptionTypeEnum {
|
|
3968
|
-
Call = "call",
|
|
3969
|
-
Put = "put",
|
|
3970
|
-
Both = "both"
|
|
3971
|
-
}
|
|
3972
|
-
declare enum RobinhoodMarketOrderModifyQueryParamsAmountInEnum {
|
|
3973
|
-
Quantity = "quantity",
|
|
3974
|
-
Price = "price"
|
|
3975
|
-
}
|
|
3976
|
-
declare enum RobinhoodMarketOrderModifyQueryParamsOrderTypeEnum {
|
|
3977
|
-
Market = "market"
|
|
3978
|
-
}
|
|
3979
|
-
declare enum RobinhoodMarketOrderModifyQueryParamsAssetTypeEnum {
|
|
3980
|
-
Equity = "equity",
|
|
3981
|
-
EquityOption = "equity_option",
|
|
3982
|
-
Crypto = "crypto",
|
|
3983
|
-
Forex = "forex"
|
|
3984
|
-
}
|
|
3985
|
-
|
|
3986
|
-
/**
|
|
3987
|
-
* Finatic FastAPI Backend
|
|
3988
|
-
* FinaticAPI REST API
|
|
3989
|
-
*
|
|
3990
|
-
* The version of the OpenAPI document: 1.0.0
|
|
3991
|
-
*
|
|
3992
|
-
*
|
|
3993
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
3994
|
-
* https://openapi-generator.tech
|
|
3995
|
-
* Do not edit the class manually.
|
|
3996
|
-
*/
|
|
3997
|
-
|
|
3998
|
-
/**
|
|
3999
|
-
* Stop order modification with Robinhood-specific extras.
|
|
4000
|
-
*/
|
|
4001
|
-
interface RobinhoodStopOrderModifyQueryParams {
|
|
4002
|
-
[key: string]: any;
|
|
4003
|
-
/**
|
|
4004
|
-
* Allow trading during extended hours (premium users only)
|
|
4005
|
-
*/
|
|
4006
|
-
'extendedHours'?: boolean;
|
|
4007
|
-
/**
|
|
4008
|
-
* Market hours to trade in
|
|
4009
|
-
*/
|
|
4010
|
-
'marketHours'?: RobinhoodStopOrderModifyQueryParamsMarketHoursEnum;
|
|
4011
|
-
'direction'?: RobinhoodStopOrderModifyQueryParamsDirectionEnum | null;
|
|
4012
|
-
'spread'?: Array<FinaticBrokerFactoryBrokersRobinhoodExecutorsConsumerRobinhoodOrderModifyQueryParamsRobinhoodOptionSpreadLeg> | null;
|
|
4013
|
-
'positionEffect'?: RobinhoodStopOrderModifyQueryParamsPositionEffectEnum | null;
|
|
4014
|
-
'creditOrDebit'?: RobinhoodStopOrderModifyQueryParamsCreditOrDebitEnum | null;
|
|
4015
|
-
'expirationDate'?: string | null;
|
|
4016
|
-
'strike'?: number | null;
|
|
4017
|
-
'optionType'?: RobinhoodStopOrderModifyQueryParamsOptionTypeEnum | null;
|
|
4018
|
-
/**
|
|
4019
|
-
* Whether quantityOrPrice represents quantity or price
|
|
4020
|
-
*/
|
|
4021
|
-
'amountIn'?: RobinhoodStopOrderModifyQueryParamsAmountInEnum;
|
|
4022
|
-
/**
|
|
4023
|
-
* Broker-assigned order identifier
|
|
4024
|
-
*/
|
|
4025
|
-
'orderId': string;
|
|
4026
|
-
'orderType': RobinhoodStopOrderModifyQueryParamsOrderTypeEnum;
|
|
4027
|
-
'assetType': RobinhoodStopOrderModifyQueryParamsAssetTypeEnum;
|
|
4028
|
-
'timeInForce': Timeinforce1;
|
|
4029
|
-
'isAutomated'?: boolean | null;
|
|
4030
|
-
'stopPrice': number;
|
|
4031
|
-
}
|
|
4032
|
-
declare enum RobinhoodStopOrderModifyQueryParamsMarketHoursEnum {
|
|
4033
|
-
RegularHours = "regular_hours",
|
|
4034
|
-
AllDayHours = "all_day_hours",
|
|
4035
|
-
ExtendedHours = "extended_hours"
|
|
4036
|
-
}
|
|
4037
|
-
declare enum RobinhoodStopOrderModifyQueryParamsDirectionEnum {
|
|
4038
|
-
Debit = "debit",
|
|
4039
|
-
Credit = "credit"
|
|
4040
|
-
}
|
|
4041
|
-
declare enum RobinhoodStopOrderModifyQueryParamsPositionEffectEnum {
|
|
4042
|
-
Open = "open",
|
|
4043
|
-
Close = "close"
|
|
4044
|
-
}
|
|
4045
|
-
declare enum RobinhoodStopOrderModifyQueryParamsCreditOrDebitEnum {
|
|
4046
|
-
Debit = "debit",
|
|
4047
|
-
Credit = "credit"
|
|
4048
|
-
}
|
|
4049
|
-
declare enum RobinhoodStopOrderModifyQueryParamsOptionTypeEnum {
|
|
4050
|
-
Call = "call",
|
|
4051
|
-
Put = "put",
|
|
4052
|
-
Both = "both"
|
|
4053
|
-
}
|
|
4054
|
-
declare enum RobinhoodStopOrderModifyQueryParamsAmountInEnum {
|
|
4055
|
-
Quantity = "quantity",
|
|
4056
|
-
Price = "price"
|
|
4057
|
-
}
|
|
4058
|
-
declare enum RobinhoodStopOrderModifyQueryParamsOrderTypeEnum {
|
|
4059
|
-
Stop = "stop"
|
|
4060
|
-
}
|
|
4061
|
-
declare enum RobinhoodStopOrderModifyQueryParamsAssetTypeEnum {
|
|
4062
|
-
Equity = "equity",
|
|
4063
|
-
EquityOption = "equity_option",
|
|
4064
|
-
Crypto = "crypto",
|
|
4065
|
-
Forex = "forex"
|
|
4066
|
-
}
|
|
4067
|
-
|
|
4068
|
-
/**
|
|
4069
|
-
* Finatic FastAPI Backend
|
|
4070
|
-
* FinaticAPI REST API
|
|
4071
|
-
*
|
|
4072
|
-
* The version of the OpenAPI document: 1.0.0
|
|
4073
|
-
*
|
|
4074
|
-
*
|
|
4075
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
4076
|
-
* https://openapi-generator.tech
|
|
4077
|
-
* Do not edit the class manually.
|
|
4078
|
-
*/
|
|
4079
|
-
|
|
4080
|
-
/**
|
|
4081
|
-
* Trailing stop order modification with Robinhood-specific extras.
|
|
4082
|
-
*/
|
|
4083
|
-
interface RobinhoodTrailingStopOrderModifyQueryParams {
|
|
4084
|
-
[key: string]: any;
|
|
4085
|
-
/**
|
|
4086
|
-
* Allow trading during extended hours (premium users only)
|
|
4087
|
-
*/
|
|
4088
|
-
'extendedHours'?: boolean;
|
|
4089
|
-
/**
|
|
4090
|
-
* Market hours to trade in
|
|
4091
|
-
*/
|
|
4092
|
-
'marketHours'?: RobinhoodTrailingStopOrderModifyQueryParamsMarketHoursEnum;
|
|
4093
|
-
'direction'?: RobinhoodTrailingStopOrderModifyQueryParamsDirectionEnum | null;
|
|
4094
|
-
'spread'?: Array<FinaticBrokerFactoryBrokersRobinhoodExecutorsConsumerRobinhoodOrderModifyQueryParamsRobinhoodOptionSpreadLeg> | null;
|
|
4095
|
-
'positionEffect'?: RobinhoodTrailingStopOrderModifyQueryParamsPositionEffectEnum | null;
|
|
4096
|
-
'creditOrDebit'?: RobinhoodTrailingStopOrderModifyQueryParamsCreditOrDebitEnum | null;
|
|
4097
|
-
'expirationDate'?: string | null;
|
|
4098
|
-
'strike'?: number | null;
|
|
4099
|
-
'optionType'?: RobinhoodTrailingStopOrderModifyQueryParamsOptionTypeEnum | null;
|
|
4100
|
-
/**
|
|
4101
|
-
* Whether quantityOrPrice represents quantity or price
|
|
4102
|
-
*/
|
|
4103
|
-
'amountIn'?: RobinhoodTrailingStopOrderModifyQueryParamsAmountInEnum;
|
|
4104
|
-
/**
|
|
4105
|
-
* Broker-assigned order identifier
|
|
4106
|
-
*/
|
|
4107
|
-
'orderId': string;
|
|
4108
|
-
'orderType': RobinhoodTrailingStopOrderModifyQueryParamsOrderTypeEnum;
|
|
4109
|
-
'assetType': RobinhoodTrailingStopOrderModifyQueryParamsAssetTypeEnum;
|
|
4110
|
-
'timeInForce': Timeinforce1;
|
|
4111
|
-
'isAutomated'?: boolean | null;
|
|
4112
|
-
'stopPrice': number;
|
|
4113
|
-
}
|
|
4114
|
-
declare enum RobinhoodTrailingStopOrderModifyQueryParamsMarketHoursEnum {
|
|
4115
|
-
RegularHours = "regular_hours",
|
|
4116
|
-
AllDayHours = "all_day_hours",
|
|
4117
|
-
ExtendedHours = "extended_hours"
|
|
4118
|
-
}
|
|
4119
|
-
declare enum RobinhoodTrailingStopOrderModifyQueryParamsDirectionEnum {
|
|
4120
|
-
Debit = "debit",
|
|
4121
|
-
Credit = "credit"
|
|
4122
|
-
}
|
|
4123
|
-
declare enum RobinhoodTrailingStopOrderModifyQueryParamsPositionEffectEnum {
|
|
4124
|
-
Open = "open",
|
|
4125
|
-
Close = "close"
|
|
4126
|
-
}
|
|
4127
|
-
declare enum RobinhoodTrailingStopOrderModifyQueryParamsCreditOrDebitEnum {
|
|
4128
|
-
Debit = "debit",
|
|
4129
|
-
Credit = "credit"
|
|
4130
|
-
}
|
|
4131
|
-
declare enum RobinhoodTrailingStopOrderModifyQueryParamsOptionTypeEnum {
|
|
4132
|
-
Call = "call",
|
|
4133
|
-
Put = "put",
|
|
4134
|
-
Both = "both"
|
|
4135
|
-
}
|
|
4136
|
-
declare enum RobinhoodTrailingStopOrderModifyQueryParamsAmountInEnum {
|
|
4137
|
-
Quantity = "quantity",
|
|
4138
|
-
Price = "price"
|
|
4139
|
-
}
|
|
4140
|
-
declare enum RobinhoodTrailingStopOrderModifyQueryParamsOrderTypeEnum {
|
|
4141
|
-
TrailingStop = "trailing_stop"
|
|
4142
|
-
}
|
|
4143
|
-
declare enum RobinhoodTrailingStopOrderModifyQueryParamsAssetTypeEnum {
|
|
4144
|
-
Equity = "equity",
|
|
4145
|
-
EquityOption = "equity_option",
|
|
4146
|
-
Crypto = "crypto",
|
|
4147
|
-
Forex = "forex"
|
|
4148
|
-
}
|
|
4149
|
-
|
|
4150
|
-
/**
|
|
4151
|
-
* Finatic FastAPI Backend
|
|
4152
|
-
* FinaticAPI REST API
|
|
4153
|
-
*
|
|
4154
|
-
* The version of the OpenAPI document: 1.0.0
|
|
4155
|
-
*
|
|
4156
|
-
*
|
|
4157
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
4158
|
-
* https://openapi-generator.tech
|
|
4159
|
-
* Do not edit the class manually.
|
|
4160
|
-
*/
|
|
4161
|
-
|
|
4162
|
-
/**
|
|
4163
|
-
* @type Order5
|
|
4164
|
-
*/
|
|
4165
|
-
type Order5 = {
|
|
4166
|
-
orderType: 'limit';
|
|
4167
|
-
} & RobinhoodLimitOrderModifyQueryParams | {
|
|
4168
|
-
orderType: 'market';
|
|
4169
|
-
} & RobinhoodMarketOrderModifyQueryParams | {
|
|
4170
|
-
orderType: 'stop';
|
|
4171
|
-
} & RobinhoodStopOrderModifyQueryParams | {
|
|
4172
|
-
orderType: 'trailing_stop';
|
|
4173
|
-
} & RobinhoodTrailingStopOrderModifyQueryParams;
|
|
4174
|
-
|
|
4175
|
-
/**
|
|
4176
|
-
* Finatic FastAPI Backend
|
|
4177
|
-
* FinaticAPI REST API
|
|
4178
|
-
*
|
|
4179
|
-
* The version of the OpenAPI document: 1.0.0
|
|
4180
|
-
*
|
|
4181
|
-
*
|
|
4182
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
4183
|
-
* https://openapi-generator.tech
|
|
4184
|
-
* Do not edit the class manually.
|
|
4185
|
-
*/
|
|
4186
|
-
|
|
4187
|
-
interface RobinhoodOrderModifyRequest {
|
|
4188
|
-
'broker': RobinhoodOrderModifyRequestBrokerEnum;
|
|
4189
|
-
'order': Order5;
|
|
4190
|
-
}
|
|
4191
|
-
declare enum RobinhoodOrderModifyRequestBrokerEnum {
|
|
4192
|
-
Robinhood = "robinhood"
|
|
4193
|
-
}
|
|
4194
|
-
|
|
4195
|
-
/**
|
|
4196
|
-
* Finatic FastAPI Backend
|
|
4197
|
-
* FinaticAPI REST API
|
|
4198
|
-
*
|
|
4199
|
-
* The version of the OpenAPI document: 1.0.0
|
|
4200
|
-
*
|
|
4201
|
-
*
|
|
4202
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
4203
|
-
* https://openapi-generator.tech
|
|
4204
|
-
* Do not edit the class manually.
|
|
4205
|
-
*/
|
|
4206
|
-
|
|
4207
|
-
/**
|
|
4208
|
-
* Limit-order modification payload.
|
|
4209
|
-
*/
|
|
4210
|
-
interface TastyTradeLimitOrderModifyQueryParams {
|
|
4211
|
-
'accountNumber': number;
|
|
4212
|
-
'automated-source'?: boolean;
|
|
4213
|
-
'external-identifier'?: string | null;
|
|
4214
|
-
'partition-key'?: string | null;
|
|
4215
|
-
'preflight-id'?: string | null;
|
|
4216
|
-
'source'?: string | null;
|
|
4217
|
-
/**
|
|
4218
|
-
* Broker-assigned order identifier
|
|
4219
|
-
*/
|
|
4220
|
-
'orderId': string;
|
|
4221
|
-
'orderType': TastyTradeLimitOrderModifyQueryParamsOrderTypeEnum;
|
|
4222
|
-
'assetType': TastyTradeLimitOrderModifyQueryParamsAssetTypeEnum;
|
|
4223
|
-
'timeInForce': Timeinforce1;
|
|
4224
|
-
'isAutomated'?: boolean | null;
|
|
4225
|
-
'price': number;
|
|
4226
|
-
}
|
|
4227
|
-
declare enum TastyTradeLimitOrderModifyQueryParamsOrderTypeEnum {
|
|
4228
|
-
Limit = "limit"
|
|
4229
|
-
}
|
|
4230
|
-
declare enum TastyTradeLimitOrderModifyQueryParamsAssetTypeEnum {
|
|
4231
|
-
Equity = "equity",
|
|
4232
|
-
EquityOption = "equity_option",
|
|
4233
|
-
Crypto = "crypto",
|
|
4234
|
-
Forex = "forex"
|
|
4235
|
-
}
|
|
4236
|
-
|
|
4237
|
-
/**
|
|
4238
|
-
* Finatic FastAPI Backend
|
|
4239
|
-
* FinaticAPI REST API
|
|
4240
|
-
*
|
|
4241
|
-
* The version of the OpenAPI document: 1.0.0
|
|
4242
|
-
*
|
|
4243
|
-
*
|
|
4244
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
4245
|
-
* https://openapi-generator.tech
|
|
4246
|
-
* Do not edit the class manually.
|
|
4247
|
-
*/
|
|
4248
|
-
|
|
4249
|
-
/**
|
|
4250
|
-
* Market-order modification payload.
|
|
4251
|
-
*/
|
|
4252
|
-
interface TastyTradeMarketOrderModifyQueryParams {
|
|
4253
|
-
'accountNumber': number;
|
|
4254
|
-
'automated-source'?: boolean;
|
|
4255
|
-
'external-identifier'?: string | null;
|
|
4256
|
-
'partition-key'?: string | null;
|
|
4257
|
-
'preflight-id'?: string | null;
|
|
4258
|
-
'source'?: string | null;
|
|
4259
|
-
/**
|
|
4260
|
-
* Broker-assigned order identifier
|
|
4261
|
-
*/
|
|
4262
|
-
'orderId': string;
|
|
4263
|
-
'orderType': TastyTradeMarketOrderModifyQueryParamsOrderTypeEnum;
|
|
4264
|
-
'assetType': TastyTradeMarketOrderModifyQueryParamsAssetTypeEnum;
|
|
4265
|
-
'timeInForce': Timeinforce1;
|
|
4266
|
-
'isAutomated'?: boolean | null;
|
|
4267
|
-
}
|
|
4268
|
-
declare enum TastyTradeMarketOrderModifyQueryParamsOrderTypeEnum {
|
|
4269
|
-
Market = "market"
|
|
4270
|
-
}
|
|
4271
|
-
declare enum TastyTradeMarketOrderModifyQueryParamsAssetTypeEnum {
|
|
4272
|
-
Equity = "equity",
|
|
4273
|
-
EquityOption = "equity_option",
|
|
4274
|
-
Crypto = "crypto",
|
|
4275
|
-
Forex = "forex"
|
|
4276
|
-
}
|
|
4277
|
-
|
|
4278
|
-
/**
|
|
4279
|
-
* Finatic FastAPI Backend
|
|
4280
|
-
* FinaticAPI REST API
|
|
4281
|
-
*
|
|
4282
|
-
* The version of the OpenAPI document: 1.0.0
|
|
4283
|
-
*
|
|
4284
|
-
*
|
|
4285
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
4286
|
-
* https://openapi-generator.tech
|
|
4287
|
-
* Do not edit the class manually.
|
|
4288
|
-
*/
|
|
4289
|
-
|
|
4290
|
-
/**
|
|
4291
|
-
* Stop-order modification payload.
|
|
4292
|
-
*/
|
|
4293
|
-
interface TastyTradeStopOrderModifyQueryParams {
|
|
4294
|
-
'accountNumber': number;
|
|
4295
|
-
'automated-source'?: boolean;
|
|
4296
|
-
'external-identifier'?: string | null;
|
|
4297
|
-
'partition-key'?: string | null;
|
|
4298
|
-
'preflight-id'?: string | null;
|
|
4299
|
-
'source'?: string | null;
|
|
4300
|
-
/**
|
|
4301
|
-
* Broker-assigned order identifier
|
|
4302
|
-
*/
|
|
4303
|
-
'orderId': string;
|
|
4304
|
-
'orderType': TastyTradeStopOrderModifyQueryParamsOrderTypeEnum;
|
|
4305
|
-
'assetType': TastyTradeStopOrderModifyQueryParamsAssetTypeEnum;
|
|
4306
|
-
'timeInForce': Timeinforce1;
|
|
4307
|
-
'isAutomated'?: boolean | null;
|
|
4308
|
-
'stopPrice': number;
|
|
4309
|
-
}
|
|
4310
|
-
declare enum TastyTradeStopOrderModifyQueryParamsOrderTypeEnum {
|
|
4311
|
-
Stop = "stop"
|
|
4312
|
-
}
|
|
4313
|
-
declare enum TastyTradeStopOrderModifyQueryParamsAssetTypeEnum {
|
|
4314
|
-
Equity = "equity",
|
|
4315
|
-
EquityOption = "equity_option",
|
|
4316
|
-
Crypto = "crypto",
|
|
4317
|
-
Forex = "forex"
|
|
4318
|
-
}
|
|
4319
|
-
|
|
4320
|
-
/**
|
|
4321
|
-
* Finatic FastAPI Backend
|
|
4322
|
-
* FinaticAPI REST API
|
|
4323
|
-
*
|
|
4324
|
-
* The version of the OpenAPI document: 1.0.0
|
|
4325
|
-
*
|
|
4326
|
-
*
|
|
4327
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
4328
|
-
* https://openapi-generator.tech
|
|
4329
|
-
* Do not edit the class manually.
|
|
4330
|
-
*/
|
|
4331
|
-
|
|
4332
|
-
/**
|
|
4333
|
-
* Trailing-stop modification payload.
|
|
4334
|
-
*/
|
|
4335
|
-
interface TastyTradeTrailingStopOrderModifyQueryParams {
|
|
4336
|
-
'accountNumber': number;
|
|
4337
|
-
'automated-source'?: boolean;
|
|
4338
|
-
'external-identifier'?: string | null;
|
|
4339
|
-
'partition-key'?: string | null;
|
|
4340
|
-
'preflight-id'?: string | null;
|
|
4341
|
-
'source'?: string | null;
|
|
4342
|
-
/**
|
|
4343
|
-
* Broker-assigned order identifier
|
|
4344
|
-
*/
|
|
4345
|
-
'orderId': string;
|
|
4346
|
-
'orderType': TastyTradeTrailingStopOrderModifyQueryParamsOrderTypeEnum;
|
|
4347
|
-
'assetType': TastyTradeTrailingStopOrderModifyQueryParamsAssetTypeEnum;
|
|
4348
|
-
'timeInForce': Timeinforce1;
|
|
4349
|
-
'isAutomated'?: boolean | null;
|
|
4350
|
-
'stopPrice': number;
|
|
4351
|
-
}
|
|
4352
|
-
declare enum TastyTradeTrailingStopOrderModifyQueryParamsOrderTypeEnum {
|
|
4353
|
-
TrailingStop = "trailing_stop"
|
|
4354
|
-
}
|
|
4355
|
-
declare enum TastyTradeTrailingStopOrderModifyQueryParamsAssetTypeEnum {
|
|
4356
|
-
Equity = "equity",
|
|
4357
|
-
EquityOption = "equity_option",
|
|
4358
|
-
Crypto = "crypto",
|
|
4359
|
-
Forex = "forex"
|
|
4360
|
-
}
|
|
4361
|
-
|
|
4362
|
-
/**
|
|
4363
|
-
* Finatic FastAPI Backend
|
|
4364
|
-
* FinaticAPI REST API
|
|
4365
|
-
*
|
|
4366
|
-
* The version of the OpenAPI document: 1.0.0
|
|
4367
|
-
*
|
|
4368
|
-
*
|
|
4369
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
4370
|
-
* https://openapi-generator.tech
|
|
4371
|
-
* Do not edit the class manually.
|
|
4372
|
-
*/
|
|
4373
|
-
|
|
4374
|
-
/**
|
|
4375
|
-
* @type Order4
|
|
4376
|
-
*/
|
|
4377
|
-
type Order4 = {
|
|
4378
|
-
orderType: 'limit';
|
|
4379
|
-
} & TastyTradeLimitOrderModifyQueryParams | {
|
|
4380
|
-
orderType: 'market';
|
|
4381
|
-
} & TastyTradeMarketOrderModifyQueryParams | {
|
|
4382
|
-
orderType: 'stop';
|
|
4383
|
-
} & TastyTradeStopOrderModifyQueryParams | {
|
|
4384
|
-
orderType: 'trailing_stop';
|
|
4385
|
-
} & TastyTradeTrailingStopOrderModifyQueryParams;
|
|
4386
|
-
|
|
4387
|
-
/**
|
|
4388
|
-
* Finatic FastAPI Backend
|
|
4389
|
-
* FinaticAPI REST API
|
|
4390
|
-
*
|
|
4391
|
-
* The version of the OpenAPI document: 1.0.0
|
|
4392
|
-
*
|
|
4393
|
-
*
|
|
4394
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
4395
|
-
* https://openapi-generator.tech
|
|
4396
|
-
* Do not edit the class manually.
|
|
4397
|
-
*/
|
|
4398
|
-
|
|
4399
|
-
interface TastyTradeOrderModifyRequest {
|
|
4400
|
-
'broker': TastyTradeOrderModifyRequestBrokerEnum;
|
|
4401
|
-
'order': Order4;
|
|
4402
|
-
}
|
|
4403
|
-
declare enum TastyTradeOrderModifyRequestBrokerEnum {
|
|
4404
|
-
TastyTrade = "tasty_trade"
|
|
4405
|
-
}
|
|
4406
|
-
|
|
4407
|
-
/**
|
|
4408
|
-
* Finatic FastAPI Backend
|
|
4409
|
-
* FinaticAPI REST API
|
|
4410
|
-
*
|
|
4411
|
-
* The version of the OpenAPI document: 1.0.0
|
|
4412
|
-
*
|
|
4413
|
-
*
|
|
4414
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
4415
|
-
* https://openapi-generator.tech
|
|
4416
|
-
* Do not edit the class manually.
|
|
4417
|
-
*/
|
|
4418
|
-
|
|
4419
|
-
/**
|
|
4420
|
-
* @type ModifyOrderApiBetaBrokersOrdersOrderIdPatchRequest
|
|
4421
|
-
* Broker-specific parameters object for *modify order* operations
|
|
4422
|
-
*/
|
|
4423
|
-
type ModifyOrderApiBetaBrokersOrdersOrderIdPatchRequest = {
|
|
4424
|
-
broker: 'ninja_trader';
|
|
4425
|
-
} & NinjaTraderOrderModifyRequest | {
|
|
4426
|
-
broker: 'robinhood';
|
|
4427
|
-
} & RobinhoodOrderModifyRequest | {
|
|
4428
|
-
broker: 'tasty_trade';
|
|
4429
|
-
} & TastyTradeOrderModifyRequest;
|
|
4430
|
-
|
|
4431
|
-
/**
|
|
4432
|
-
* Finatic FastAPI Backend
|
|
4433
|
-
* FinaticAPI REST API
|
|
4434
|
-
*
|
|
4435
|
-
* The version of the OpenAPI document: 1.0.0
|
|
4436
|
-
*
|
|
4437
|
-
*
|
|
4438
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
4439
|
-
* https://openapi-generator.tech
|
|
4440
|
-
* Do not edit the class manually.
|
|
4441
|
-
*/
|
|
4442
|
-
|
|
4443
|
-
/**
|
|
4444
|
-
* Parameters for a NinjaTrader limit order.
|
|
4445
|
-
*/
|
|
4446
|
-
interface NinjaTraderLimitOrderPlaceQueryParams {
|
|
4447
|
-
[key: string]: any;
|
|
4448
|
-
'accountSpec'?: string | null;
|
|
4449
|
-
'isAutomated'?: boolean;
|
|
4450
|
-
'activationTime'?: string | null;
|
|
4451
|
-
'text'?: string | null;
|
|
4452
|
-
'pegDifference'?: number | null;
|
|
4453
|
-
'accountNumber': Accountnumber;
|
|
4454
|
-
'orderType': NinjaTraderLimitOrderPlaceQueryParamsOrderTypeEnum;
|
|
4455
|
-
'assetType': NinjaTraderLimitOrderPlaceQueryParamsAssetTypeEnum;
|
|
4456
|
-
'action': NinjaTraderLimitOrderPlaceQueryParamsActionEnum;
|
|
4457
|
-
'timeInForce': Timeinforce1;
|
|
4458
|
-
'symbol': string;
|
|
4459
|
-
'orderQty': number;
|
|
4460
|
-
'price': number;
|
|
4461
|
-
}
|
|
4462
|
-
declare enum NinjaTraderLimitOrderPlaceQueryParamsOrderTypeEnum {
|
|
4463
|
-
Limit = "limit"
|
|
4464
|
-
}
|
|
4465
|
-
declare enum NinjaTraderLimitOrderPlaceQueryParamsAssetTypeEnum {
|
|
4466
|
-
Equity = "equity",
|
|
4467
|
-
EquityOption = "equity_option",
|
|
4468
|
-
Crypto = "crypto",
|
|
4469
|
-
Forex = "forex"
|
|
4470
|
-
}
|
|
4471
|
-
declare enum NinjaTraderLimitOrderPlaceQueryParamsActionEnum {
|
|
4472
|
-
Buy = "buy",
|
|
4473
|
-
Sell = "sell"
|
|
3829
|
+
* https://openapi-generator.tech
|
|
3830
|
+
* Do not edit the class manually.
|
|
3831
|
+
*/
|
|
3832
|
+
interface Timeinforce2 {
|
|
4474
3833
|
}
|
|
4475
3834
|
|
|
4476
3835
|
/**
|
|
@@ -4486,35 +3845,54 @@ declare enum NinjaTraderLimitOrderPlaceQueryParamsActionEnum {
|
|
|
4486
3845
|
*/
|
|
4487
3846
|
|
|
4488
3847
|
/**
|
|
4489
|
-
*
|
|
3848
|
+
* Core fields shared by every *modify order* operation. When used as the API request body (delta), all fields are optional and at least one must be present. Subclasses override with required discriminators for the full params union passed to the broker after merge.
|
|
4490
3849
|
*/
|
|
4491
|
-
interface
|
|
3850
|
+
interface OrderModifyQueryParamsBase {
|
|
4492
3851
|
[key: string]: any;
|
|
4493
|
-
'
|
|
4494
|
-
'
|
|
4495
|
-
'
|
|
4496
|
-
'
|
|
4497
|
-
'
|
|
4498
|
-
'
|
|
4499
|
-
'
|
|
4500
|
-
'
|
|
4501
|
-
'action': NinjaTraderMarketOrderPlaceQueryParamsActionEnum;
|
|
4502
|
-
'timeInForce': Timeinforce1;
|
|
4503
|
-
'symbol': string;
|
|
4504
|
-
'orderQty': number;
|
|
3852
|
+
'orderId'?: string | null;
|
|
3853
|
+
'orderType'?: OrderModifyQueryParamsBaseOrderTypeEnum | null;
|
|
3854
|
+
'assetType'?: OrderModifyQueryParamsBaseAssetTypeEnum | null;
|
|
3855
|
+
'timeInForce'?: Timeinforce2 | null;
|
|
3856
|
+
'isAutomated'?: boolean | null;
|
|
3857
|
+
'price'?: number | null;
|
|
3858
|
+
'stopPrice'?: number | null;
|
|
3859
|
+
'orderQty'?: number | null;
|
|
4505
3860
|
}
|
|
4506
|
-
declare enum
|
|
4507
|
-
Market = "market"
|
|
3861
|
+
declare enum OrderModifyQueryParamsBaseOrderTypeEnum {
|
|
3862
|
+
Market = "market",
|
|
3863
|
+
Limit = "limit",
|
|
3864
|
+
Stop = "stop",
|
|
3865
|
+
TrailingStop = "trailing_stop"
|
|
4508
3866
|
}
|
|
4509
|
-
declare enum
|
|
3867
|
+
declare enum OrderModifyQueryParamsBaseAssetTypeEnum {
|
|
4510
3868
|
Equity = "equity",
|
|
4511
3869
|
EquityOption = "equity_option",
|
|
4512
3870
|
Crypto = "crypto",
|
|
4513
3871
|
Forex = "forex"
|
|
4514
3872
|
}
|
|
4515
|
-
|
|
4516
|
-
|
|
4517
|
-
|
|
3873
|
+
|
|
3874
|
+
/**
|
|
3875
|
+
* Finatic FastAPI Backend
|
|
3876
|
+
* FinaticAPI REST API
|
|
3877
|
+
*
|
|
3878
|
+
* The version of the OpenAPI document: 1.0.0
|
|
3879
|
+
*
|
|
3880
|
+
*
|
|
3881
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
3882
|
+
* https://openapi-generator.tech
|
|
3883
|
+
* Do not edit the class manually.
|
|
3884
|
+
*/
|
|
3885
|
+
|
|
3886
|
+
/**
|
|
3887
|
+
* NinjaTrader modify-order request body (partial update). Attributes ---------- broker : Literal[\"ninja_trader\"] Discriminator; must be ``\"ninja_trader\"``. account_number : str | int Broker-provided account number (top-level). Serialized as ``accountNumber``. order : OrderModifyQueryParamsBase Delta of fields to change; backend merges with existing order. Notes ----- Uses ``extra=\"forbid\"`` and ``populate_by_name=True``.
|
|
3888
|
+
*/
|
|
3889
|
+
interface NinjaTraderOrderModifyRequest {
|
|
3890
|
+
'broker': NinjaTraderOrderModifyRequestBrokerEnum;
|
|
3891
|
+
'accountNumber': Accountnumber;
|
|
3892
|
+
'order': OrderModifyQueryParamsBase;
|
|
3893
|
+
}
|
|
3894
|
+
declare enum NinjaTraderOrderModifyRequestBrokerEnum {
|
|
3895
|
+
NinjaTrader = "ninja_trader"
|
|
4518
3896
|
}
|
|
4519
3897
|
|
|
4520
3898
|
/**
|
|
@@ -4539,7 +3917,6 @@ interface NinjaTraderStopOrderPlaceQueryParams {
|
|
|
4539
3917
|
'activationTime'?: string | null;
|
|
4540
3918
|
'text'?: string | null;
|
|
4541
3919
|
'pegDifference'?: number | null;
|
|
4542
|
-
'accountNumber': Accountnumber;
|
|
4543
3920
|
'orderType': NinjaTraderStopOrderPlaceQueryParamsOrderTypeEnum;
|
|
4544
3921
|
'assetType': NinjaTraderStopOrderPlaceQueryParamsAssetTypeEnum;
|
|
4545
3922
|
'action': NinjaTraderStopOrderPlaceQueryParamsActionEnum;
|
|
@@ -4584,7 +3961,6 @@ interface NinjaTraderTrailingStopOrderPlaceQueryParams {
|
|
|
4584
3961
|
'activationTime'?: string | null;
|
|
4585
3962
|
'text'?: string | null;
|
|
4586
3963
|
'pegDifference'?: number | null;
|
|
4587
|
-
'accountNumber': Accountnumber;
|
|
4588
3964
|
'orderType': NinjaTraderTrailingStopOrderPlaceQueryParamsOrderTypeEnum;
|
|
4589
3965
|
'assetType': NinjaTraderTrailingStopOrderPlaceQueryParamsAssetTypeEnum;
|
|
4590
3966
|
'action': NinjaTraderTrailingStopOrderPlaceQueryParamsActionEnum;
|
|
@@ -4645,16 +4021,45 @@ type Order = {
|
|
|
4645
4021
|
*/
|
|
4646
4022
|
|
|
4647
4023
|
/**
|
|
4648
|
-
*
|
|
4024
|
+
* NinjaTrader place-order request body. Attributes ---------- broker : Literal[\"ninja_trader\"] Discriminator; must be ``\"ninja_trader\"``. account_number : str | int Broker-provided account number (top-level). Serialized as ``accountNumber``. order : NinjaTraderOrderPlaceQueryParamsUnion NinjaTrader-specific order parameters (equity, etc.; may include accountSpec, isAutomated). Notes ----- Uses ``extra=\"forbid\"`` and ``populate_by_name=True``. JSON schema examples are attached in model_config for OpenAPI docs.
|
|
4649
4025
|
*/
|
|
4650
4026
|
interface NinjaTraderOrderPlaceRequest {
|
|
4651
4027
|
'broker': NinjaTraderOrderPlaceRequestBrokerEnum;
|
|
4028
|
+
'accountNumber': Accountnumber;
|
|
4652
4029
|
'order': Order;
|
|
4653
4030
|
}
|
|
4654
4031
|
declare enum NinjaTraderOrderPlaceRequestBrokerEnum {
|
|
4655
4032
|
NinjaTrader = "ninja_trader"
|
|
4656
4033
|
}
|
|
4657
4034
|
|
|
4035
|
+
/**
|
|
4036
|
+
* Finatic FastAPI Backend
|
|
4037
|
+
* FinaticAPI REST API
|
|
4038
|
+
*
|
|
4039
|
+
* The version of the OpenAPI document: 1.0.0
|
|
4040
|
+
*
|
|
4041
|
+
*
|
|
4042
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
4043
|
+
* https://openapi-generator.tech
|
|
4044
|
+
* Do not edit the class manually.
|
|
4045
|
+
*/
|
|
4046
|
+
|
|
4047
|
+
/**
|
|
4048
|
+
* One leg within a spread for option orders. Used by order_option_spread() function. Matches the structure expected by the raw query params layer.
|
|
4049
|
+
*/
|
|
4050
|
+
interface RobinhoodOptionSpreadLeg {
|
|
4051
|
+
'expirationDate': string;
|
|
4052
|
+
'strikePrice': number;
|
|
4053
|
+
'optionType': BrokerDataOptionTypeEnum;
|
|
4054
|
+
'positionEffect': RobinhoodOptionSpreadLegPositionEffectEnum;
|
|
4055
|
+
'action': BrokerDataOrderSideEnum;
|
|
4056
|
+
'ratioQuantity'?: number;
|
|
4057
|
+
}
|
|
4058
|
+
declare enum RobinhoodOptionSpreadLegPositionEffectEnum {
|
|
4059
|
+
Open = "open",
|
|
4060
|
+
Close = "close"
|
|
4061
|
+
}
|
|
4062
|
+
|
|
4658
4063
|
/**
|
|
4659
4064
|
* Finatic FastAPI Backend
|
|
4660
4065
|
* FinaticAPI REST API
|
|
@@ -4668,7 +4073,6 @@ declare enum NinjaTraderOrderPlaceRequestBrokerEnum {
|
|
|
4668
4073
|
*/
|
|
4669
4074
|
|
|
4670
4075
|
interface Order1 {
|
|
4671
|
-
'accountNumber': Accountnumber;
|
|
4672
4076
|
'orderType': Order1OrderTypeEnum;
|
|
4673
4077
|
'assetType'?: Order1AssetTypeEnum;
|
|
4674
4078
|
'action': Order1ActionEnum;
|
|
@@ -4687,7 +4091,7 @@ interface Order1 {
|
|
|
4687
4091
|
'stopPrice': number;
|
|
4688
4092
|
'limitPrice': number;
|
|
4689
4093
|
'direction'?: Order1DirectionEnum;
|
|
4690
|
-
'spread'?: Array<
|
|
4094
|
+
'spread'?: Array<RobinhoodOptionSpreadLeg>;
|
|
4691
4095
|
'positionEffect'?: Order1PositionEffectEnum;
|
|
4692
4096
|
'creditOrDebit'?: Order1CreditOrDebitEnum;
|
|
4693
4097
|
'expirationDate'?: string;
|
|
@@ -4752,7 +4156,6 @@ declare enum Order1AmountInEnum {
|
|
|
4752
4156
|
*/
|
|
4753
4157
|
interface RobinhoodEquityLimitOrderPlaceQueryParams {
|
|
4754
4158
|
[key: string]: any;
|
|
4755
|
-
'accountNumber': Accountnumber;
|
|
4756
4159
|
'orderType': RobinhoodEquityLimitOrderPlaceQueryParamsOrderTypeEnum;
|
|
4757
4160
|
'assetType'?: RobinhoodEquityLimitOrderPlaceQueryParamsAssetTypeEnum;
|
|
4758
4161
|
'action': RobinhoodEquityLimitOrderPlaceQueryParamsActionEnum;
|
|
@@ -4802,7 +4205,6 @@ declare enum RobinhoodEquityLimitOrderPlaceQueryParamsMarketHoursEnum {
|
|
|
4802
4205
|
*/
|
|
4803
4206
|
interface RobinhoodEquityMarketOrderPlaceQueryParams {
|
|
4804
4207
|
[key: string]: any;
|
|
4805
|
-
'accountNumber': Accountnumber;
|
|
4806
4208
|
'orderType': RobinhoodEquityMarketOrderPlaceQueryParamsOrderTypeEnum;
|
|
4807
4209
|
'assetType'?: RobinhoodEquityMarketOrderPlaceQueryParamsAssetTypeEnum;
|
|
4808
4210
|
'action': RobinhoodEquityMarketOrderPlaceQueryParamsActionEnum;
|
|
@@ -4851,7 +4253,6 @@ declare enum RobinhoodEquityMarketOrderPlaceQueryParamsMarketHoursEnum {
|
|
|
4851
4253
|
*/
|
|
4852
4254
|
interface RobinhoodEquityStopLimitOrderPlaceQueryParams {
|
|
4853
4255
|
[key: string]: any;
|
|
4854
|
-
'accountNumber': Accountnumber;
|
|
4855
4256
|
'orderType': RobinhoodEquityStopLimitOrderPlaceQueryParamsOrderTypeEnum;
|
|
4856
4257
|
'assetType'?: RobinhoodEquityStopLimitOrderPlaceQueryParamsAssetTypeEnum;
|
|
4857
4258
|
'action': RobinhoodEquityStopLimitOrderPlaceQueryParamsActionEnum;
|
|
@@ -4902,7 +4303,6 @@ declare enum RobinhoodEquityStopLimitOrderPlaceQueryParamsMarketHoursEnum {
|
|
|
4902
4303
|
*/
|
|
4903
4304
|
interface RobinhoodEquityStopOrderPlaceQueryParams {
|
|
4904
4305
|
[key: string]: any;
|
|
4905
|
-
'accountNumber': Accountnumber;
|
|
4906
4306
|
'orderType': RobinhoodEquityStopOrderPlaceQueryParamsOrderTypeEnum;
|
|
4907
4307
|
'assetType'?: RobinhoodEquityStopOrderPlaceQueryParamsAssetTypeEnum;
|
|
4908
4308
|
'action': RobinhoodEquityStopOrderPlaceQueryParamsActionEnum;
|
|
@@ -4952,7 +4352,6 @@ declare enum RobinhoodEquityStopOrderPlaceQueryParamsMarketHoursEnum {
|
|
|
4952
4352
|
*/
|
|
4953
4353
|
interface RobinhoodEquityTrailingStopOrderPlaceQueryParams {
|
|
4954
4354
|
[key: string]: any;
|
|
4955
|
-
'accountNumber': Accountnumber;
|
|
4956
4355
|
'orderType': RobinhoodEquityTrailingStopOrderPlaceQueryParamsOrderTypeEnum;
|
|
4957
4356
|
'assetType'?: RobinhoodEquityTrailingStopOrderPlaceQueryParamsAssetTypeEnum;
|
|
4958
4357
|
'action': RobinhoodEquityTrailingStopOrderPlaceQueryParamsActionEnum;
|
|
@@ -5029,7 +4428,6 @@ type Order1AnyOf = {
|
|
|
5029
4428
|
*/
|
|
5030
4429
|
interface RobinhoodOptionLimitOrderPlaceQueryParams {
|
|
5031
4430
|
[key: string]: any;
|
|
5032
|
-
'accountNumber': Accountnumber;
|
|
5033
4431
|
'orderType': RobinhoodOptionLimitOrderPlaceQueryParamsOrderTypeEnum;
|
|
5034
4432
|
'assetType'?: RobinhoodOptionLimitOrderPlaceQueryParamsAssetTypeEnum;
|
|
5035
4433
|
'action': RobinhoodOptionLimitOrderPlaceQueryParamsActionEnum;
|
|
@@ -5038,7 +4436,7 @@ interface RobinhoodOptionLimitOrderPlaceQueryParams {
|
|
|
5038
4436
|
'orderQty': number;
|
|
5039
4437
|
'price': number;
|
|
5040
4438
|
'direction'?: RobinhoodOptionLimitOrderPlaceQueryParamsDirectionEnum | null;
|
|
5041
|
-
'spread'?: Array<
|
|
4439
|
+
'spread'?: Array<RobinhoodOptionSpreadLeg> | null;
|
|
5042
4440
|
'positionEffect'?: RobinhoodOptionLimitOrderPlaceQueryParamsPositionEffectEnum | null;
|
|
5043
4441
|
'creditOrDebit'?: RobinhoodOptionLimitOrderPlaceQueryParamsCreditOrDebitEnum | null;
|
|
5044
4442
|
'expirationDate'?: string | null;
|
|
@@ -5090,7 +4488,6 @@ declare enum RobinhoodOptionLimitOrderPlaceQueryParamsOptionTypeEnum {
|
|
|
5090
4488
|
*/
|
|
5091
4489
|
interface RobinhoodOptionMarketOrderPlaceQueryParams {
|
|
5092
4490
|
[key: string]: any;
|
|
5093
|
-
'accountNumber': Accountnumber;
|
|
5094
4491
|
'orderType': RobinhoodOptionMarketOrderPlaceQueryParamsOrderTypeEnum;
|
|
5095
4492
|
'assetType'?: RobinhoodOptionMarketOrderPlaceQueryParamsAssetTypeEnum;
|
|
5096
4493
|
'action': RobinhoodOptionMarketOrderPlaceQueryParamsActionEnum;
|
|
@@ -5098,7 +4495,7 @@ interface RobinhoodOptionMarketOrderPlaceQueryParams {
|
|
|
5098
4495
|
'symbol': string;
|
|
5099
4496
|
'orderQty': number;
|
|
5100
4497
|
'direction'?: RobinhoodOptionMarketOrderPlaceQueryParamsDirectionEnum | null;
|
|
5101
|
-
'spread'?: Array<
|
|
4498
|
+
'spread'?: Array<RobinhoodOptionSpreadLeg> | null;
|
|
5102
4499
|
'positionEffect'?: RobinhoodOptionMarketOrderPlaceQueryParamsPositionEffectEnum | null;
|
|
5103
4500
|
'creditOrDebit'?: RobinhoodOptionMarketOrderPlaceQueryParamsCreditOrDebitEnum | null;
|
|
5104
4501
|
'expirationDate'?: string | null;
|
|
@@ -5150,7 +4547,6 @@ declare enum RobinhoodOptionMarketOrderPlaceQueryParamsOptionTypeEnum {
|
|
|
5150
4547
|
*/
|
|
5151
4548
|
interface RobinhoodOptionStopLimitOrderPlaceQueryParams {
|
|
5152
4549
|
[key: string]: any;
|
|
5153
|
-
'accountNumber': Accountnumber;
|
|
5154
4550
|
'orderType': RobinhoodOptionStopLimitOrderPlaceQueryParamsOrderTypeEnum;
|
|
5155
4551
|
'assetType'?: RobinhoodOptionStopLimitOrderPlaceQueryParamsAssetTypeEnum;
|
|
5156
4552
|
'action': RobinhoodOptionStopLimitOrderPlaceQueryParamsActionEnum;
|
|
@@ -5160,7 +4556,7 @@ interface RobinhoodOptionStopLimitOrderPlaceQueryParams {
|
|
|
5160
4556
|
'stopPrice': number;
|
|
5161
4557
|
'limitPrice': number;
|
|
5162
4558
|
'direction'?: RobinhoodOptionStopLimitOrderPlaceQueryParamsDirectionEnum | null;
|
|
5163
|
-
'spread'?: Array<
|
|
4559
|
+
'spread'?: Array<RobinhoodOptionSpreadLeg> | null;
|
|
5164
4560
|
'positionEffect'?: RobinhoodOptionStopLimitOrderPlaceQueryParamsPositionEffectEnum | null;
|
|
5165
4561
|
'creditOrDebit'?: RobinhoodOptionStopLimitOrderPlaceQueryParamsCreditOrDebitEnum | null;
|
|
5166
4562
|
'expirationDate'?: string | null;
|
|
@@ -5212,7 +4608,6 @@ declare enum RobinhoodOptionStopLimitOrderPlaceQueryParamsOptionTypeEnum {
|
|
|
5212
4608
|
*/
|
|
5213
4609
|
interface RobinhoodOptionStopOrderPlaceQueryParams {
|
|
5214
4610
|
[key: string]: any;
|
|
5215
|
-
'accountNumber': Accountnumber;
|
|
5216
4611
|
'orderType': RobinhoodOptionStopOrderPlaceQueryParamsOrderTypeEnum;
|
|
5217
4612
|
'assetType'?: RobinhoodOptionStopOrderPlaceQueryParamsAssetTypeEnum;
|
|
5218
4613
|
'action': RobinhoodOptionStopOrderPlaceQueryParamsActionEnum;
|
|
@@ -5221,7 +4616,7 @@ interface RobinhoodOptionStopOrderPlaceQueryParams {
|
|
|
5221
4616
|
'orderQty': number;
|
|
5222
4617
|
'stopPrice': number;
|
|
5223
4618
|
'direction'?: RobinhoodOptionStopOrderPlaceQueryParamsDirectionEnum | null;
|
|
5224
|
-
'spread'?: Array<
|
|
4619
|
+
'spread'?: Array<RobinhoodOptionSpreadLeg> | null;
|
|
5225
4620
|
'positionEffect'?: RobinhoodOptionStopOrderPlaceQueryParamsPositionEffectEnum | null;
|
|
5226
4621
|
'creditOrDebit'?: RobinhoodOptionStopOrderPlaceQueryParamsCreditOrDebitEnum | null;
|
|
5227
4622
|
'expirationDate'?: string | null;
|
|
@@ -5273,7 +4668,6 @@ declare enum RobinhoodOptionStopOrderPlaceQueryParamsOptionTypeEnum {
|
|
|
5273
4668
|
*/
|
|
5274
4669
|
interface RobinhoodOptionTrailingStopOrderPlaceQueryParams {
|
|
5275
4670
|
[key: string]: any;
|
|
5276
|
-
'accountNumber': Accountnumber;
|
|
5277
4671
|
'orderType': RobinhoodOptionTrailingStopOrderPlaceQueryParamsOrderTypeEnum;
|
|
5278
4672
|
'assetType'?: RobinhoodOptionTrailingStopOrderPlaceQueryParamsAssetTypeEnum;
|
|
5279
4673
|
'action': RobinhoodOptionTrailingStopOrderPlaceQueryParamsActionEnum;
|
|
@@ -5282,7 +4676,7 @@ interface RobinhoodOptionTrailingStopOrderPlaceQueryParams {
|
|
|
5282
4676
|
'orderQty': number;
|
|
5283
4677
|
'stopPrice': number;
|
|
5284
4678
|
'direction'?: RobinhoodOptionTrailingStopOrderPlaceQueryParamsDirectionEnum | null;
|
|
5285
|
-
'spread'?: Array<
|
|
4679
|
+
'spread'?: Array<RobinhoodOptionSpreadLeg> | null;
|
|
5286
4680
|
'positionEffect'?: RobinhoodOptionTrailingStopOrderPlaceQueryParamsPositionEffectEnum | null;
|
|
5287
4681
|
'creditOrDebit'?: RobinhoodOptionTrailingStopOrderPlaceQueryParamsCreditOrDebitEnum | null;
|
|
5288
4682
|
'expirationDate'?: string | null;
|
|
@@ -5361,7 +4755,6 @@ type Order1AnyOf1 = {
|
|
|
5361
4755
|
*/
|
|
5362
4756
|
interface RobinhoodCryptoLimitOrderPlaceQueryParams {
|
|
5363
4757
|
[key: string]: any;
|
|
5364
|
-
'accountNumber': Accountnumber;
|
|
5365
4758
|
'orderType': RobinhoodCryptoLimitOrderPlaceQueryParamsOrderTypeEnum;
|
|
5366
4759
|
'assetType'?: RobinhoodCryptoLimitOrderPlaceQueryParamsAssetTypeEnum;
|
|
5367
4760
|
'action': RobinhoodCryptoLimitOrderPlaceQueryParamsActionEnum;
|
|
@@ -5406,7 +4799,6 @@ declare enum RobinhoodCryptoLimitOrderPlaceQueryParamsAmountInEnum {
|
|
|
5406
4799
|
*/
|
|
5407
4800
|
interface RobinhoodCryptoMarketOrderPlaceQueryParams {
|
|
5408
4801
|
[key: string]: any;
|
|
5409
|
-
'accountNumber': Accountnumber;
|
|
5410
4802
|
'orderType': RobinhoodCryptoMarketOrderPlaceQueryParamsOrderTypeEnum;
|
|
5411
4803
|
'assetType'?: RobinhoodCryptoMarketOrderPlaceQueryParamsAssetTypeEnum;
|
|
5412
4804
|
'action': RobinhoodCryptoMarketOrderPlaceQueryParamsActionEnum;
|
|
@@ -5450,7 +4842,6 @@ declare enum RobinhoodCryptoMarketOrderPlaceQueryParamsAmountInEnum {
|
|
|
5450
4842
|
*/
|
|
5451
4843
|
interface RobinhoodCryptoStopLimitOrderPlaceQueryParams {
|
|
5452
4844
|
[key: string]: any;
|
|
5453
|
-
'accountNumber': Accountnumber;
|
|
5454
4845
|
'orderType': RobinhoodCryptoStopLimitOrderPlaceQueryParamsOrderTypeEnum;
|
|
5455
4846
|
'assetType'?: RobinhoodCryptoStopLimitOrderPlaceQueryParamsAssetTypeEnum;
|
|
5456
4847
|
'action': RobinhoodCryptoStopLimitOrderPlaceQueryParamsActionEnum;
|
|
@@ -5496,7 +4887,6 @@ declare enum RobinhoodCryptoStopLimitOrderPlaceQueryParamsAmountInEnum {
|
|
|
5496
4887
|
*/
|
|
5497
4888
|
interface RobinhoodCryptoStopOrderPlaceQueryParams {
|
|
5498
4889
|
[key: string]: any;
|
|
5499
|
-
'accountNumber': Accountnumber;
|
|
5500
4890
|
'orderType': RobinhoodCryptoStopOrderPlaceQueryParamsOrderTypeEnum;
|
|
5501
4891
|
'assetType'?: RobinhoodCryptoStopOrderPlaceQueryParamsAssetTypeEnum;
|
|
5502
4892
|
'action': RobinhoodCryptoStopOrderPlaceQueryParamsActionEnum;
|
|
@@ -5541,7 +4931,6 @@ declare enum RobinhoodCryptoStopOrderPlaceQueryParamsAmountInEnum {
|
|
|
5541
4931
|
*/
|
|
5542
4932
|
interface RobinhoodCryptoTrailingStopOrderPlaceQueryParams {
|
|
5543
4933
|
[key: string]: any;
|
|
5544
|
-
'accountNumber': Accountnumber;
|
|
5545
4934
|
'orderType': RobinhoodCryptoTrailingStopOrderPlaceQueryParamsOrderTypeEnum;
|
|
5546
4935
|
'assetType'?: RobinhoodCryptoTrailingStopOrderPlaceQueryParamsAssetTypeEnum;
|
|
5547
4936
|
'action': RobinhoodCryptoTrailingStopOrderPlaceQueryParamsActionEnum;
|
|
@@ -5621,7 +5010,6 @@ interface TastyTradeLimitOrderPlaceQueryParams {
|
|
|
5621
5010
|
'source'?: string | null;
|
|
5622
5011
|
'value-effect'?: TastyTradeLimitOrderPlaceQueryParamsValueEffectEnum | null;
|
|
5623
5012
|
'legs'?: Array<object> | null;
|
|
5624
|
-
'accountNumber': Accountnumber;
|
|
5625
5013
|
'orderType': TastyTradeLimitOrderPlaceQueryParamsOrderTypeEnum;
|
|
5626
5014
|
'assetType': TastyTradeLimitOrderPlaceQueryParamsAssetTypeEnum;
|
|
5627
5015
|
'action': TastyTradeLimitOrderPlaceQueryParamsActionEnum;
|
|
@@ -5677,7 +5065,6 @@ interface TastyTradeMarketOrderPlaceQueryParams {
|
|
|
5677
5065
|
'source'?: string | null;
|
|
5678
5066
|
'value-effect'?: TastyTradeMarketOrderPlaceQueryParamsValueEffectEnum | null;
|
|
5679
5067
|
'legs'?: Array<object> | null;
|
|
5680
|
-
'accountNumber': Accountnumber;
|
|
5681
5068
|
'orderType': TastyTradeMarketOrderPlaceQueryParamsOrderTypeEnum;
|
|
5682
5069
|
'assetType': TastyTradeMarketOrderPlaceQueryParamsAssetTypeEnum;
|
|
5683
5070
|
'action': TastyTradeMarketOrderPlaceQueryParamsActionEnum;
|
|
@@ -5732,7 +5119,6 @@ interface TastyTradeStopOrderPlaceQueryParams {
|
|
|
5732
5119
|
'source'?: string | null;
|
|
5733
5120
|
'value-effect'?: TastyTradeStopOrderPlaceQueryParamsValueEffectEnum | null;
|
|
5734
5121
|
'legs'?: Array<object> | null;
|
|
5735
|
-
'accountNumber': Accountnumber;
|
|
5736
5122
|
'orderType': TastyTradeStopOrderPlaceQueryParamsOrderTypeEnum;
|
|
5737
5123
|
'assetType': TastyTradeStopOrderPlaceQueryParamsAssetTypeEnum;
|
|
5738
5124
|
'action': TastyTradeStopOrderPlaceQueryParamsActionEnum;
|
|
@@ -5788,7 +5174,6 @@ interface TastyTradeTrailingStopOrderPlaceQueryParams {
|
|
|
5788
5174
|
'source'?: string | null;
|
|
5789
5175
|
'value-effect'?: TastyTradeTrailingStopOrderPlaceQueryParamsValueEffectEnum | null;
|
|
5790
5176
|
'legs'?: Array<object> | null;
|
|
5791
|
-
'accountNumber': Accountnumber;
|
|
5792
5177
|
'orderType': TastyTradeTrailingStopOrderPlaceQueryParamsOrderTypeEnum;
|
|
5793
5178
|
'assetType': TastyTradeTrailingStopOrderPlaceQueryParamsAssetTypeEnum;
|
|
5794
5179
|
'action': TastyTradeTrailingStopOrderPlaceQueryParamsActionEnum;
|
|
@@ -5857,10 +5242,35 @@ type Order2 = {
|
|
|
5857
5242
|
*/
|
|
5858
5243
|
|
|
5859
5244
|
/**
|
|
5860
|
-
*
|
|
5245
|
+
* Modify request with top-level broker, account_number, and partial order.
|
|
5246
|
+
*/
|
|
5247
|
+
interface OrderRequest {
|
|
5248
|
+
'broker': OrderRequestBrokerEnum;
|
|
5249
|
+
'accountNumber': Accountnumber;
|
|
5250
|
+
'order': OrderModifyQueryParamsBase;
|
|
5251
|
+
}
|
|
5252
|
+
declare enum OrderRequestBrokerEnum {
|
|
5253
|
+
Robinhood = "robinhood"
|
|
5254
|
+
}
|
|
5255
|
+
|
|
5256
|
+
/**
|
|
5257
|
+
* Finatic FastAPI Backend
|
|
5258
|
+
* FinaticAPI REST API
|
|
5259
|
+
*
|
|
5260
|
+
* The version of the OpenAPI document: 1.0.0
|
|
5261
|
+
*
|
|
5262
|
+
*
|
|
5263
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
5264
|
+
* https://openapi-generator.tech
|
|
5265
|
+
* Do not edit the class manually.
|
|
5266
|
+
*/
|
|
5267
|
+
|
|
5268
|
+
/**
|
|
5269
|
+
* Robinhood place-order request body. Attributes ---------- broker : Literal[\"robinhood\"] Discriminator; must be ``\"robinhood\"``. account_number : str | int Broker-provided account number (top-level). Serialized as ``accountNumber``. order : RobinhoodOrderPlaceQueryParamsUnion Robinhood-specific order parameters (equity, equity_option, or crypto wire schema). Notes ----- Uses ``extra=\"forbid\"`` and ``populate_by_name=True``. JSON schema examples are attached in model_config for OpenAPI docs.
|
|
5861
5270
|
*/
|
|
5862
5271
|
interface RobinhoodOrderPlaceRequest {
|
|
5863
5272
|
'broker': RobinhoodOrderPlaceRequestBrokerEnum;
|
|
5273
|
+
'accountNumber': Accountnumber;
|
|
5864
5274
|
'order': Order1;
|
|
5865
5275
|
}
|
|
5866
5276
|
declare enum RobinhoodOrderPlaceRequestBrokerEnum {
|
|
@@ -5880,10 +5290,11 @@ declare enum RobinhoodOrderPlaceRequestBrokerEnum {
|
|
|
5880
5290
|
*/
|
|
5881
5291
|
|
|
5882
5292
|
/**
|
|
5883
|
-
*
|
|
5293
|
+
* TastyTrade place-order request body. Attributes ---------- broker : Literal[\"tasty_trade\"] Discriminator; must be ``\"tasty_trade\"``. account_number : str | int Broker-provided account number (top-level). Serialized as ``accountNumber``. order : TastyTradeOrderPlaceQueryParamsUnion TastyTrade-specific order parameters (equity, options, etc.). Notes ----- Uses ``extra=\"forbid\"`` and ``populate_by_name=True``.
|
|
5884
5294
|
*/
|
|
5885
5295
|
interface TastyTradeOrderPlaceRequest {
|
|
5886
5296
|
'broker': TastyTradeOrderPlaceRequestBrokerEnum;
|
|
5297
|
+
'accountNumber': Accountnumber;
|
|
5887
5298
|
'order': Order2;
|
|
5888
5299
|
}
|
|
5889
5300
|
declare enum TastyTradeOrderPlaceRequestBrokerEnum {
|
|
@@ -5914,6 +5325,30 @@ type PlaceOrderApiBetaBrokersOrdersPostRequest = {
|
|
|
5914
5325
|
broker: 'tasty_trade';
|
|
5915
5326
|
} & TastyTradeOrderPlaceRequest;
|
|
5916
5327
|
|
|
5328
|
+
/**
|
|
5329
|
+
* Finatic FastAPI Backend
|
|
5330
|
+
* FinaticAPI REST API
|
|
5331
|
+
*
|
|
5332
|
+
* The version of the OpenAPI document: 1.0.0
|
|
5333
|
+
*
|
|
5334
|
+
*
|
|
5335
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
5336
|
+
* https://openapi-generator.tech
|
|
5337
|
+
* Do not edit the class manually.
|
|
5338
|
+
*/
|
|
5339
|
+
|
|
5340
|
+
/**
|
|
5341
|
+
* Robinhood modify-order request body (partial update). Attributes ---------- broker : Literal[\"robinhood\"] Discriminator; must be ``\"robinhood\"``. account_number : str | int Broker-provided account number (top-level). Serialized as ``accountNumber``. order : OrderModifyQueryParamsBase Delta of fields to change; backend merges with existing order. Notes ----- Uses ``extra=\"forbid\"`` and ``populate_by_name=True``.
|
|
5342
|
+
*/
|
|
5343
|
+
interface RobinhoodOrderModifyRequest {
|
|
5344
|
+
'broker': RobinhoodOrderModifyRequestBrokerEnum;
|
|
5345
|
+
'accountNumber': Accountnumber;
|
|
5346
|
+
'order': OrderModifyQueryParamsBase;
|
|
5347
|
+
}
|
|
5348
|
+
declare enum RobinhoodOrderModifyRequestBrokerEnum {
|
|
5349
|
+
Robinhood = "robinhood"
|
|
5350
|
+
}
|
|
5351
|
+
|
|
5917
5352
|
/**
|
|
5918
5353
|
* Finatic FastAPI Backend
|
|
5919
5354
|
* FinaticAPI REST API
|
|
@@ -5932,12 +5367,63 @@ interface SessionStartRequest {
|
|
|
5932
5367
|
'user_id'?: string | null;
|
|
5933
5368
|
}
|
|
5934
5369
|
|
|
5370
|
+
/**
|
|
5371
|
+
* Finatic FastAPI Backend
|
|
5372
|
+
* FinaticAPI REST API
|
|
5373
|
+
*
|
|
5374
|
+
* The version of the OpenAPI document: 1.0.0
|
|
5375
|
+
*
|
|
5376
|
+
*
|
|
5377
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
5378
|
+
* https://openapi-generator.tech
|
|
5379
|
+
* Do not edit the class manually.
|
|
5380
|
+
*/
|
|
5381
|
+
|
|
5382
|
+
/**
|
|
5383
|
+
* TastyTrade modify-order request body (partial update). Attributes ---------- broker : Literal[\"tasty_trade\"] Discriminator; must be ``\"tasty_trade\"``. account_number : str | int Broker-provided account number (top-level). Serialized as ``accountNumber``. order : OrderModifyQueryParamsBase Delta of fields to change; backend merges with existing order. Notes ----- Uses ``extra=\"forbid\"`` and ``populate_by_name=True``.
|
|
5384
|
+
*/
|
|
5385
|
+
interface TastyTradeOrderModifyRequest {
|
|
5386
|
+
'broker': TastyTradeOrderModifyRequestBrokerEnum;
|
|
5387
|
+
'accountNumber': Accountnumber;
|
|
5388
|
+
'order': OrderModifyQueryParamsBase;
|
|
5389
|
+
}
|
|
5390
|
+
declare enum TastyTradeOrderModifyRequestBrokerEnum {
|
|
5391
|
+
TastyTrade = "tasty_trade"
|
|
5392
|
+
}
|
|
5393
|
+
|
|
5394
|
+
/**
|
|
5395
|
+
* Finatic FastAPI Backend
|
|
5396
|
+
* FinaticAPI REST API
|
|
5397
|
+
*
|
|
5398
|
+
* The version of the OpenAPI document: 1.0.0
|
|
5399
|
+
*
|
|
5400
|
+
*
|
|
5401
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
5402
|
+
* https://openapi-generator.tech
|
|
5403
|
+
* Do not edit the class manually.
|
|
5404
|
+
*/
|
|
5405
|
+
|
|
5406
|
+
/**
|
|
5407
|
+
* @type Timeinforce2AnyOf
|
|
5408
|
+
*/
|
|
5409
|
+
type Timeinforce2AnyOf = {
|
|
5410
|
+
timeInForce: 'day';
|
|
5411
|
+
} & DayTIF | {
|
|
5412
|
+
timeInForce: 'fok';
|
|
5413
|
+
} & FOKTIF | {
|
|
5414
|
+
timeInForce: 'gtc';
|
|
5415
|
+
} & GTCTIF | {
|
|
5416
|
+
timeInForce: 'gtd';
|
|
5417
|
+
} & GTDTIF | {
|
|
5418
|
+
timeInForce: 'ioc';
|
|
5419
|
+
} & IOCTIF;
|
|
5420
|
+
|
|
5935
5421
|
/**
|
|
5936
5422
|
* BrokersApi - interface
|
|
5937
5423
|
*/
|
|
5938
5424
|
interface BrokersApiInterface {
|
|
5939
5425
|
/**
|
|
5940
|
-
* Cancel an existing order.
|
|
5426
|
+
* Cancel an existing order. Request must include broker and account_number in the body; order_id is in the path. Connection is resolved by broker and account_number.
|
|
5941
5427
|
* @summary Cancel Order
|
|
5942
5428
|
* @param {BrokersApiCancelOrderApiBetaBrokersOrdersOrderIdDeleteRequest} requestParameters Request parameters.
|
|
5943
5429
|
* @param {*} [options] Override http request option.
|
|
@@ -6047,7 +5533,7 @@ interface BrokersApiInterface {
|
|
|
6047
5533
|
*/
|
|
6048
5534
|
listBrokerConnectionsApiBetaBrokersConnectionsGet(options?: RawAxiosRequestConfig): AxiosPromise<FinaticResponseListUserBrokerConnectionWithPermissions>;
|
|
6049
5535
|
/**
|
|
6050
|
-
* Modify an existing order.
|
|
5536
|
+
* Modify an existing order. Request must include broker and account_number in the body; order_id is in the path. Connection is resolved by broker and account_number. The order object is a partial update.
|
|
6051
5537
|
* @summary Modify Order
|
|
6052
5538
|
* @param {BrokersApiModifyOrderApiBetaBrokersOrdersOrderIdPatchRequest} requestParameters Request parameters.
|
|
6053
5539
|
* @param {*} [options] Override http request option.
|
|
@@ -6055,7 +5541,7 @@ interface BrokersApiInterface {
|
|
|
6055
5541
|
*/
|
|
6056
5542
|
modifyOrderApiBetaBrokersOrdersOrderIdPatch(requestParameters: BrokersApiModifyOrderApiBetaBrokersOrdersOrderIdPatchRequest, options?: RawAxiosRequestConfig): AxiosPromise<FinaticResponseOrderActionResult>;
|
|
6057
5543
|
/**
|
|
6058
|
-
*
|
|
5544
|
+
* Place a new order through the specified broker. Creates an order using the broker connection associated with your account. Request uses top-level broker, account_number, and order. The order object includes common fields (symbol, quantity, order type, etc.) shared across brokers plus broker-specific fields—see the broker-specific tabs for details.
|
|
6059
5545
|
* @summary Place Order
|
|
6060
5546
|
* @param {BrokersApiPlaceOrderApiBetaBrokersOrdersPostRequest} requestParameters Request parameters.
|
|
6061
5547
|
* @param {*} [options] Override http request option.
|
|
@@ -6068,9 +5554,10 @@ interface BrokersApiInterface {
|
|
|
6068
5554
|
*/
|
|
6069
5555
|
interface BrokersApiCancelOrderApiBetaBrokersOrdersOrderIdDeleteRequest {
|
|
6070
5556
|
/**
|
|
6071
|
-
*
|
|
5557
|
+
* Broker-provided order ID to cancel
|
|
6072
5558
|
*/
|
|
6073
5559
|
readonly orderId: string;
|
|
5560
|
+
readonly cancelOrderApiBetaBrokersOrdersOrderIdDeleteRequest?: CancelOrderApiBetaBrokersOrdersOrderIdDeleteRequest | null;
|
|
6074
5561
|
}
|
|
6075
5562
|
/**
|
|
6076
5563
|
* Request parameters for disconnectCompanyFromBrokerApiBetaBrokersDisconnectCompanyConnectionIdDelete operation in BrokersApi.
|
|
@@ -6444,18 +5931,14 @@ interface BrokersApiGetTransactionsApiBetaBrokersDataTransactionsGetRequest {
|
|
|
6444
5931
|
*/
|
|
6445
5932
|
interface BrokersApiModifyOrderApiBetaBrokersOrdersOrderIdPatchRequest {
|
|
6446
5933
|
/**
|
|
6447
|
-
*
|
|
5934
|
+
* Broker-provided order ID to modify
|
|
6448
5935
|
*/
|
|
6449
5936
|
readonly orderId: string;
|
|
6450
|
-
|
|
6451
|
-
* Account number owning the order
|
|
6452
|
-
*/
|
|
6453
|
-
readonly accountNumber?: string | null;
|
|
5937
|
+
readonly orderRequest: OrderRequest;
|
|
6454
5938
|
/**
|
|
6455
5939
|
* Temporary bypass for testing: specify connection ID directly
|
|
6456
5940
|
*/
|
|
6457
5941
|
readonly connectionId?: string | null;
|
|
6458
|
-
readonly modifyOrderApiBetaBrokersOrdersOrderIdPatchRequest?: ModifyOrderApiBetaBrokersOrdersOrderIdPatchRequest | null;
|
|
6459
5942
|
}
|
|
6460
5943
|
/**
|
|
6461
5944
|
* Request parameters for placeOrderApiBetaBrokersOrdersPost operation in BrokersApi.
|
|
@@ -6472,7 +5955,7 @@ interface BrokersApiPlaceOrderApiBetaBrokersOrdersPostRequest {
|
|
|
6472
5955
|
*/
|
|
6473
5956
|
declare class BrokersApi extends BaseAPI implements BrokersApiInterface {
|
|
6474
5957
|
/**
|
|
6475
|
-
* Cancel an existing order.
|
|
5958
|
+
* Cancel an existing order. Request must include broker and account_number in the body; order_id is in the path. Connection is resolved by broker and account_number.
|
|
6476
5959
|
* @summary Cancel Order
|
|
6477
5960
|
* @param {BrokersApiCancelOrderApiBetaBrokersOrdersOrderIdDeleteRequest} requestParameters Request parameters.
|
|
6478
5961
|
* @param {*} [options] Override http request option.
|
|
@@ -6582,7 +6065,7 @@ declare class BrokersApi extends BaseAPI implements BrokersApiInterface {
|
|
|
6582
6065
|
*/
|
|
6583
6066
|
listBrokerConnectionsApiBetaBrokersConnectionsGet(options?: RawAxiosRequestConfig): Promise<axios.AxiosResponse<FinaticResponseListUserBrokerConnectionWithPermissions, any, {}>>;
|
|
6584
6067
|
/**
|
|
6585
|
-
* Modify an existing order.
|
|
6068
|
+
* Modify an existing order. Request must include broker and account_number in the body; order_id is in the path. Connection is resolved by broker and account_number. The order object is a partial update.
|
|
6586
6069
|
* @summary Modify Order
|
|
6587
6070
|
* @param {BrokersApiModifyOrderApiBetaBrokersOrdersOrderIdPatchRequest} requestParameters Request parameters.
|
|
6588
6071
|
* @param {*} [options] Override http request option.
|
|
@@ -6590,7 +6073,7 @@ declare class BrokersApi extends BaseAPI implements BrokersApiInterface {
|
|
|
6590
6073
|
*/
|
|
6591
6074
|
modifyOrderApiBetaBrokersOrdersOrderIdPatch(requestParameters: BrokersApiModifyOrderApiBetaBrokersOrdersOrderIdPatchRequest, options?: RawAxiosRequestConfig): Promise<axios.AxiosResponse<FinaticResponseOrderActionResult, any, {}>>;
|
|
6592
6075
|
/**
|
|
6593
|
-
*
|
|
6076
|
+
* Place a new order through the specified broker. Creates an order using the broker connection associated with your account. Request uses top-level broker, account_number, and order. The order object includes common fields (symbol, quantity, order type, etc.) shared across brokers plus broker-specific fields—see the broker-specific tabs for details.
|
|
6594
6077
|
* @summary Place Order
|
|
6595
6078
|
* @param {BrokersApiPlaceOrderApiBetaBrokersOrdersPostRequest} requestParameters Request parameters.
|
|
6596
6079
|
* @param {*} [options] Override http request option.
|
|
@@ -7081,22 +6564,60 @@ interface GetPositionLotFillsParams {
|
|
|
7081
6564
|
offset?: number;
|
|
7082
6565
|
}
|
|
7083
6566
|
interface PlaceOrderParams {
|
|
7084
|
-
/** Broker
|
|
7085
|
-
|
|
6567
|
+
/** Broker identifier (robinhood, tasty_trade, ninja_trader) */
|
|
6568
|
+
broker: string;
|
|
6569
|
+
/** Account number for the order */
|
|
6570
|
+
accountNumber: number;
|
|
6571
|
+
/** Order details including required and optional fields */
|
|
6572
|
+
order: {
|
|
6573
|
+
/** Type of order (market, limit, etc.) */
|
|
6574
|
+
orderType: string;
|
|
6575
|
+
/** Type of asset (equity, equity_option, crypto, forex) */
|
|
6576
|
+
assetType: string;
|
|
6577
|
+
/** Order action (buy, sell) */
|
|
6578
|
+
action: string;
|
|
6579
|
+
/** Time in force for the order */
|
|
6580
|
+
timeInForce: string;
|
|
6581
|
+
/** Trading symbol */
|
|
6582
|
+
symbol: string;
|
|
6583
|
+
/** Order quantity */
|
|
6584
|
+
orderQty: number;
|
|
6585
|
+
};
|
|
7086
6586
|
/** Temporary bypass for testing: specify connection ID directly */
|
|
7087
6587
|
connectionId?: string;
|
|
7088
6588
|
}
|
|
7089
6589
|
interface CancelOrderParams {
|
|
7090
|
-
/**
|
|
6590
|
+
/** Broker-provided order ID to cancel */
|
|
7091
6591
|
orderId: string;
|
|
6592
|
+
/** Broker identifier (robinhood, tasty_trade, ninja_trader) */
|
|
6593
|
+
broker: string;
|
|
6594
|
+
/** Account number for the order */
|
|
6595
|
+
accountNumber: number;
|
|
7092
6596
|
}
|
|
7093
6597
|
interface ModifyOrderParams {
|
|
7094
|
-
/**
|
|
6598
|
+
/** Broker-provided order ID to modify */
|
|
7095
6599
|
orderId: string;
|
|
7096
|
-
/** Broker
|
|
7097
|
-
|
|
7098
|
-
/** Account number
|
|
7099
|
-
accountNumber
|
|
6600
|
+
/** Broker identifier (robinhood, tasty_trade, ninja_trader) */
|
|
6601
|
+
broker: string;
|
|
6602
|
+
/** Account number for the order */
|
|
6603
|
+
accountNumber: number;
|
|
6604
|
+
/** Delta: only include fields you want to change (at least one required) */
|
|
6605
|
+
order: {
|
|
6606
|
+
/** Order quantity (optional) */
|
|
6607
|
+
orderQty?: number;
|
|
6608
|
+
/** Limit price (optional) */
|
|
6609
|
+
price?: number;
|
|
6610
|
+
/** Stop price (optional) */
|
|
6611
|
+
stopPrice?: number;
|
|
6612
|
+
/** Time in force (optional) */
|
|
6613
|
+
time_in_force?: string;
|
|
6614
|
+
/** Order type (optional) */
|
|
6615
|
+
orderType?: string;
|
|
6616
|
+
/** Asset type (optional) */
|
|
6617
|
+
assetType?: string;
|
|
6618
|
+
/** Expire time ISO 8601 (optional) */
|
|
6619
|
+
expireTime?: string;
|
|
6620
|
+
};
|
|
7100
6621
|
/** Temporary bypass for testing: specify connection ID directly */
|
|
7101
6622
|
connectionId?: string;
|
|
7102
6623
|
}
|
|
@@ -7152,9 +6673,9 @@ declare class BrokersWrapper {
|
|
|
7152
6673
|
* ```typescript-client
|
|
7153
6674
|
* // Full example with optional parameters
|
|
7154
6675
|
* const result = await finatic.getBalances({
|
|
7155
|
-
brokerId: '
|
|
7156
|
-
connectionId: '
|
|
7157
|
-
accountId: '
|
|
6676
|
+
brokerId: 'example-id',
|
|
6677
|
+
connectionId: 'example-id',
|
|
6678
|
+
accountId: 'example-id'
|
|
7158
6679
|
* });
|
|
7159
6680
|
*
|
|
7160
6681
|
* // Handle response with warnings
|
|
@@ -7202,8 +6723,8 @@ declare class BrokersWrapper {
|
|
|
7202
6723
|
* ```typescript-client
|
|
7203
6724
|
* // Full example with optional parameters
|
|
7204
6725
|
* const result = await finatic.getAccounts({
|
|
7205
|
-
brokerId: '
|
|
7206
|
-
connectionId: '
|
|
6726
|
+
brokerId: 'example-id',
|
|
6727
|
+
connectionId: 'example-id',
|
|
7207
6728
|
accountType: 'margin'
|
|
7208
6729
|
* });
|
|
7209
6730
|
*
|
|
@@ -7292,7 +6813,7 @@ declare class BrokersWrapper {
|
|
|
7292
6813
|
* ```typescript-client
|
|
7293
6814
|
* // Minimal example with required parameters only
|
|
7294
6815
|
* const result = await finatic.disconnectCompanyFromBroker({
|
|
7295
|
-
connectionId: '
|
|
6816
|
+
connectionId: 'example-id'
|
|
7296
6817
|
* });
|
|
7297
6818
|
*
|
|
7298
6819
|
* // Access the response data
|
|
@@ -7342,9 +6863,9 @@ declare class BrokersWrapper {
|
|
|
7342
6863
|
* ```typescript-client
|
|
7343
6864
|
* // Full example with optional parameters
|
|
7344
6865
|
* const result = await finatic.getOrders({
|
|
7345
|
-
brokerId: '
|
|
7346
|
-
connectionId: '
|
|
7347
|
-
accountId: '
|
|
6866
|
+
brokerId: 'example-id',
|
|
6867
|
+
connectionId: 'example-id',
|
|
6868
|
+
accountId: 'example-id'
|
|
7348
6869
|
* });
|
|
7349
6870
|
*
|
|
7350
6871
|
* // Handle response with warnings
|
|
@@ -7397,9 +6918,9 @@ declare class BrokersWrapper {
|
|
|
7397
6918
|
* ```typescript-client
|
|
7398
6919
|
* // Full example with optional parameters
|
|
7399
6920
|
* const result = await finatic.getPositions({
|
|
7400
|
-
brokerId: '
|
|
7401
|
-
connectionId: '
|
|
7402
|
-
accountId: '
|
|
6921
|
+
brokerId: 'example-id',
|
|
6922
|
+
connectionId: 'example-id',
|
|
6923
|
+
accountId: 'example-id'
|
|
7403
6924
|
* });
|
|
7404
6925
|
*
|
|
7405
6926
|
* // Handle response with warnings
|
|
@@ -7450,9 +6971,9 @@ declare class BrokersWrapper {
|
|
|
7450
6971
|
* ```typescript-client
|
|
7451
6972
|
* // Full example with optional parameters
|
|
7452
6973
|
* const result = await finatic.getTransactions({
|
|
7453
|
-
brokerId: '
|
|
7454
|
-
connectionId: '
|
|
7455
|
-
accountId: '
|
|
6974
|
+
brokerId: 'example-id',
|
|
6975
|
+
connectionId: 'example-id',
|
|
6976
|
+
accountId: 'example-id'
|
|
7456
6977
|
* });
|
|
7457
6978
|
*
|
|
7458
6979
|
* // Handle response with warnings
|
|
@@ -7487,7 +7008,7 @@ declare class BrokersWrapper {
|
|
|
7487
7008
|
* ```typescript-client
|
|
7488
7009
|
* // Minimal example with required parameters only
|
|
7489
7010
|
* const result = await finatic.getOrderFills({
|
|
7490
|
-
orderId: '
|
|
7011
|
+
orderId: 'example-id'
|
|
7491
7012
|
* });
|
|
7492
7013
|
*
|
|
7493
7014
|
* // Access the response data
|
|
@@ -7501,9 +7022,9 @@ declare class BrokersWrapper {
|
|
|
7501
7022
|
* ```typescript-client
|
|
7502
7023
|
* // Full example with optional parameters
|
|
7503
7024
|
* const result = await finatic.getOrderFills({
|
|
7504
|
-
orderId: '
|
|
7505
|
-
connectionId: '
|
|
7506
|
-
limit:
|
|
7025
|
+
orderId: 'example-id',
|
|
7026
|
+
connectionId: 'example-id',
|
|
7027
|
+
limit: 0,
|
|
7507
7028
|
offset: 0
|
|
7508
7029
|
* });
|
|
7509
7030
|
*
|
|
@@ -7539,7 +7060,7 @@ declare class BrokersWrapper {
|
|
|
7539
7060
|
* ```typescript-client
|
|
7540
7061
|
* // Minimal example with required parameters only
|
|
7541
7062
|
* const result = await finatic.getOrderEvents({
|
|
7542
|
-
orderId: '
|
|
7063
|
+
orderId: 'example-id'
|
|
7543
7064
|
* });
|
|
7544
7065
|
*
|
|
7545
7066
|
* // Access the response data
|
|
@@ -7553,9 +7074,9 @@ declare class BrokersWrapper {
|
|
|
7553
7074
|
* ```typescript-client
|
|
7554
7075
|
* // Full example with optional parameters
|
|
7555
7076
|
* const result = await finatic.getOrderEvents({
|
|
7556
|
-
orderId: '
|
|
7557
|
-
connectionId: '
|
|
7558
|
-
limit:
|
|
7077
|
+
orderId: 'example-id',
|
|
7078
|
+
connectionId: 'example-id',
|
|
7079
|
+
limit: 0,
|
|
7559
7080
|
offset: 0
|
|
7560
7081
|
* });
|
|
7561
7082
|
*
|
|
@@ -7603,9 +7124,9 @@ declare class BrokersWrapper {
|
|
|
7603
7124
|
* ```typescript-client
|
|
7604
7125
|
* // Full example with optional parameters
|
|
7605
7126
|
* const result = await finatic.getOrderGroups({
|
|
7606
|
-
brokerId: '
|
|
7607
|
-
connectionId: '
|
|
7608
|
-
limit:
|
|
7127
|
+
brokerId: 'example-id',
|
|
7128
|
+
connectionId: 'example-id',
|
|
7129
|
+
limit: 0
|
|
7609
7130
|
* });
|
|
7610
7131
|
*
|
|
7611
7132
|
* // Handle response with warnings
|
|
@@ -7653,9 +7174,9 @@ declare class BrokersWrapper {
|
|
|
7653
7174
|
* ```typescript-client
|
|
7654
7175
|
* // Full example with optional parameters
|
|
7655
7176
|
* const result = await finatic.getPositionLots({
|
|
7656
|
-
brokerId: '
|
|
7657
|
-
connectionId: '
|
|
7658
|
-
accountId: '
|
|
7177
|
+
brokerId: 'example-id',
|
|
7178
|
+
connectionId: 'example-id',
|
|
7179
|
+
accountId: 'example-id'
|
|
7659
7180
|
* });
|
|
7660
7181
|
*
|
|
7661
7182
|
* // Handle response with warnings
|
|
@@ -7689,7 +7210,7 @@ declare class BrokersWrapper {
|
|
|
7689
7210
|
* ```typescript-client
|
|
7690
7211
|
* // Minimal example with required parameters only
|
|
7691
7212
|
* const result = await finatic.getPositionLotFills({
|
|
7692
|
-
lotId: '
|
|
7213
|
+
lotId: 'example-id'
|
|
7693
7214
|
* });
|
|
7694
7215
|
*
|
|
7695
7216
|
* // Access the response data
|
|
@@ -7703,9 +7224,9 @@ declare class BrokersWrapper {
|
|
|
7703
7224
|
* ```typescript-client
|
|
7704
7225
|
* // Full example with optional parameters
|
|
7705
7226
|
* const result = await finatic.getPositionLotFills({
|
|
7706
|
-
lotId: '
|
|
7707
|
-
connectionId: '
|
|
7708
|
-
limit:
|
|
7227
|
+
lotId: 'example-id',
|
|
7228
|
+
connectionId: 'example-id',
|
|
7229
|
+
limit: 0,
|
|
7709
7230
|
offset: 0
|
|
7710
7231
|
* });
|
|
7711
7232
|
*
|
|
@@ -7724,61 +7245,20 @@ declare class BrokersWrapper {
|
|
|
7724
7245
|
/**
|
|
7725
7246
|
* Place Order
|
|
7726
7247
|
*
|
|
7727
|
-
*
|
|
7728
|
-
*
|
|
7729
|
-
*
|
|
7730
|
-
*
|
|
7731
|
-
*
|
|
7732
|
-
*
|
|
7733
|
-
*
|
|
7734
|
-
*
|
|
7735
|
-
*
|
|
7736
|
-
*
|
|
7737
|
-
*
|
|
7738
|
-
*
|
|
7739
|
-
*
|
|
7740
|
-
*
|
|
7741
|
-
* - ``asset_type``
|
|
7742
|
-
* - ``action``
|
|
7743
|
-
* - ``time_in_force``
|
|
7744
|
-
* - ``symbol``
|
|
7745
|
-
* - ``order_qty``
|
|
7746
|
-
*
|
|
7747
|
-
* They are surfaced as *query* parameters **only to make the accepted fields
|
|
7748
|
-
* obvious in the interactive docs**. In production usage you should send these
|
|
7749
|
-
* fields inside the JSON body (see ``order_request``) so that the entire order
|
|
7750
|
-
* specification travels in one payload. (Nothing will break if you send both, but there is no need to do so.)
|
|
7751
|
-
*
|
|
7752
|
-
* Body payload & broker-specific extras
|
|
7753
|
-
* -------------------------------------
|
|
7754
|
-
*
|
|
7755
|
-
* Put the standard parameters plus any broker-specific extensions under the
|
|
7756
|
-
* ``order`` key of the body. Refer to the bundled OpenAPI examples below to
|
|
7757
|
-
* see complete payloads for common order types (market, limit, spreads, etc.)
|
|
7758
|
-
* across supported brokers.
|
|
7759
|
-
*
|
|
7760
|
-
* For a formal reference of broker-specific extensions inspect the
|
|
7761
|
-
* ``BrokerOrderPlaceExtras`` schema.
|
|
7762
|
-
*
|
|
7763
|
-
* The endpoint resolves the active ``user_broker_connection`` by calling the
|
|
7764
|
-
* ``get_user_broker_connection_ids_for_broker`` RPC in Supabase. If no active
|
|
7765
|
-
* connection exists it returns a list of *available* brokers so your client
|
|
7766
|
-
* can guide the user accordingly.
|
|
7767
|
-
*
|
|
7768
|
-
* Broker Notes
|
|
7769
|
-
* ------------
|
|
7770
|
-
* - The responses that you get back from the broker are not always the same.
|
|
7771
|
-
* The response models are validated for each broker, but we do not standardize the repsonses.
|
|
7772
|
-
*
|
|
7773
|
-
* - Tasty Trade: If you want to trade options for a particular stock, first fetch the full
|
|
7774
|
-
* option chain via the GET https://api.tastyworks.com/option-chains/{stock_symbol}/nested endpoint.
|
|
7775
|
-
* This endpoint returns all available expirations that tastytrade offers for that equity symbol.
|
|
7776
|
-
* Each expiration contains a list of strikes, where each strike has a call and put field representing
|
|
7777
|
-
* the call symbol and put symbol respectively.
|
|
7778
|
-
*
|
|
7779
|
-
* We are planning to add a new endpoint to fetch the option chain for a particular stock and
|
|
7780
|
-
* handle this logic for you, but for now you need to fetch the option chain manually.
|
|
7781
|
-
* @param params.body {PlaceOrderApiBetaBrokersOrdersPostRequest} (optional) Broker-specific extra parameters object. This is used to pass in broker-specific fields if you want to send a reqeust to a broker API with the parameters that EXTEND our standardized query parameters.
|
|
7248
|
+
* Place a new order through the specified broker.
|
|
7249
|
+
*
|
|
7250
|
+
* Creates an order using the broker connection associated with your account.
|
|
7251
|
+
* Request uses top-level broker, account_number, and order. The order object
|
|
7252
|
+
* includes common fields (symbol, quantity, order type, etc.) shared across
|
|
7253
|
+
* brokers plus broker-specific fields—see the broker-specific tabs for details.
|
|
7254
|
+
* @param params.broker {string} Broker identifier (robinhood, tasty_trade, ninja_trader)
|
|
7255
|
+
* @param params.accountNumber {number} Account number for the order
|
|
7256
|
+
* @param params.order.orderType {string} Type of order (market, limit, etc.)
|
|
7257
|
+
* @param params.order.assetType {string} Type of asset (equity, equity_option, crypto, forex)
|
|
7258
|
+
* @param params.order.action {string} Order action (buy, sell)
|
|
7259
|
+
* @param params.order.timeInForce {string} Time in force for the order
|
|
7260
|
+
* @param params.order.symbol {string} Trading symbol
|
|
7261
|
+
* @param params.order.orderQty {number} Order quantity
|
|
7782
7262
|
* @param params.connectionId {string} (optional) Temporary bypass for testing: specify connection ID directly
|
|
7783
7263
|
* @returns {Promise<FinaticResponse<OrderActionResult>>} Standard response with success/Error/Warning structure
|
|
7784
7264
|
*
|
|
@@ -7787,19 +7267,31 @@ declare class BrokersWrapper {
|
|
|
7787
7267
|
* @category brokers
|
|
7788
7268
|
* @example
|
|
7789
7269
|
* ```typescript-client
|
|
7790
|
-
* //
|
|
7791
|
-
* const result = await finatic.placeOrder({
|
|
7270
|
+
* // This method requires broker and order with required fields:
|
|
7271
|
+
* const result = await finatic.placeOrder({
|
|
7272
|
+
broker: 'robinhood',
|
|
7273
|
+
order: {
|
|
7274
|
+
orderType: 'market',
|
|
7275
|
+
assetType: 'equity',
|
|
7276
|
+
action: 'buy',
|
|
7277
|
+
timeInForce: 'day',
|
|
7278
|
+
symbol: 'AAPL',
|
|
7279
|
+
orderQty: 10
|
|
7280
|
+
}
|
|
7281
|
+
* });
|
|
7792
7282
|
*
|
|
7793
7283
|
* // Access the response data
|
|
7794
7284
|
* if (result.success) {
|
|
7795
7285
|
* console.log('Data:', result.success.data);
|
|
7286
|
+
* } else if (result.error) {
|
|
7287
|
+
* console.error('Error:', result.error.message);
|
|
7796
7288
|
* }
|
|
7797
7289
|
* ```
|
|
7798
7290
|
* @example
|
|
7799
7291
|
* ```typescript-client
|
|
7800
7292
|
* // Full example with optional parameters
|
|
7801
7293
|
* const result = await finatic.placeOrder({
|
|
7802
|
-
connectionId: '
|
|
7294
|
+
connectionId: 'example-id'
|
|
7803
7295
|
* });
|
|
7804
7296
|
*
|
|
7805
7297
|
* // Handle response with warnings
|
|
@@ -7813,18 +7305,17 @@ declare class BrokersWrapper {
|
|
|
7813
7305
|
* }
|
|
7814
7306
|
* ```
|
|
7815
7307
|
*/
|
|
7816
|
-
placeOrder(params
|
|
7308
|
+
placeOrder(params: PlaceOrderParams): Promise<FinaticResponse$2<OrderActionResult>>;
|
|
7817
7309
|
/**
|
|
7818
7310
|
* Cancel Order
|
|
7819
7311
|
*
|
|
7820
7312
|
* Cancel an existing order.
|
|
7821
7313
|
*
|
|
7822
|
-
*
|
|
7823
|
-
*
|
|
7824
|
-
*
|
|
7825
|
-
*
|
|
7826
|
-
*
|
|
7827
|
-
* @param params.orderId {string} Order ID
|
|
7314
|
+
* Request must include broker and account_number in the body; order_id is in the path.
|
|
7315
|
+
* Connection is resolved by broker and account_number.
|
|
7316
|
+
* @param params.orderId {string} Broker-provided order ID to cancel
|
|
7317
|
+
* @param params.broker {string} Broker identifier (robinhood, tasty_trade, ninja_trader)
|
|
7318
|
+
* @param params.accountNumber {number} Account number for the order
|
|
7828
7319
|
* @returns {Promise<FinaticResponse<OrderActionResult>>} Standard response with success/Error/Warning structure
|
|
7829
7320
|
*
|
|
7830
7321
|
* Generated from: DELETE /api/beta/brokers/orders/{order_id}
|
|
@@ -7834,7 +7325,7 @@ declare class BrokersWrapper {
|
|
|
7834
7325
|
* ```typescript-client
|
|
7835
7326
|
* // Minimal example with required parameters only
|
|
7836
7327
|
* const result = await finatic.cancelOrder({
|
|
7837
|
-
orderId: '
|
|
7328
|
+
orderId: 'example-id'
|
|
7838
7329
|
* });
|
|
7839
7330
|
*
|
|
7840
7331
|
* // Access the response data
|
|
@@ -7851,11 +7342,18 @@ declare class BrokersWrapper {
|
|
|
7851
7342
|
*
|
|
7852
7343
|
* Modify an existing order.
|
|
7853
7344
|
*
|
|
7854
|
-
*
|
|
7855
|
-
*
|
|
7856
|
-
* @param params.orderId {string}
|
|
7857
|
-
* @param params.
|
|
7858
|
-
* @param params.accountNumber {
|
|
7345
|
+
* Request must include broker and account_number in the body; order_id is in the path.
|
|
7346
|
+
* Connection is resolved by broker and account_number. The order object is a partial update.
|
|
7347
|
+
* @param params.orderId {string} Broker-provided order ID to modify
|
|
7348
|
+
* @param params.broker {string} Broker identifier (robinhood, tasty_trade, ninja_trader)
|
|
7349
|
+
* @param params.accountNumber {number} Account number for the order
|
|
7350
|
+
* @param params.order.orderQty {number} (optional) Order quantity (optional)
|
|
7351
|
+
* @param params.order.price {number} (optional) Limit price (optional)
|
|
7352
|
+
* @param params.order.stopPrice {number} (optional) Stop price (optional)
|
|
7353
|
+
* @param params.order.time_in_force {string} (optional) Time in force (optional)
|
|
7354
|
+
* @param params.order.orderType {string} (optional) Order type (optional)
|
|
7355
|
+
* @param params.order.assetType {string} (optional) Asset type (optional)
|
|
7356
|
+
* @param params.order.expireTime {string} (optional) Expire time ISO 8601 (optional)
|
|
7859
7357
|
* @param params.connectionId {string} (optional) Temporary bypass for testing: specify connection ID directly
|
|
7860
7358
|
* @returns {Promise<FinaticResponse<OrderActionResult>>} Standard response with success/Error/Warning structure
|
|
7861
7359
|
*
|
|
@@ -7866,7 +7364,7 @@ declare class BrokersWrapper {
|
|
|
7866
7364
|
* ```typescript-client
|
|
7867
7365
|
* // Minimal example with required parameters only
|
|
7868
7366
|
* const result = await finatic.modifyOrder({
|
|
7869
|
-
orderId: '
|
|
7367
|
+
orderId: 'example-id'
|
|
7870
7368
|
* });
|
|
7871
7369
|
*
|
|
7872
7370
|
* // Access the response data
|
|
@@ -7880,9 +7378,8 @@ declare class BrokersWrapper {
|
|
|
7880
7378
|
* ```typescript-client
|
|
7881
7379
|
* // Full example with optional parameters
|
|
7882
7380
|
* const result = await finatic.modifyOrder({
|
|
7883
|
-
orderId: '
|
|
7884
|
-
|
|
7885
|
-
connectionId: '00000000-0000-0000-0000-000000000000'
|
|
7381
|
+
orderId: 'example-id',
|
|
7382
|
+
connectionId: 'example-id'
|
|
7886
7383
|
* });
|
|
7887
7384
|
*
|
|
7888
7385
|
* // Handle response with warnings
|
|
@@ -8000,7 +7497,7 @@ declare class CompanyWrapper {
|
|
|
8000
7497
|
* ```typescript-client
|
|
8001
7498
|
* // Minimal example with required parameters only
|
|
8002
7499
|
* const result = await finatic.getCompany({
|
|
8003
|
-
companyId: '
|
|
7500
|
+
companyId: 'example-id'
|
|
8004
7501
|
* });
|
|
8005
7502
|
*
|
|
8006
7503
|
* // Access the response data
|
|
@@ -8033,7 +7530,7 @@ interface SessionApiInterface {
|
|
|
8033
7530
|
* @param {*} [options] Override http request option.
|
|
8034
7531
|
* @throws {RequiredError}
|
|
8035
7532
|
*/
|
|
8036
|
-
getSessionUserApiBetaSessionSessionIdUserGet(requestParameters: SessionApiGetSessionUserApiBetaSessionSessionIdUserGetRequest, options?: RawAxiosRequestConfig): AxiosPromise<
|
|
7533
|
+
getSessionUserApiBetaSessionSessionIdUserGet(requestParameters: SessionApiGetSessionUserApiBetaSessionSessionIdUserGetRequest, options?: RawAxiosRequestConfig): AxiosPromise<FinaticResponseSessionUserResponse>;
|
|
8037
7534
|
/**
|
|
8038
7535
|
* Initialize a new session with company API key.
|
|
8039
7536
|
* @summary Init Session
|
|
@@ -8049,7 +7546,7 @@ interface SessionApiInterface {
|
|
|
8049
7546
|
* @param {*} [options] Override http request option.
|
|
8050
7547
|
* @throws {RequiredError}
|
|
8051
7548
|
*/
|
|
8052
|
-
startSessionApiBetaSessionStartPost(requestParameters: SessionApiStartSessionApiBetaSessionStartPostRequest, options?: RawAxiosRequestConfig): AxiosPromise<
|
|
7549
|
+
startSessionApiBetaSessionStartPost(requestParameters: SessionApiStartSessionApiBetaSessionStartPostRequest, options?: RawAxiosRequestConfig): AxiosPromise<FinaticResponseSessionResponseData>;
|
|
8053
7550
|
}
|
|
8054
7551
|
/**
|
|
8055
7552
|
* Request parameters for getPortalUrlApiBetaSessionPortalGet operation in SessionApi.
|
|
@@ -8114,7 +7611,7 @@ declare class SessionApi extends BaseAPI implements SessionApiInterface {
|
|
|
8114
7611
|
* @param {*} [options] Override http request option.
|
|
8115
7612
|
* @throws {RequiredError}
|
|
8116
7613
|
*/
|
|
8117
|
-
getSessionUserApiBetaSessionSessionIdUserGet(requestParameters: SessionApiGetSessionUserApiBetaSessionSessionIdUserGetRequest, options?: RawAxiosRequestConfig): Promise<axios.AxiosResponse<
|
|
7614
|
+
getSessionUserApiBetaSessionSessionIdUserGet(requestParameters: SessionApiGetSessionUserApiBetaSessionSessionIdUserGetRequest, options?: RawAxiosRequestConfig): Promise<axios.AxiosResponse<FinaticResponseSessionUserResponse, any, {}>>;
|
|
8118
7615
|
/**
|
|
8119
7616
|
* Initialize a new session with company API key.
|
|
8120
7617
|
* @summary Init Session
|
|
@@ -8130,7 +7627,7 @@ declare class SessionApi extends BaseAPI implements SessionApiInterface {
|
|
|
8130
7627
|
* @param {*} [options] Override http request option.
|
|
8131
7628
|
* @throws {RequiredError}
|
|
8132
7629
|
*/
|
|
8133
|
-
startSessionApiBetaSessionStartPost(requestParameters: SessionApiStartSessionApiBetaSessionStartPostRequest, options?: RawAxiosRequestConfig): Promise<axios.AxiosResponse<
|
|
7630
|
+
startSessionApiBetaSessionStartPost(requestParameters: SessionApiStartSessionApiBetaSessionStartPostRequest, options?: RawAxiosRequestConfig): Promise<axios.AxiosResponse<FinaticResponseSessionResponseData, any, {}>>;
|
|
8134
7631
|
}
|
|
8135
7632
|
|
|
8136
7633
|
/**
|
|
@@ -8199,7 +7696,7 @@ declare class SessionWrapper {
|
|
|
8199
7696
|
*
|
|
8200
7697
|
* Initialize a new session with company API key.
|
|
8201
7698
|
* @param params.xApiKey {string} Company API key
|
|
8202
|
-
* @returns {Promise<FinaticResponse<
|
|
7699
|
+
* @returns {Promise<FinaticResponse<TokenResponseData>>} Standard response with success/Error/Warning structure
|
|
8203
7700
|
*
|
|
8204
7701
|
* Generated from: POST /api/beta/session/init
|
|
8205
7702
|
* @methodId init_session_api_beta_session_init_post
|
|
@@ -8215,30 +7712,21 @@ declare class SessionWrapper {
|
|
|
8215
7712
|
* }
|
|
8216
7713
|
* ```
|
|
8217
7714
|
*/
|
|
8218
|
-
initSession(params: InitSessionParams): Promise<FinaticResponse<
|
|
7715
|
+
initSession(params: InitSessionParams): Promise<FinaticResponse<TokenResponseData>>;
|
|
8219
7716
|
/**
|
|
8220
7717
|
* Start Session
|
|
8221
7718
|
*
|
|
8222
7719
|
* Start a session with a one-time token.
|
|
8223
7720
|
* @param params.OneTimeToken {string} One-time use token obtained from init_session endpoint to authenticate and start the session
|
|
8224
7721
|
* @param params.body {SessionStartRequest} Session start request containing optional user ID to associate with the session
|
|
8225
|
-
* @returns {Promise<FinaticResponse<
|
|
7722
|
+
* @returns {Promise<FinaticResponse<SessionResponseData>>} Standard response with success/Error/Warning structure
|
|
8226
7723
|
*
|
|
8227
7724
|
* Generated from: POST /api/beta/session/start
|
|
8228
7725
|
* @methodId start_session_api_beta_session_start_post
|
|
8229
7726
|
* @category session
|
|
8230
|
-
|
|
8231
|
-
* ```typescript-client
|
|
8232
|
-
* // Example with no parameters
|
|
8233
|
-
* const result = await finatic.startSession({});
|
|
8234
|
-
*
|
|
8235
|
-
* // Access the response data
|
|
8236
|
-
* if (result.success) {
|
|
8237
|
-
* console.log('Data:', result.success.data);
|
|
8238
|
-
* }
|
|
8239
|
-
* ```
|
|
7727
|
+
|
|
8240
7728
|
*/
|
|
8241
|
-
startSession(params: StartSessionParams): Promise<FinaticResponse<
|
|
7729
|
+
startSession(params: StartSessionParams): Promise<FinaticResponse<SessionResponseData>>;
|
|
8242
7730
|
/**
|
|
8243
7731
|
* Get Portal Url
|
|
8244
7732
|
*
|
|
@@ -8247,7 +7735,7 @@ declare class SessionWrapper {
|
|
|
8247
7735
|
* The session must be in ACTIVE or AUTHENTICATING state and the request must come from the same device
|
|
8248
7736
|
* that initiated the session. Device info is automatically validated from the request.
|
|
8249
7737
|
* @param params No parameters required for this method
|
|
8250
|
-
* @returns {Promise<FinaticResponse<
|
|
7738
|
+
* @returns {Promise<FinaticResponse<PortalUrlResponse>>} Standard response with success/Error/Warning structure
|
|
8251
7739
|
*
|
|
8252
7740
|
* Generated from: GET /api/beta/session/portal
|
|
8253
7741
|
* @methodId get_portal_url_api_beta_session_portal_get
|
|
@@ -8263,7 +7751,7 @@ declare class SessionWrapper {
|
|
|
8263
7751
|
* }
|
|
8264
7752
|
* ```
|
|
8265
7753
|
*/
|
|
8266
|
-
getPortalUrl(params?: {}): Promise<FinaticResponse<
|
|
7754
|
+
getPortalUrl(params?: {}): Promise<FinaticResponse<PortalUrlResponse>>;
|
|
8267
7755
|
/**
|
|
8268
7756
|
* Get Session User
|
|
8269
7757
|
*
|
|
@@ -8279,7 +7767,7 @@ declare class SessionWrapper {
|
|
|
8279
7767
|
* - Only accessible to authenticated sessions with user_id
|
|
8280
7768
|
* - Validates that header session_id matches path session_id
|
|
8281
7769
|
* @param params.sessionId {string} Session ID
|
|
8282
|
-
* @returns {Promise<FinaticResponse<
|
|
7770
|
+
* @returns {Promise<FinaticResponse<SessionUserResponse>>} Standard response with success/Error/Warning structure
|
|
8283
7771
|
*
|
|
8284
7772
|
* Generated from: GET /api/beta/session/{session_id}/user
|
|
8285
7773
|
* @methodId get_session_user_api_beta_session__session_id__user_get
|
|
@@ -8288,7 +7776,7 @@ declare class SessionWrapper {
|
|
|
8288
7776
|
* ```typescript-client
|
|
8289
7777
|
* // Minimal example with required parameters only
|
|
8290
7778
|
* const result = await finatic.getSessionUser({
|
|
8291
|
-
sessionId: '
|
|
7779
|
+
sessionId: 'example-id'
|
|
8292
7780
|
* });
|
|
8293
7781
|
*
|
|
8294
7782
|
* // Access the response data
|
|
@@ -8299,7 +7787,7 @@ declare class SessionWrapper {
|
|
|
8299
7787
|
* }
|
|
8300
7788
|
* ```
|
|
8301
7789
|
*/
|
|
8302
|
-
getSessionUser(params: GetSessionUserParams): Promise<FinaticResponse<
|
|
7790
|
+
getSessionUser(params: GetSessionUserParams): Promise<FinaticResponse<SessionUserResponse>>;
|
|
8303
7791
|
}
|
|
8304
7792
|
|
|
8305
7793
|
/**
|
|
@@ -8768,18 +8256,12 @@ declare class FinaticConnect$1 extends EventEmitter {
|
|
|
8768
8256
|
* Get Company
|
|
8769
8257
|
*
|
|
8770
8258
|
* Get public company details by ID (no user check, no sensitive data).
|
|
8771
|
-
*
|
|
8772
|
-
* Convenience method that delegates to company wrapper.
|
|
8773
|
-
*
|
|
8774
|
-
* @param params - Optional parameters object. Only include the fields you want to use.
|
|
8775
|
-
* Example: getCompany({ accountId: "123", limit: 10, offset: 0 })
|
|
8776
|
-
* @returns FinaticResponse with success, error, and warning fields
|
|
8777
8259
|
* @methodId get_company_api_beta_company__company_id__get
|
|
8778
8260
|
* @category company
|
|
8779
8261
|
* @example
|
|
8780
8262
|
* ```typescript-client
|
|
8781
8263
|
* // Minimal example with required parameters only
|
|
8782
|
-
* const result = await finatic.getCompany({ companyId: '
|
|
8264
|
+
* const result = await finatic.getCompany({ companyId: 'example-id' });
|
|
8783
8265
|
*
|
|
8784
8266
|
* // Access the response data
|
|
8785
8267
|
* if (result.success) {
|
|
@@ -8791,7 +8273,7 @@ declare class FinaticConnect$1 extends EventEmitter {
|
|
|
8791
8273
|
* @example
|
|
8792
8274
|
* ```typescript-server
|
|
8793
8275
|
* // Minimal example with required parameters only
|
|
8794
|
-
* const result = await finatic.getCompany({ companyId: '
|
|
8276
|
+
* const result = await finatic.getCompany({ companyId: 'example-id' });
|
|
8795
8277
|
*
|
|
8796
8278
|
* // Access the response data
|
|
8797
8279
|
* if (result.success) {
|
|
@@ -8804,7 +8286,7 @@ declare class FinaticConnect$1 extends EventEmitter {
|
|
|
8804
8286
|
* ```python
|
|
8805
8287
|
* # Minimal example with required parameters only
|
|
8806
8288
|
* result = await finatic.get_company(
|
|
8807
|
-
* company_id='
|
|
8289
|
+
* company_id='example'
|
|
8808
8290
|
* )
|
|
8809
8291
|
*
|
|
8810
8292
|
* # Access the response data
|
|
@@ -8823,12 +8305,6 @@ declare class FinaticConnect$1 extends EventEmitter {
|
|
|
8823
8305
|
* Returns array of current balances (one per unit_code per account).
|
|
8824
8306
|
* This endpoint is accessible from the portal and uses session-only authentication.
|
|
8825
8307
|
* Returns balances from connections the company has read access to.
|
|
8826
|
-
*
|
|
8827
|
-
* Convenience method that delegates to brokers wrapper.
|
|
8828
|
-
*
|
|
8829
|
-
* @param params - Optional parameters object. Only include the fields you want to use.
|
|
8830
|
-
* Example: getBalances({ accountId: "123", limit: 10, offset: 0 })
|
|
8831
|
-
* @returns FinaticResponse with success, error, and warning fields
|
|
8832
8308
|
* @methodId get_balances_api_beta_brokers_data_balances_get
|
|
8833
8309
|
* @category brokers
|
|
8834
8310
|
* @example
|
|
@@ -8844,7 +8320,7 @@ declare class FinaticConnect$1 extends EventEmitter {
|
|
|
8844
8320
|
* @example
|
|
8845
8321
|
* ```typescript-client
|
|
8846
8322
|
* // Full example with optional parameters
|
|
8847
|
-
* const result = await finatic.getBalances({ brokerId: '
|
|
8323
|
+
* const result = await finatic.getBalances({ brokerId: 'example-id', connectionId: 'example-id', accountId: 'example-id' });
|
|
8848
8324
|
*
|
|
8849
8325
|
* // Handle response with warnings
|
|
8850
8326
|
* if (result.success) {
|
|
@@ -8879,9 +8355,9 @@ declare class FinaticConnect$1 extends EventEmitter {
|
|
|
8879
8355
|
* ```python
|
|
8880
8356
|
* # Full example with optional parameters
|
|
8881
8357
|
* result = await finatic.get_balances(
|
|
8882
|
-
* broker_id='
|
|
8883
|
-
connection_id='
|
|
8884
|
-
account_id='
|
|
8358
|
+
* broker_id='example',
|
|
8359
|
+
connection_id='example',
|
|
8360
|
+
account_id='example'
|
|
8885
8361
|
* )
|
|
8886
8362
|
*
|
|
8887
8363
|
* # Handle response with warnings
|
|
@@ -8901,12 +8377,6 @@ declare class FinaticConnect$1 extends EventEmitter {
|
|
|
8901
8377
|
*
|
|
8902
8378
|
* This endpoint is accessible from the portal and uses session-only authentication.
|
|
8903
8379
|
* Returns accounts from connections the company has read access to.
|
|
8904
|
-
*
|
|
8905
|
-
* Convenience method that delegates to brokers wrapper.
|
|
8906
|
-
*
|
|
8907
|
-
* @param params - Optional parameters object. Only include the fields you want to use.
|
|
8908
|
-
* Example: getAccounts({ accountId: "123", limit: 10, offset: 0 })
|
|
8909
|
-
* @returns FinaticResponse with success, error, and warning fields
|
|
8910
8380
|
* @methodId get_accounts_api_beta_brokers_data_accounts_get
|
|
8911
8381
|
* @category brokers
|
|
8912
8382
|
* @example
|
|
@@ -8922,7 +8392,7 @@ declare class FinaticConnect$1 extends EventEmitter {
|
|
|
8922
8392
|
* @example
|
|
8923
8393
|
* ```typescript-client
|
|
8924
8394
|
* // Full example with optional parameters
|
|
8925
|
-
* const result = await finatic.getAccounts({ brokerId: '
|
|
8395
|
+
* const result = await finatic.getAccounts({ brokerId: 'example-id', connectionId: 'example-id', accountType: 'margin' });
|
|
8926
8396
|
*
|
|
8927
8397
|
* // Handle response with warnings
|
|
8928
8398
|
* if (result.success) {
|
|
@@ -8957,8 +8427,8 @@ declare class FinaticConnect$1 extends EventEmitter {
|
|
|
8957
8427
|
* ```python
|
|
8958
8428
|
* # Full example with optional parameters
|
|
8959
8429
|
* result = await finatic.get_accounts(
|
|
8960
|
-
* broker_id='
|
|
8961
|
-
connection_id='
|
|
8430
|
+
* broker_id='example',
|
|
8431
|
+
connection_id='example',
|
|
8962
8432
|
account_type='margin'
|
|
8963
8433
|
* )
|
|
8964
8434
|
*
|
|
@@ -8984,12 +8454,6 @@ declare class FinaticConnect$1 extends EventEmitter {
|
|
|
8984
8454
|
* -------
|
|
8985
8455
|
* FinaticResponse[list[BrokerInfo]]
|
|
8986
8456
|
* list of available brokers with their metadata.
|
|
8987
|
-
*
|
|
8988
|
-
* Convenience method that delegates to brokers wrapper.
|
|
8989
|
-
*
|
|
8990
|
-
* @param params - Optional parameters object. Only include the fields you want to use.
|
|
8991
|
-
* Example: getBrokers({ accountId: "123", limit: 10, offset: 0 })
|
|
8992
|
-
* @returns FinaticResponse with success, error, and warning fields
|
|
8993
8457
|
* @methodId get_brokers_api_beta_brokers__get
|
|
8994
8458
|
* @category brokers
|
|
8995
8459
|
* @example
|
|
@@ -9031,12 +8495,6 @@ declare class FinaticConnect$1 extends EventEmitter {
|
|
|
9031
8495
|
* This endpoint is accessible from the portal and uses session-only authentication.
|
|
9032
8496
|
* Returns connections that the user has any permissions for, including the current
|
|
9033
8497
|
* company's permissions (read/write) for each connection.
|
|
9034
|
-
*
|
|
9035
|
-
* Convenience method that delegates to brokers wrapper.
|
|
9036
|
-
*
|
|
9037
|
-
* @param params - Optional parameters object. Only include the fields you want to use.
|
|
9038
|
-
* Example: getBrokerConnections({ accountId: "123", limit: 10, offset: 0 })
|
|
9039
|
-
* @returns FinaticResponse with success, error, and warning fields
|
|
9040
8498
|
* @methodId list_broker_connections_api_beta_brokers_connections_get
|
|
9041
8499
|
* @category brokers
|
|
9042
8500
|
* @example
|
|
@@ -9077,18 +8535,12 @@ declare class FinaticConnect$1 extends EventEmitter {
|
|
|
9077
8535
|
*
|
|
9078
8536
|
* If the company is the only one with access, the entire connection is deleted.
|
|
9079
8537
|
* If other companies have access, only the company's access is removed.
|
|
9080
|
-
*
|
|
9081
|
-
* Convenience method that delegates to brokers wrapper.
|
|
9082
|
-
*
|
|
9083
|
-
* @param params - Optional parameters object. Only include the fields you want to use.
|
|
9084
|
-
* Example: disconnectCompanyFromBroker({ accountId: "123", limit: 10, offset: 0 })
|
|
9085
|
-
* @returns FinaticResponse with success, error, and warning fields
|
|
9086
8538
|
* @methodId disconnect_company_from_broker_api_beta_brokers_disconnect_company__connection_id__delete
|
|
9087
8539
|
* @category brokers
|
|
9088
8540
|
* @example
|
|
9089
8541
|
* ```typescript-client
|
|
9090
8542
|
* // Minimal example with required parameters only
|
|
9091
|
-
* const result = await finatic.disconnectCompanyFromBroker({ connectionId: '
|
|
8543
|
+
* const result = await finatic.disconnectCompanyFromBroker({ connectionId: 'example-id' });
|
|
9092
8544
|
*
|
|
9093
8545
|
* // Access the response data
|
|
9094
8546
|
* if (result.success) {
|
|
@@ -9100,7 +8552,7 @@ declare class FinaticConnect$1 extends EventEmitter {
|
|
|
9100
8552
|
* @example
|
|
9101
8553
|
* ```typescript-server
|
|
9102
8554
|
* // Minimal example with required parameters only
|
|
9103
|
-
* const result = await finatic.disconnectCompanyFromBroker({ connectionId: '
|
|
8555
|
+
* const result = await finatic.disconnectCompanyFromBroker({ connectionId: 'example-id' });
|
|
9104
8556
|
*
|
|
9105
8557
|
* // Access the response data
|
|
9106
8558
|
* if (result.success) {
|
|
@@ -9113,7 +8565,7 @@ declare class FinaticConnect$1 extends EventEmitter {
|
|
|
9113
8565
|
* ```python
|
|
9114
8566
|
* # Minimal example with required parameters only
|
|
9115
8567
|
* result = await finatic.disconnect_company_from_broker(
|
|
9116
|
-
* connection_id='
|
|
8568
|
+
* connection_id='example'
|
|
9117
8569
|
* )
|
|
9118
8570
|
*
|
|
9119
8571
|
* # Access the response data
|
|
@@ -9131,12 +8583,6 @@ declare class FinaticConnect$1 extends EventEmitter {
|
|
|
9131
8583
|
*
|
|
9132
8584
|
* This endpoint is accessible from the portal and uses session-only authentication.
|
|
9133
8585
|
* Returns orders from connections the company has read access to.
|
|
9134
|
-
*
|
|
9135
|
-
* Convenience method that delegates to brokers wrapper.
|
|
9136
|
-
*
|
|
9137
|
-
* @param params - Optional parameters object. Only include the fields you want to use.
|
|
9138
|
-
* Example: getOrders({ accountId: "123", limit: 10, offset: 0 })
|
|
9139
|
-
* @returns FinaticResponse with success, error, and warning fields
|
|
9140
8586
|
* @methodId get_orders_api_beta_brokers_data_orders_get
|
|
9141
8587
|
* @category brokers
|
|
9142
8588
|
* @example
|
|
@@ -9152,7 +8598,7 @@ declare class FinaticConnect$1 extends EventEmitter {
|
|
|
9152
8598
|
* @example
|
|
9153
8599
|
* ```typescript-client
|
|
9154
8600
|
* // Full example with optional parameters
|
|
9155
|
-
* const result = await finatic.getOrders({ brokerId: '
|
|
8601
|
+
* const result = await finatic.getOrders({ brokerId: 'example-id', connectionId: 'example-id', accountId: 'example-id' });
|
|
9156
8602
|
*
|
|
9157
8603
|
* // Handle response with warnings
|
|
9158
8604
|
* if (result.success) {
|
|
@@ -9187,9 +8633,9 @@ declare class FinaticConnect$1 extends EventEmitter {
|
|
|
9187
8633
|
* ```python
|
|
9188
8634
|
* # Full example with optional parameters
|
|
9189
8635
|
* result = await finatic.get_orders(
|
|
9190
|
-
* broker_id='
|
|
9191
|
-
connection_id='
|
|
9192
|
-
account_id='
|
|
8636
|
+
* broker_id='example',
|
|
8637
|
+
connection_id='example',
|
|
8638
|
+
account_id='example'
|
|
9193
8639
|
* )
|
|
9194
8640
|
*
|
|
9195
8641
|
* # Handle response with warnings
|
|
@@ -9209,12 +8655,6 @@ declare class FinaticConnect$1 extends EventEmitter {
|
|
|
9209
8655
|
*
|
|
9210
8656
|
* This endpoint is accessible from the portal and uses session-only authentication.
|
|
9211
8657
|
* Returns positions from connections the company has read access to.
|
|
9212
|
-
*
|
|
9213
|
-
* Convenience method that delegates to brokers wrapper.
|
|
9214
|
-
*
|
|
9215
|
-
* @param params - Optional parameters object. Only include the fields you want to use.
|
|
9216
|
-
* Example: getPositions({ accountId: "123", limit: 10, offset: 0 })
|
|
9217
|
-
* @returns FinaticResponse with success, error, and warning fields
|
|
9218
8658
|
* @methodId get_positions_api_beta_brokers_data_positions_get
|
|
9219
8659
|
* @category brokers
|
|
9220
8660
|
* @example
|
|
@@ -9230,7 +8670,7 @@ declare class FinaticConnect$1 extends EventEmitter {
|
|
|
9230
8670
|
* @example
|
|
9231
8671
|
* ```typescript-client
|
|
9232
8672
|
* // Full example with optional parameters
|
|
9233
|
-
* const result = await finatic.getPositions({ brokerId: '
|
|
8673
|
+
* const result = await finatic.getPositions({ brokerId: 'example-id', connectionId: 'example-id', accountId: 'example-id' });
|
|
9234
8674
|
*
|
|
9235
8675
|
* // Handle response with warnings
|
|
9236
8676
|
* if (result.success) {
|
|
@@ -9265,9 +8705,9 @@ declare class FinaticConnect$1 extends EventEmitter {
|
|
|
9265
8705
|
* ```python
|
|
9266
8706
|
* # Full example with optional parameters
|
|
9267
8707
|
* result = await finatic.get_positions(
|
|
9268
|
-
* broker_id='
|
|
9269
|
-
connection_id='
|
|
9270
|
-
account_id='
|
|
8708
|
+
* broker_id='example',
|
|
8709
|
+
connection_id='example',
|
|
8710
|
+
account_id='example'
|
|
9271
8711
|
* )
|
|
9272
8712
|
*
|
|
9273
8713
|
* # Handle response with warnings
|
|
@@ -9287,12 +8727,6 @@ declare class FinaticConnect$1 extends EventEmitter {
|
|
|
9287
8727
|
*
|
|
9288
8728
|
* Returns transactions from connections the company has read access to.
|
|
9289
8729
|
* This endpoint is accessible from the portal and uses session-only authentication.
|
|
9290
|
-
*
|
|
9291
|
-
* Convenience method that delegates to brokers wrapper.
|
|
9292
|
-
*
|
|
9293
|
-
* @param params - Optional parameters object. Only include the fields you want to use.
|
|
9294
|
-
* Example: getTransactions({ accountId: "123", limit: 10, offset: 0 })
|
|
9295
|
-
* @returns FinaticResponse with success, error, and warning fields
|
|
9296
8730
|
* @methodId get_transactions_api_beta_brokers_data_transactions_get
|
|
9297
8731
|
* @category brokers
|
|
9298
8732
|
* @example
|
|
@@ -9308,7 +8742,7 @@ declare class FinaticConnect$1 extends EventEmitter {
|
|
|
9308
8742
|
* @example
|
|
9309
8743
|
* ```typescript-client
|
|
9310
8744
|
* // Full example with optional parameters
|
|
9311
|
-
* const result = await finatic.getTransactions({ brokerId: '
|
|
8745
|
+
* const result = await finatic.getTransactions({ brokerId: 'example-id', connectionId: 'example-id', accountId: 'example-id' });
|
|
9312
8746
|
*
|
|
9313
8747
|
* // Handle response with warnings
|
|
9314
8748
|
* if (result.success) {
|
|
@@ -9343,9 +8777,9 @@ declare class FinaticConnect$1 extends EventEmitter {
|
|
|
9343
8777
|
* ```python
|
|
9344
8778
|
* # Full example with optional parameters
|
|
9345
8779
|
* result = await finatic.get_transactions(
|
|
9346
|
-
* broker_id='
|
|
9347
|
-
connection_id='
|
|
9348
|
-
account_id='
|
|
8780
|
+
* broker_id='example',
|
|
8781
|
+
connection_id='example',
|
|
8782
|
+
account_id='example'
|
|
9349
8783
|
* )
|
|
9350
8784
|
*
|
|
9351
8785
|
* # Handle response with warnings
|
|
@@ -9364,18 +8798,12 @@ declare class FinaticConnect$1 extends EventEmitter {
|
|
|
9364
8798
|
* Get order fills for a specific order.
|
|
9365
8799
|
*
|
|
9366
8800
|
* This endpoint returns all execution fills for the specified order.
|
|
9367
|
-
*
|
|
9368
|
-
* Convenience method that delegates to brokers wrapper.
|
|
9369
|
-
*
|
|
9370
|
-
* @param params - Optional parameters object. Only include the fields you want to use.
|
|
9371
|
-
* Example: getOrderFills({ accountId: "123", limit: 10, offset: 0 })
|
|
9372
|
-
* @returns FinaticResponse with success, error, and warning fields
|
|
9373
8801
|
* @methodId get_order_fills_api_beta_brokers_data_orders__order_id__fills_get
|
|
9374
8802
|
* @category brokers
|
|
9375
8803
|
* @example
|
|
9376
8804
|
* ```typescript-client
|
|
9377
8805
|
* // Minimal example with required parameters only
|
|
9378
|
-
* const result = await finatic.getOrderFills({ orderId: '
|
|
8806
|
+
* const result = await finatic.getOrderFills({ orderId: 'example-id' });
|
|
9379
8807
|
*
|
|
9380
8808
|
* // Access the response data
|
|
9381
8809
|
* if (result.success) {
|
|
@@ -9387,7 +8815,7 @@ declare class FinaticConnect$1 extends EventEmitter {
|
|
|
9387
8815
|
* @example
|
|
9388
8816
|
* ```typescript-client
|
|
9389
8817
|
* // Full example with optional parameters
|
|
9390
|
-
* const result = await finatic.getOrderFills({ orderId: '
|
|
8818
|
+
* const result = await finatic.getOrderFills({ orderId: 'example-id', connectionId: 'example-id', limit: 0, offset: 0 });
|
|
9391
8819
|
*
|
|
9392
8820
|
* // Handle response with warnings
|
|
9393
8821
|
* if (result.success) {
|
|
@@ -9402,7 +8830,7 @@ declare class FinaticConnect$1 extends EventEmitter {
|
|
|
9402
8830
|
* @example
|
|
9403
8831
|
* ```typescript-server
|
|
9404
8832
|
* // Minimal example with required parameters only
|
|
9405
|
-
* const result = await finatic.getOrderFills({ orderId: '
|
|
8833
|
+
* const result = await finatic.getOrderFills({ orderId: 'example-id' });
|
|
9406
8834
|
*
|
|
9407
8835
|
* // Access the response data
|
|
9408
8836
|
* if (result.success) {
|
|
@@ -9415,7 +8843,7 @@ declare class FinaticConnect$1 extends EventEmitter {
|
|
|
9415
8843
|
* ```python
|
|
9416
8844
|
* # Minimal example with required parameters only
|
|
9417
8845
|
* result = await finatic.get_order_fills(
|
|
9418
|
-
* order_id='
|
|
8846
|
+
* order_id='example'
|
|
9419
8847
|
* )
|
|
9420
8848
|
*
|
|
9421
8849
|
* # Access the response data
|
|
@@ -9428,10 +8856,10 @@ declare class FinaticConnect$1 extends EventEmitter {
|
|
|
9428
8856
|
* ```python
|
|
9429
8857
|
* # Full example with optional parameters
|
|
9430
8858
|
* result = await finatic.get_order_fills(
|
|
9431
|
-
* order_id='
|
|
9432
|
-
connection_id='
|
|
9433
|
-
limit=
|
|
9434
|
-
offset=
|
|
8859
|
+
* order_id='example',
|
|
8860
|
+
connection_id='example',
|
|
8861
|
+
limit='example',
|
|
8862
|
+
offset='example'
|
|
9435
8863
|
* )
|
|
9436
8864
|
*
|
|
9437
8865
|
* # Handle response with warnings
|
|
@@ -9450,18 +8878,12 @@ declare class FinaticConnect$1 extends EventEmitter {
|
|
|
9450
8878
|
* Get order events for a specific order.
|
|
9451
8879
|
*
|
|
9452
8880
|
* This endpoint returns all lifecycle events for the specified order.
|
|
9453
|
-
*
|
|
9454
|
-
* Convenience method that delegates to brokers wrapper.
|
|
9455
|
-
*
|
|
9456
|
-
* @param params - Optional parameters object. Only include the fields you want to use.
|
|
9457
|
-
* Example: getOrderEvents({ accountId: "123", limit: 10, offset: 0 })
|
|
9458
|
-
* @returns FinaticResponse with success, error, and warning fields
|
|
9459
8881
|
* @methodId get_order_events_api_beta_brokers_data_orders__order_id__events_get
|
|
9460
8882
|
* @category brokers
|
|
9461
8883
|
* @example
|
|
9462
8884
|
* ```typescript-client
|
|
9463
8885
|
* // Minimal example with required parameters only
|
|
9464
|
-
* const result = await finatic.getOrderEvents({ orderId: '
|
|
8886
|
+
* const result = await finatic.getOrderEvents({ orderId: 'example-id' });
|
|
9465
8887
|
*
|
|
9466
8888
|
* // Access the response data
|
|
9467
8889
|
* if (result.success) {
|
|
@@ -9473,7 +8895,7 @@ declare class FinaticConnect$1 extends EventEmitter {
|
|
|
9473
8895
|
* @example
|
|
9474
8896
|
* ```typescript-client
|
|
9475
8897
|
* // Full example with optional parameters
|
|
9476
|
-
* const result = await finatic.getOrderEvents({ orderId: '
|
|
8898
|
+
* const result = await finatic.getOrderEvents({ orderId: 'example-id', connectionId: 'example-id', limit: 0, offset: 0 });
|
|
9477
8899
|
*
|
|
9478
8900
|
* // Handle response with warnings
|
|
9479
8901
|
* if (result.success) {
|
|
@@ -9488,7 +8910,7 @@ declare class FinaticConnect$1 extends EventEmitter {
|
|
|
9488
8910
|
* @example
|
|
9489
8911
|
* ```typescript-server
|
|
9490
8912
|
* // Minimal example with required parameters only
|
|
9491
|
-
* const result = await finatic.getOrderEvents({ orderId: '
|
|
8913
|
+
* const result = await finatic.getOrderEvents({ orderId: 'example-id' });
|
|
9492
8914
|
*
|
|
9493
8915
|
* // Access the response data
|
|
9494
8916
|
* if (result.success) {
|
|
@@ -9501,7 +8923,7 @@ declare class FinaticConnect$1 extends EventEmitter {
|
|
|
9501
8923
|
* ```python
|
|
9502
8924
|
* # Minimal example with required parameters only
|
|
9503
8925
|
* result = await finatic.get_order_events(
|
|
9504
|
-
* order_id='
|
|
8926
|
+
* order_id='example'
|
|
9505
8927
|
* )
|
|
9506
8928
|
*
|
|
9507
8929
|
* # Access the response data
|
|
@@ -9514,10 +8936,10 @@ declare class FinaticConnect$1 extends EventEmitter {
|
|
|
9514
8936
|
* ```python
|
|
9515
8937
|
* # Full example with optional parameters
|
|
9516
8938
|
* result = await finatic.get_order_events(
|
|
9517
|
-
* order_id='
|
|
9518
|
-
connection_id='
|
|
9519
|
-
limit=
|
|
9520
|
-
offset=
|
|
8939
|
+
* order_id='example',
|
|
8940
|
+
connection_id='example',
|
|
8941
|
+
limit='example',
|
|
8942
|
+
offset='example'
|
|
9521
8943
|
* )
|
|
9522
8944
|
*
|
|
9523
8945
|
* # Handle response with warnings
|
|
@@ -9536,12 +8958,6 @@ declare class FinaticConnect$1 extends EventEmitter {
|
|
|
9536
8958
|
* Get order groups.
|
|
9537
8959
|
*
|
|
9538
8960
|
* This endpoint returns order groups that contain multiple orders.
|
|
9539
|
-
*
|
|
9540
|
-
* Convenience method that delegates to brokers wrapper.
|
|
9541
|
-
*
|
|
9542
|
-
* @param params - Optional parameters object. Only include the fields you want to use.
|
|
9543
|
-
* Example: getOrderGroups({ accountId: "123", limit: 10, offset: 0 })
|
|
9544
|
-
* @returns FinaticResponse with success, error, and warning fields
|
|
9545
8961
|
* @methodId get_order_groups_api_beta_brokers_data_orders_groups_get
|
|
9546
8962
|
* @category brokers
|
|
9547
8963
|
* @example
|
|
@@ -9557,7 +8973,7 @@ declare class FinaticConnect$1 extends EventEmitter {
|
|
|
9557
8973
|
* @example
|
|
9558
8974
|
* ```typescript-client
|
|
9559
8975
|
* // Full example with optional parameters
|
|
9560
|
-
* const result = await finatic.getOrderGroups({ brokerId: '
|
|
8976
|
+
* const result = await finatic.getOrderGroups({ brokerId: 'example-id', connectionId: 'example-id', limit: 0 });
|
|
9561
8977
|
*
|
|
9562
8978
|
* // Handle response with warnings
|
|
9563
8979
|
* if (result.success) {
|
|
@@ -9592,9 +9008,9 @@ declare class FinaticConnect$1 extends EventEmitter {
|
|
|
9592
9008
|
* ```python
|
|
9593
9009
|
* # Full example with optional parameters
|
|
9594
9010
|
* result = await finatic.get_order_groups(
|
|
9595
|
-
* broker_id='
|
|
9596
|
-
connection_id='
|
|
9597
|
-
limit=
|
|
9011
|
+
* broker_id='example',
|
|
9012
|
+
connection_id='example',
|
|
9013
|
+
limit='example'
|
|
9598
9014
|
* )
|
|
9599
9015
|
*
|
|
9600
9016
|
* # Handle response with warnings
|
|
@@ -9614,12 +9030,6 @@ declare class FinaticConnect$1 extends EventEmitter {
|
|
|
9614
9030
|
*
|
|
9615
9031
|
* This endpoint returns tax lots for positions, which are used for tax reporting.
|
|
9616
9032
|
* Each lot tracks when a position was opened/closed and at what prices.
|
|
9617
|
-
*
|
|
9618
|
-
* Convenience method that delegates to brokers wrapper.
|
|
9619
|
-
*
|
|
9620
|
-
* @param params - Optional parameters object. Only include the fields you want to use.
|
|
9621
|
-
* Example: getPositionLots({ accountId: "123", limit: 10, offset: 0 })
|
|
9622
|
-
* @returns FinaticResponse with success, error, and warning fields
|
|
9623
9033
|
* @methodId get_position_lots_api_beta_brokers_data_positions_lots_get
|
|
9624
9034
|
* @category brokers
|
|
9625
9035
|
* @example
|
|
@@ -9635,7 +9045,7 @@ declare class FinaticConnect$1 extends EventEmitter {
|
|
|
9635
9045
|
* @example
|
|
9636
9046
|
* ```typescript-client
|
|
9637
9047
|
* // Full example with optional parameters
|
|
9638
|
-
* const result = await finatic.getPositionLots({ brokerId: '
|
|
9048
|
+
* const result = await finatic.getPositionLots({ brokerId: 'example-id', connectionId: 'example-id', accountId: 'example-id' });
|
|
9639
9049
|
*
|
|
9640
9050
|
* // Handle response with warnings
|
|
9641
9051
|
* if (result.success) {
|
|
@@ -9670,9 +9080,9 @@ declare class FinaticConnect$1 extends EventEmitter {
|
|
|
9670
9080
|
* ```python
|
|
9671
9081
|
* # Full example with optional parameters
|
|
9672
9082
|
* result = await finatic.get_position_lots(
|
|
9673
|
-
* broker_id='
|
|
9674
|
-
connection_id='
|
|
9675
|
-
account_id='
|
|
9083
|
+
* broker_id='example',
|
|
9084
|
+
connection_id='example',
|
|
9085
|
+
account_id='example'
|
|
9676
9086
|
* )
|
|
9677
9087
|
*
|
|
9678
9088
|
* # Handle response with warnings
|
|
@@ -9691,18 +9101,12 @@ declare class FinaticConnect$1 extends EventEmitter {
|
|
|
9691
9101
|
* Get position lot fills for a specific lot.
|
|
9692
9102
|
*
|
|
9693
9103
|
* This endpoint returns all fills associated with a specific position lot.
|
|
9694
|
-
*
|
|
9695
|
-
* Convenience method that delegates to brokers wrapper.
|
|
9696
|
-
*
|
|
9697
|
-
* @param params - Optional parameters object. Only include the fields you want to use.
|
|
9698
|
-
* Example: getPositionLotFills({ accountId: "123", limit: 10, offset: 0 })
|
|
9699
|
-
* @returns FinaticResponse with success, error, and warning fields
|
|
9700
9104
|
* @methodId get_position_lot_fills_api_beta_brokers_data_positions_lots__lot_id__fills_get
|
|
9701
9105
|
* @category brokers
|
|
9702
9106
|
* @example
|
|
9703
9107
|
* ```typescript-client
|
|
9704
9108
|
* // Minimal example with required parameters only
|
|
9705
|
-
* const result = await finatic.getPositionLotFills({ lotId: '
|
|
9109
|
+
* const result = await finatic.getPositionLotFills({ lotId: 'example-id' });
|
|
9706
9110
|
*
|
|
9707
9111
|
* // Access the response data
|
|
9708
9112
|
* if (result.success) {
|
|
@@ -9714,7 +9118,7 @@ declare class FinaticConnect$1 extends EventEmitter {
|
|
|
9714
9118
|
* @example
|
|
9715
9119
|
* ```typescript-client
|
|
9716
9120
|
* // Full example with optional parameters
|
|
9717
|
-
* const result = await finatic.getPositionLotFills({ lotId: '
|
|
9121
|
+
* const result = await finatic.getPositionLotFills({ lotId: 'example-id', connectionId: 'example-id', limit: 0, offset: 0 });
|
|
9718
9122
|
*
|
|
9719
9123
|
* // Handle response with warnings
|
|
9720
9124
|
* if (result.success) {
|
|
@@ -9729,7 +9133,7 @@ declare class FinaticConnect$1 extends EventEmitter {
|
|
|
9729
9133
|
* @example
|
|
9730
9134
|
* ```typescript-server
|
|
9731
9135
|
* // Minimal example with required parameters only
|
|
9732
|
-
* const result = await finatic.getPositionLotFills({ lotId: '
|
|
9136
|
+
* const result = await finatic.getPositionLotFills({ lotId: 'example-id' });
|
|
9733
9137
|
*
|
|
9734
9138
|
* // Access the response data
|
|
9735
9139
|
* if (result.success) {
|
|
@@ -9742,7 +9146,7 @@ declare class FinaticConnect$1 extends EventEmitter {
|
|
|
9742
9146
|
* ```python
|
|
9743
9147
|
* # Minimal example with required parameters only
|
|
9744
9148
|
* result = await finatic.get_position_lot_fills(
|
|
9745
|
-
* lot_id='
|
|
9149
|
+
* lot_id='example'
|
|
9746
9150
|
* )
|
|
9747
9151
|
*
|
|
9748
9152
|
* # Access the response data
|
|
@@ -9755,10 +9159,10 @@ declare class FinaticConnect$1 extends EventEmitter {
|
|
|
9755
9159
|
* ```python
|
|
9756
9160
|
* # Full example with optional parameters
|
|
9757
9161
|
* result = await finatic.get_position_lot_fills(
|
|
9758
|
-
* lot_id='
|
|
9759
|
-
connection_id='
|
|
9760
|
-
limit=
|
|
9761
|
-
offset=
|
|
9162
|
+
* lot_id='example',
|
|
9163
|
+
connection_id='example',
|
|
9164
|
+
limit='example',
|
|
9165
|
+
offset='example'
|
|
9762
9166
|
* )
|
|
9763
9167
|
*
|
|
9764
9168
|
* # Handle response with warnings
|
|
@@ -9774,82 +9178,40 @@ declare class FinaticConnect$1 extends EventEmitter {
|
|
|
9774
9178
|
/**
|
|
9775
9179
|
* Place Order
|
|
9776
9180
|
*
|
|
9777
|
-
*
|
|
9181
|
+
* Place a new order through the specified broker.
|
|
9778
9182
|
*
|
|
9779
|
-
*
|
|
9780
|
-
*
|
|
9781
|
-
*
|
|
9782
|
-
*
|
|
9783
|
-
* -------------------
|
|
9784
|
-
* The following fields constitute the unified Finatic *common order schema* and
|
|
9785
|
-
* therefore appear individually as query parameters in the autogenerated
|
|
9786
|
-
* OpenAPI documentation:
|
|
9787
|
-
*
|
|
9788
|
-
* - ``broker``
|
|
9789
|
-
* - ``account_number``
|
|
9790
|
-
* - ``order_type``
|
|
9791
|
-
* - ``asset_type``
|
|
9792
|
-
* - ``action``
|
|
9793
|
-
* - ``time_in_force``
|
|
9794
|
-
* - ``symbol``
|
|
9795
|
-
* - ``order_qty``
|
|
9796
|
-
*
|
|
9797
|
-
* They are surfaced as *query* parameters **only to make the accepted fields
|
|
9798
|
-
* obvious in the interactive docs**. In production usage you should send these
|
|
9799
|
-
* fields inside the JSON body (see ``order_request``) so that the entire order
|
|
9800
|
-
* specification travels in one payload. (Nothing will break if you send both, but there is no need to do so.)
|
|
9801
|
-
*
|
|
9802
|
-
* Body payload & broker-specific extras
|
|
9803
|
-
* -------------------------------------
|
|
9804
|
-
*
|
|
9805
|
-
* Put the standard parameters plus any broker-specific extensions under the
|
|
9806
|
-
* ``order`` key of the body. Refer to the bundled OpenAPI examples below to
|
|
9807
|
-
* see complete payloads for common order types (market, limit, spreads, etc.)
|
|
9808
|
-
* across supported brokers.
|
|
9809
|
-
*
|
|
9810
|
-
* For a formal reference of broker-specific extensions inspect the
|
|
9811
|
-
* ``BrokerOrderPlaceExtras`` schema.
|
|
9812
|
-
*
|
|
9813
|
-
* The endpoint resolves the active ``user_broker_connection`` by calling the
|
|
9814
|
-
* ``get_user_broker_connection_ids_for_broker`` RPC in Supabase. If no active
|
|
9815
|
-
* connection exists it returns a list of *available* brokers so your client
|
|
9816
|
-
* can guide the user accordingly.
|
|
9817
|
-
*
|
|
9818
|
-
* Broker Notes
|
|
9819
|
-
* ------------
|
|
9820
|
-
* - The responses that you get back from the broker are not always the same.
|
|
9821
|
-
* The response models are validated for each broker, but we do not standardize the repsonses.
|
|
9822
|
-
*
|
|
9823
|
-
* - Tasty Trade: If you want to trade options for a particular stock, first fetch the full
|
|
9824
|
-
* option chain via the GET https://api.tastyworks.com/option-chains/{stock_symbol}/nested endpoint.
|
|
9825
|
-
* This endpoint returns all available expirations that tastytrade offers for that equity symbol.
|
|
9826
|
-
* Each expiration contains a list of strikes, where each strike has a call and put field representing
|
|
9827
|
-
* the call symbol and put symbol respectively.
|
|
9828
|
-
*
|
|
9829
|
-
* We are planning to add a new endpoint to fetch the option chain for a particular stock and
|
|
9830
|
-
* handle this logic for you, but for now you need to fetch the option chain manually.
|
|
9831
|
-
*
|
|
9832
|
-
* Convenience method that delegates to brokers wrapper.
|
|
9833
|
-
*
|
|
9834
|
-
* @param params - Optional parameters object. Only include the fields you want to use.
|
|
9835
|
-
* Example: placeOrder({ accountId: "123", limit: 10, offset: 0 })
|
|
9836
|
-
* @returns FinaticResponse with success, error, and warning fields
|
|
9183
|
+
* Creates an order using the broker connection associated with your account.
|
|
9184
|
+
* Request uses top-level broker, account_number, and order. The order object
|
|
9185
|
+
* includes common fields (symbol, quantity, order type, etc.) shared across
|
|
9186
|
+
* brokers plus broker-specific fields—see the broker-specific tabs for details.
|
|
9837
9187
|
* @methodId place_order_api_beta_brokers_orders_post
|
|
9838
9188
|
* @category brokers
|
|
9839
9189
|
* @example
|
|
9840
9190
|
* ```typescript-client
|
|
9841
|
-
* //
|
|
9842
|
-
* const result = await finatic.placeOrder(
|
|
9191
|
+
* // This method requires the following required fields:
|
|
9192
|
+
* const result = await finatic.placeOrder({
|
|
9193
|
+
broker: 'robinhood',
|
|
9194
|
+
order: {
|
|
9195
|
+
orderType: 'market',
|
|
9196
|
+
assetType: 'equity',
|
|
9197
|
+
action: 'buy',
|
|
9198
|
+
timeInForce: 'day',
|
|
9199
|
+
symbol: 'AAPL',
|
|
9200
|
+
orderQty: 10
|
|
9201
|
+
}
|
|
9202
|
+
* });
|
|
9843
9203
|
*
|
|
9844
9204
|
* // Access the response data
|
|
9845
9205
|
* if (result.success) {
|
|
9846
9206
|
* console.log('Data:', result.success.data);
|
|
9207
|
+
* } else if (result.error) {
|
|
9208
|
+
* console.error('Error:', result.error.message);
|
|
9847
9209
|
* }
|
|
9848
9210
|
* ```
|
|
9849
9211
|
* @example
|
|
9850
9212
|
* ```typescript-client
|
|
9851
9213
|
* // Full example with optional parameters
|
|
9852
|
-
* const result = await finatic.placeOrder({ connectionId: '
|
|
9214
|
+
* const result = await finatic.placeOrder({ connectionId: 'example-id' });
|
|
9853
9215
|
*
|
|
9854
9216
|
* // Handle response with warnings
|
|
9855
9217
|
* if (result.success) {
|
|
@@ -9884,7 +9246,7 @@ declare class FinaticConnect$1 extends EventEmitter {
|
|
|
9884
9246
|
* ```python
|
|
9885
9247
|
* # Full example with optional parameters
|
|
9886
9248
|
* result = await finatic.place_order(
|
|
9887
|
-
* connection_id='
|
|
9249
|
+
* connection_id='example'
|
|
9888
9250
|
* )
|
|
9889
9251
|
*
|
|
9890
9252
|
* # Handle response with warnings
|
|
@@ -9896,29 +9258,20 @@ declare class FinaticConnect$1 extends EventEmitter {
|
|
|
9896
9258
|
* print('Error:', result.error['message'], result.error['code'])
|
|
9897
9259
|
* ```
|
|
9898
9260
|
*/
|
|
9899
|
-
placeOrder(params
|
|
9261
|
+
placeOrder(params: PlaceOrderParams): Promise<Awaited<ReturnType<typeof this$1.brokers.placeOrder>>>;
|
|
9900
9262
|
/**
|
|
9901
9263
|
* Cancel Order
|
|
9902
9264
|
*
|
|
9903
9265
|
* Cancel an existing order.
|
|
9904
9266
|
*
|
|
9905
|
-
*
|
|
9906
|
-
*
|
|
9907
|
-
*
|
|
9908
|
-
* The order_id is used to identify the order and automatically resolve the
|
|
9909
|
-
* broker connection from the orders table.
|
|
9910
|
-
*
|
|
9911
|
-
* Convenience method that delegates to brokers wrapper.
|
|
9912
|
-
*
|
|
9913
|
-
* @param params - Optional parameters object. Only include the fields you want to use.
|
|
9914
|
-
* Example: cancelOrder({ accountId: "123", limit: 10, offset: 0 })
|
|
9915
|
-
* @returns FinaticResponse with success, error, and warning fields
|
|
9267
|
+
* Request must include broker and account_number in the body; order_id is in the path.
|
|
9268
|
+
* Connection is resolved by broker and account_number.
|
|
9916
9269
|
* @methodId cancel_order_api_beta_brokers_orders__order_id__delete
|
|
9917
9270
|
* @category brokers
|
|
9918
9271
|
* @example
|
|
9919
9272
|
* ```typescript-client
|
|
9920
9273
|
* // Minimal example with required parameters only
|
|
9921
|
-
* const result = await finatic.cancelOrder({ orderId: '
|
|
9274
|
+
* const result = await finatic.cancelOrder({ orderId: 'example-id' });
|
|
9922
9275
|
*
|
|
9923
9276
|
* // Access the response data
|
|
9924
9277
|
* if (result.success) {
|
|
@@ -9930,7 +9283,7 @@ declare class FinaticConnect$1 extends EventEmitter {
|
|
|
9930
9283
|
* @example
|
|
9931
9284
|
* ```typescript-server
|
|
9932
9285
|
* // Minimal example with required parameters only
|
|
9933
|
-
* const result = await finatic.cancelOrder({ orderId: '
|
|
9286
|
+
* const result = await finatic.cancelOrder({ orderId: 'example-id' });
|
|
9934
9287
|
*
|
|
9935
9288
|
* // Access the response data
|
|
9936
9289
|
* if (result.success) {
|
|
@@ -9943,7 +9296,7 @@ declare class FinaticConnect$1 extends EventEmitter {
|
|
|
9943
9296
|
* ```python
|
|
9944
9297
|
* # Minimal example with required parameters only
|
|
9945
9298
|
* result = await finatic.cancel_order(
|
|
9946
|
-
* order_id='
|
|
9299
|
+
* order_id='example'
|
|
9947
9300
|
* )
|
|
9948
9301
|
*
|
|
9949
9302
|
* # Access the response data
|
|
@@ -9959,20 +9312,14 @@ declare class FinaticConnect$1 extends EventEmitter {
|
|
|
9959
9312
|
*
|
|
9960
9313
|
* Modify an existing order.
|
|
9961
9314
|
*
|
|
9962
|
-
*
|
|
9963
|
-
*
|
|
9964
|
-
*
|
|
9965
|
-
* Convenience method that delegates to brokers wrapper.
|
|
9966
|
-
*
|
|
9967
|
-
* @param params - Optional parameters object. Only include the fields you want to use.
|
|
9968
|
-
* Example: modifyOrder({ accountId: "123", limit: 10, offset: 0 })
|
|
9969
|
-
* @returns FinaticResponse with success, error, and warning fields
|
|
9315
|
+
* Request must include broker and account_number in the body; order_id is in the path.
|
|
9316
|
+
* Connection is resolved by broker and account_number. The order object is a partial update.
|
|
9970
9317
|
* @methodId modify_order_api_beta_brokers_orders__order_id__patch
|
|
9971
9318
|
* @category brokers
|
|
9972
9319
|
* @example
|
|
9973
9320
|
* ```typescript-client
|
|
9974
9321
|
* // Minimal example with required parameters only
|
|
9975
|
-
* const result = await finatic.modifyOrder({ orderId: '
|
|
9322
|
+
* const result = await finatic.modifyOrder({ orderId: 'example-id' });
|
|
9976
9323
|
*
|
|
9977
9324
|
* // Access the response data
|
|
9978
9325
|
* if (result.success) {
|
|
@@ -9984,7 +9331,7 @@ declare class FinaticConnect$1 extends EventEmitter {
|
|
|
9984
9331
|
* @example
|
|
9985
9332
|
* ```typescript-client
|
|
9986
9333
|
* // Full example with optional parameters
|
|
9987
|
-
* const result = await finatic.modifyOrder({ orderId: '
|
|
9334
|
+
* const result = await finatic.modifyOrder({ orderId: 'example-id', connectionId: 'example-id' });
|
|
9988
9335
|
*
|
|
9989
9336
|
* // Handle response with warnings
|
|
9990
9337
|
* if (result.success) {
|
|
@@ -9999,7 +9346,7 @@ declare class FinaticConnect$1 extends EventEmitter {
|
|
|
9999
9346
|
* @example
|
|
10000
9347
|
* ```typescript-server
|
|
10001
9348
|
* // Minimal example with required parameters only
|
|
10002
|
-
* const result = await finatic.modifyOrder({ orderId: '
|
|
9349
|
+
* const result = await finatic.modifyOrder({ orderId: 'example-id' });
|
|
10003
9350
|
*
|
|
10004
9351
|
* // Access the response data
|
|
10005
9352
|
* if (result.success) {
|
|
@@ -10012,7 +9359,7 @@ declare class FinaticConnect$1 extends EventEmitter {
|
|
|
10012
9359
|
* ```python
|
|
10013
9360
|
* # Minimal example with required parameters only
|
|
10014
9361
|
* result = await finatic.modify_order(
|
|
10015
|
-
* order_id='
|
|
9362
|
+
* order_id='example'
|
|
10016
9363
|
* )
|
|
10017
9364
|
*
|
|
10018
9365
|
* # Access the response data
|
|
@@ -10025,9 +9372,8 @@ declare class FinaticConnect$1 extends EventEmitter {
|
|
|
10025
9372
|
* ```python
|
|
10026
9373
|
* # Full example with optional parameters
|
|
10027
9374
|
* result = await finatic.modify_order(
|
|
10028
|
-
* order_id='
|
|
10029
|
-
|
|
10030
|
-
connection_id='00000000-0000-0000-0000-000000000000'
|
|
9375
|
+
* order_id='example',
|
|
9376
|
+
connection_id='example'
|
|
10031
9377
|
* )
|
|
10032
9378
|
*
|
|
10033
9379
|
* # Handle response with warnings
|
|
@@ -10055,7 +9401,7 @@ declare class FinaticConnect$1 extends EventEmitter {
|
|
|
10055
9401
|
* @example
|
|
10056
9402
|
* ```typescript-server
|
|
10057
9403
|
* // Get all items with optional filters
|
|
10058
|
-
* const result = await finatic.getAllBalances({ brokerId: '
|
|
9404
|
+
* const result = await finatic.getAllBalances({ brokerId: 'example-id', connectionId: 'example-id', accountId: 'example-id' });
|
|
10059
9405
|
*
|
|
10060
9406
|
* // Access the response data
|
|
10061
9407
|
* if (result.success) {
|
|
@@ -10070,7 +9416,7 @@ declare class FinaticConnect$1 extends EventEmitter {
|
|
|
10070
9416
|
* @example
|
|
10071
9417
|
* ```typescript-client
|
|
10072
9418
|
* // Get all items with optional filters
|
|
10073
|
-
* const result = await finatic.getAllBalances({ brokerId: '
|
|
9419
|
+
* const result = await finatic.getAllBalances({ brokerId: 'example-id', connectionId: 'example-id', accountId: 'example-id' });
|
|
10074
9420
|
*
|
|
10075
9421
|
* // Access the response data
|
|
10076
9422
|
* if (result.success) {
|
|
@@ -10086,9 +9432,9 @@ declare class FinaticConnect$1 extends EventEmitter {
|
|
|
10086
9432
|
* ```python
|
|
10087
9433
|
* # Get all items with optional filters
|
|
10088
9434
|
* result = await finatic.get_all_balances(
|
|
10089
|
-
* broker_id='
|
|
10090
|
-
connection_id='
|
|
10091
|
-
account_id='
|
|
9435
|
+
* broker_id='example',
|
|
9436
|
+
connection_id='example',
|
|
9437
|
+
account_id='example'
|
|
10092
9438
|
* )
|
|
10093
9439
|
*
|
|
10094
9440
|
* # Access the response data
|
|
@@ -10116,7 +9462,7 @@ declare class FinaticConnect$1 extends EventEmitter {
|
|
|
10116
9462
|
* @example
|
|
10117
9463
|
* ```typescript-server
|
|
10118
9464
|
* // Get all items with optional filters
|
|
10119
|
-
* const result = await finatic.getAllAccounts({ brokerId: '
|
|
9465
|
+
* const result = await finatic.getAllAccounts({ brokerId: 'example-id', connectionId: 'example-id', accountType: 'margin' });
|
|
10120
9466
|
*
|
|
10121
9467
|
* // Access the response data
|
|
10122
9468
|
* if (result.success) {
|
|
@@ -10131,7 +9477,7 @@ declare class FinaticConnect$1 extends EventEmitter {
|
|
|
10131
9477
|
* @example
|
|
10132
9478
|
* ```typescript-client
|
|
10133
9479
|
* // Get all items with optional filters
|
|
10134
|
-
* const result = await finatic.getAllAccounts({ brokerId: '
|
|
9480
|
+
* const result = await finatic.getAllAccounts({ brokerId: 'example-id', connectionId: 'example-id', accountType: 'margin' });
|
|
10135
9481
|
*
|
|
10136
9482
|
* // Access the response data
|
|
10137
9483
|
* if (result.success) {
|
|
@@ -10147,8 +9493,8 @@ declare class FinaticConnect$1 extends EventEmitter {
|
|
|
10147
9493
|
* ```python
|
|
10148
9494
|
* # Get all items with optional filters
|
|
10149
9495
|
* result = await finatic.get_all_accounts(
|
|
10150
|
-
* broker_id='
|
|
10151
|
-
connection_id='
|
|
9496
|
+
* broker_id='example',
|
|
9497
|
+
connection_id='example',
|
|
10152
9498
|
account_type='margin'
|
|
10153
9499
|
* )
|
|
10154
9500
|
*
|
|
@@ -10177,7 +9523,7 @@ declare class FinaticConnect$1 extends EventEmitter {
|
|
|
10177
9523
|
* @example
|
|
10178
9524
|
* ```typescript-server
|
|
10179
9525
|
* // Get all items with optional filters
|
|
10180
|
-
* const result = await finatic.getAllOrders({ brokerId: '
|
|
9526
|
+
* const result = await finatic.getAllOrders({ brokerId: 'example-id', connectionId: 'example-id', accountId: 'example-id' });
|
|
10181
9527
|
*
|
|
10182
9528
|
* // Access the response data
|
|
10183
9529
|
* if (result.success) {
|
|
@@ -10192,7 +9538,7 @@ declare class FinaticConnect$1 extends EventEmitter {
|
|
|
10192
9538
|
* @example
|
|
10193
9539
|
* ```typescript-client
|
|
10194
9540
|
* // Get all items with optional filters
|
|
10195
|
-
* const result = await finatic.getAllOrders({ brokerId: '
|
|
9541
|
+
* const result = await finatic.getAllOrders({ brokerId: 'example-id', connectionId: 'example-id', accountId: 'example-id' });
|
|
10196
9542
|
*
|
|
10197
9543
|
* // Access the response data
|
|
10198
9544
|
* if (result.success) {
|
|
@@ -10208,9 +9554,9 @@ declare class FinaticConnect$1 extends EventEmitter {
|
|
|
10208
9554
|
* ```python
|
|
10209
9555
|
* # Get all items with optional filters
|
|
10210
9556
|
* result = await finatic.get_all_orders(
|
|
10211
|
-
* broker_id='
|
|
10212
|
-
connection_id='
|
|
10213
|
-
account_id='
|
|
9557
|
+
* broker_id='example',
|
|
9558
|
+
connection_id='example',
|
|
9559
|
+
account_id='example'
|
|
10214
9560
|
* )
|
|
10215
9561
|
*
|
|
10216
9562
|
* # Access the response data
|
|
@@ -10238,7 +9584,7 @@ declare class FinaticConnect$1 extends EventEmitter {
|
|
|
10238
9584
|
* @example
|
|
10239
9585
|
* ```typescript-server
|
|
10240
9586
|
* // Get all items with optional filters
|
|
10241
|
-
* const result = await finatic.getAllPositions({ brokerId: '
|
|
9587
|
+
* const result = await finatic.getAllPositions({ brokerId: 'example-id', connectionId: 'example-id', accountId: 'example-id' });
|
|
10242
9588
|
*
|
|
10243
9589
|
* // Access the response data
|
|
10244
9590
|
* if (result.success) {
|
|
@@ -10253,7 +9599,7 @@ declare class FinaticConnect$1 extends EventEmitter {
|
|
|
10253
9599
|
* @example
|
|
10254
9600
|
* ```typescript-client
|
|
10255
9601
|
* // Get all items with optional filters
|
|
10256
|
-
* const result = await finatic.getAllPositions({ brokerId: '
|
|
9602
|
+
* const result = await finatic.getAllPositions({ brokerId: 'example-id', connectionId: 'example-id', accountId: 'example-id' });
|
|
10257
9603
|
*
|
|
10258
9604
|
* // Access the response data
|
|
10259
9605
|
* if (result.success) {
|
|
@@ -10269,9 +9615,9 @@ declare class FinaticConnect$1 extends EventEmitter {
|
|
|
10269
9615
|
* ```python
|
|
10270
9616
|
* # Get all items with optional filters
|
|
10271
9617
|
* result = await finatic.get_all_positions(
|
|
10272
|
-
* broker_id='
|
|
10273
|
-
connection_id='
|
|
10274
|
-
account_id='
|
|
9618
|
+
* broker_id='example',
|
|
9619
|
+
connection_id='example',
|
|
9620
|
+
account_id='example'
|
|
10275
9621
|
* )
|
|
10276
9622
|
*
|
|
10277
9623
|
* # Access the response data
|
|
@@ -10299,7 +9645,7 @@ declare class FinaticConnect$1 extends EventEmitter {
|
|
|
10299
9645
|
* @example
|
|
10300
9646
|
* ```typescript-server
|
|
10301
9647
|
* // Get all items with optional filters
|
|
10302
|
-
* const result = await finatic.getAllTransactions({ brokerId: '
|
|
9648
|
+
* const result = await finatic.getAllTransactions({ brokerId: 'example-id', connectionId: 'example-id', accountId: 'example-id' });
|
|
10303
9649
|
*
|
|
10304
9650
|
* // Access the response data
|
|
10305
9651
|
* if (result.success) {
|
|
@@ -10314,7 +9660,7 @@ declare class FinaticConnect$1 extends EventEmitter {
|
|
|
10314
9660
|
* @example
|
|
10315
9661
|
* ```typescript-client
|
|
10316
9662
|
* // Get all items with optional filters
|
|
10317
|
-
* const result = await finatic.getAllTransactions({ brokerId: '
|
|
9663
|
+
* const result = await finatic.getAllTransactions({ brokerId: 'example-id', connectionId: 'example-id', accountId: 'example-id' });
|
|
10318
9664
|
*
|
|
10319
9665
|
* // Access the response data
|
|
10320
9666
|
* if (result.success) {
|
|
@@ -10330,9 +9676,9 @@ declare class FinaticConnect$1 extends EventEmitter {
|
|
|
10330
9676
|
* ```python
|
|
10331
9677
|
* # Get all items with optional filters
|
|
10332
9678
|
* result = await finatic.get_all_transactions(
|
|
10333
|
-
* broker_id='
|
|
10334
|
-
connection_id='
|
|
10335
|
-
account_id='
|
|
9679
|
+
* broker_id='example',
|
|
9680
|
+
connection_id='example',
|
|
9681
|
+
account_id='example'
|
|
10336
9682
|
* )
|
|
10337
9683
|
*
|
|
10338
9684
|
* # Access the response data
|
|
@@ -10360,7 +9706,7 @@ declare class FinaticConnect$1 extends EventEmitter {
|
|
|
10360
9706
|
* @example
|
|
10361
9707
|
* ```typescript-server
|
|
10362
9708
|
* // Get all items with optional filters
|
|
10363
|
-
* const result = await finatic.getAllOrderFills({ connectionId: '
|
|
9709
|
+
* const result = await finatic.getAllOrderFills({ connectionId: 'example-id', includeMetadata: true });
|
|
10364
9710
|
*
|
|
10365
9711
|
* // Access the response data
|
|
10366
9712
|
* if (result.success) {
|
|
@@ -10375,7 +9721,7 @@ declare class FinaticConnect$1 extends EventEmitter {
|
|
|
10375
9721
|
* @example
|
|
10376
9722
|
* ```typescript-client
|
|
10377
9723
|
* // Get all items with optional filters
|
|
10378
|
-
* const result = await finatic.getAllOrderFills({ connectionId: '
|
|
9724
|
+
* const result = await finatic.getAllOrderFills({ connectionId: 'example-id', includeMetadata: true });
|
|
10379
9725
|
*
|
|
10380
9726
|
* // Access the response data
|
|
10381
9727
|
* if (result.success) {
|
|
@@ -10391,8 +9737,8 @@ declare class FinaticConnect$1 extends EventEmitter {
|
|
|
10391
9737
|
* ```python
|
|
10392
9738
|
* # Get all items with optional filters
|
|
10393
9739
|
* result = await finatic.get_all_order_fills(
|
|
10394
|
-
* connection_id='
|
|
10395
|
-
include_metadata=
|
|
9740
|
+
* connection_id='example',
|
|
9741
|
+
include_metadata='example'
|
|
10396
9742
|
* )
|
|
10397
9743
|
*
|
|
10398
9744
|
* # Access the response data
|
|
@@ -10420,7 +9766,7 @@ declare class FinaticConnect$1 extends EventEmitter {
|
|
|
10420
9766
|
* @example
|
|
10421
9767
|
* ```typescript-server
|
|
10422
9768
|
* // Get all items with optional filters
|
|
10423
|
-
* const result = await finatic.getAllOrderEvents({ connectionId: '
|
|
9769
|
+
* const result = await finatic.getAllOrderEvents({ connectionId: 'example-id', includeMetadata: true });
|
|
10424
9770
|
*
|
|
10425
9771
|
* // Access the response data
|
|
10426
9772
|
* if (result.success) {
|
|
@@ -10435,7 +9781,7 @@ declare class FinaticConnect$1 extends EventEmitter {
|
|
|
10435
9781
|
* @example
|
|
10436
9782
|
* ```typescript-client
|
|
10437
9783
|
* // Get all items with optional filters
|
|
10438
|
-
* const result = await finatic.getAllOrderEvents({ connectionId: '
|
|
9784
|
+
* const result = await finatic.getAllOrderEvents({ connectionId: 'example-id', includeMetadata: true });
|
|
10439
9785
|
*
|
|
10440
9786
|
* // Access the response data
|
|
10441
9787
|
* if (result.success) {
|
|
@@ -10451,8 +9797,8 @@ declare class FinaticConnect$1 extends EventEmitter {
|
|
|
10451
9797
|
* ```python
|
|
10452
9798
|
* # Get all items with optional filters
|
|
10453
9799
|
* result = await finatic.get_all_order_events(
|
|
10454
|
-
* connection_id='
|
|
10455
|
-
include_metadata=
|
|
9800
|
+
* connection_id='example',
|
|
9801
|
+
include_metadata='example'
|
|
10456
9802
|
* )
|
|
10457
9803
|
*
|
|
10458
9804
|
* # Access the response data
|
|
@@ -10480,7 +9826,7 @@ declare class FinaticConnect$1 extends EventEmitter {
|
|
|
10480
9826
|
* @example
|
|
10481
9827
|
* ```typescript-server
|
|
10482
9828
|
* // Get all items with optional filters
|
|
10483
|
-
* const result = await finatic.getAllOrderGroups({ brokerId: '
|
|
9829
|
+
* const result = await finatic.getAllOrderGroups({ brokerId: 'example-id', connectionId: 'example-id', createdAfter: 'example' });
|
|
10484
9830
|
*
|
|
10485
9831
|
* // Access the response data
|
|
10486
9832
|
* if (result.success) {
|
|
@@ -10495,7 +9841,7 @@ declare class FinaticConnect$1 extends EventEmitter {
|
|
|
10495
9841
|
* @example
|
|
10496
9842
|
* ```typescript-client
|
|
10497
9843
|
* // Get all items with optional filters
|
|
10498
|
-
* const result = await finatic.getAllOrderGroups({ brokerId: '
|
|
9844
|
+
* const result = await finatic.getAllOrderGroups({ brokerId: 'example-id', connectionId: 'example-id', createdAfter: 'example' });
|
|
10499
9845
|
*
|
|
10500
9846
|
* // Access the response data
|
|
10501
9847
|
* if (result.success) {
|
|
@@ -10511,9 +9857,9 @@ declare class FinaticConnect$1 extends EventEmitter {
|
|
|
10511
9857
|
* ```python
|
|
10512
9858
|
* # Get all items with optional filters
|
|
10513
9859
|
* result = await finatic.get_all_order_groups(
|
|
10514
|
-
* broker_id='
|
|
10515
|
-
connection_id='
|
|
10516
|
-
created_after='
|
|
9860
|
+
* broker_id='example',
|
|
9861
|
+
connection_id='example',
|
|
9862
|
+
created_after='example'
|
|
10517
9863
|
* )
|
|
10518
9864
|
*
|
|
10519
9865
|
* # Access the response data
|
|
@@ -10541,7 +9887,7 @@ declare class FinaticConnect$1 extends EventEmitter {
|
|
|
10541
9887
|
* @example
|
|
10542
9888
|
* ```typescript-server
|
|
10543
9889
|
* // Get all items with optional filters
|
|
10544
|
-
* const result = await finatic.getAllPositionLots({ brokerId: '
|
|
9890
|
+
* const result = await finatic.getAllPositionLots({ brokerId: 'example-id', connectionId: 'example-id', accountId: 'example-id' });
|
|
10545
9891
|
*
|
|
10546
9892
|
* // Access the response data
|
|
10547
9893
|
* if (result.success) {
|
|
@@ -10556,7 +9902,7 @@ declare class FinaticConnect$1 extends EventEmitter {
|
|
|
10556
9902
|
* @example
|
|
10557
9903
|
* ```typescript-client
|
|
10558
9904
|
* // Get all items with optional filters
|
|
10559
|
-
* const result = await finatic.getAllPositionLots({ brokerId: '
|
|
9905
|
+
* const result = await finatic.getAllPositionLots({ brokerId: 'example-id', connectionId: 'example-id', accountId: 'example-id' });
|
|
10560
9906
|
*
|
|
10561
9907
|
* // Access the response data
|
|
10562
9908
|
* if (result.success) {
|
|
@@ -10572,9 +9918,9 @@ declare class FinaticConnect$1 extends EventEmitter {
|
|
|
10572
9918
|
* ```python
|
|
10573
9919
|
* # Get all items with optional filters
|
|
10574
9920
|
* result = await finatic.get_all_position_lots(
|
|
10575
|
-
* broker_id='
|
|
10576
|
-
connection_id='
|
|
10577
|
-
account_id='
|
|
9921
|
+
* broker_id='example',
|
|
9922
|
+
connection_id='example',
|
|
9923
|
+
account_id='example'
|
|
10578
9924
|
* )
|
|
10579
9925
|
*
|
|
10580
9926
|
* # Access the response data
|
|
@@ -10602,7 +9948,7 @@ declare class FinaticConnect$1 extends EventEmitter {
|
|
|
10602
9948
|
* @example
|
|
10603
9949
|
* ```typescript-server
|
|
10604
9950
|
* // Get all items with optional filters
|
|
10605
|
-
* const result = await finatic.getAllPositionLotFills({ connectionId: '
|
|
9951
|
+
* const result = await finatic.getAllPositionLotFills({ connectionId: 'example-id' });
|
|
10606
9952
|
*
|
|
10607
9953
|
* // Access the response data
|
|
10608
9954
|
* if (result.success) {
|
|
@@ -10617,7 +9963,7 @@ declare class FinaticConnect$1 extends EventEmitter {
|
|
|
10617
9963
|
* @example
|
|
10618
9964
|
* ```typescript-client
|
|
10619
9965
|
* // Get all items with optional filters
|
|
10620
|
-
* const result = await finatic.getAllPositionLotFills({ connectionId: '
|
|
9966
|
+
* const result = await finatic.getAllPositionLotFills({ connectionId: 'example-id' });
|
|
10621
9967
|
*
|
|
10622
9968
|
* // Access the response data
|
|
10623
9969
|
* if (result.success) {
|
|
@@ -10633,7 +9979,7 @@ declare class FinaticConnect$1 extends EventEmitter {
|
|
|
10633
9979
|
* ```python
|
|
10634
9980
|
* # Get all items with optional filters
|
|
10635
9981
|
* result = await finatic.get_all_position_lot_fills(
|
|
10636
|
-
* connection_id='
|
|
9982
|
+
* connection_id='example'
|
|
10637
9983
|
* )
|
|
10638
9984
|
*
|
|
10639
9985
|
* # Access the response data
|
|
@@ -10667,5 +10013,5 @@ declare class FinaticConnect extends FinaticConnect$1 {
|
|
|
10667
10013
|
static readonly __CUSTOM_CLASS__ = true;
|
|
10668
10014
|
}
|
|
10669
10015
|
|
|
10670
|
-
export { ApiError, BrokerDataAccountTypeEnum, BrokerDataAssetTypeEnum, BrokerDataOptionTypeEnum, BrokerDataOrderSideEnum, BrokerDataPositionStatusEnum, BrokersWrapper, CompanyWrapper, Configuration, DayTIFTimeInForceEnum, EventEmitter, FDXAssetType, FDXOrderClass, FDXOrderEventType, FDXOrderGroupType, FDXOrderSide, FDXOrderStatus, FDXOrderType, FDXPositionSide, FDXPositionStatus, FDXSecurityIdType, FDXTimeInForce, FOKTIFTimeInForceEnum, FinaticBrokerFactoryBrokersRobinhoodExecutorsConsumerRobinhoodOrderModifyQueryParamsRobinhoodOptionSpreadLegEffectEnum, FinaticBrokerFactoryBrokersRobinhoodExecutorsConsumerRobinhoodOrderPlaceQueryParamsRobinhoodOptionSpreadLegPositionEffectEnum, FinaticConnect, FinaticError, GTCTIFTimeInForceEnum, GTDTIFTimeInForceEnum, IOCTIFTimeInForceEnum, NinjaTraderLimitOrderModifyQueryParamsAssetTypeEnum, NinjaTraderLimitOrderModifyQueryParamsOrderTypeEnum, NinjaTraderLimitOrderPlaceQueryParamsActionEnum, NinjaTraderLimitOrderPlaceQueryParamsAssetTypeEnum, NinjaTraderLimitOrderPlaceQueryParamsOrderTypeEnum, NinjaTraderMarketOrderModifyQueryParamsAssetTypeEnum, NinjaTraderMarketOrderModifyQueryParamsOrderTypeEnum, NinjaTraderMarketOrderPlaceQueryParamsActionEnum, NinjaTraderMarketOrderPlaceQueryParamsAssetTypeEnum, NinjaTraderMarketOrderPlaceQueryParamsOrderTypeEnum, NinjaTraderOrderModifyRequestBrokerEnum, NinjaTraderOrderPlaceRequestBrokerEnum, NinjaTraderStopOrderModifyQueryParamsAssetTypeEnum, NinjaTraderStopOrderModifyQueryParamsOrderTypeEnum, NinjaTraderStopOrderPlaceQueryParamsActionEnum, NinjaTraderStopOrderPlaceQueryParamsAssetTypeEnum, NinjaTraderStopOrderPlaceQueryParamsOrderTypeEnum, NinjaTraderTrailingStopOrderModifyQueryParamsAssetTypeEnum, NinjaTraderTrailingStopOrderModifyQueryParamsOrderTypeEnum, NinjaTraderTrailingStopOrderPlaceQueryParamsActionEnum, NinjaTraderTrailingStopOrderPlaceQueryParamsAssetTypeEnum, NinjaTraderTrailingStopOrderPlaceQueryParamsOrderTypeEnum, Order1ActionEnum, Order1AmountInEnum, Order1AssetTypeEnum, Order1CreditOrDebitEnum, Order1DirectionEnum, Order1MarketHoursEnum, Order1OptionTypeEnum, Order1OrderTypeEnum, Order1PositionEffectEnum, PaginatedData, RobinhoodCryptoLimitOrderPlaceQueryParamsActionEnum, RobinhoodCryptoLimitOrderPlaceQueryParamsAmountInEnum, RobinhoodCryptoLimitOrderPlaceQueryParamsAssetTypeEnum, RobinhoodCryptoLimitOrderPlaceQueryParamsOrderTypeEnum, RobinhoodCryptoMarketOrderPlaceQueryParamsActionEnum, RobinhoodCryptoMarketOrderPlaceQueryParamsAmountInEnum, RobinhoodCryptoMarketOrderPlaceQueryParamsAssetTypeEnum, RobinhoodCryptoMarketOrderPlaceQueryParamsOrderTypeEnum, RobinhoodCryptoStopLimitOrderPlaceQueryParamsActionEnum, RobinhoodCryptoStopLimitOrderPlaceQueryParamsAmountInEnum, RobinhoodCryptoStopLimitOrderPlaceQueryParamsAssetTypeEnum, RobinhoodCryptoStopLimitOrderPlaceQueryParamsOrderTypeEnum, RobinhoodCryptoStopOrderPlaceQueryParamsActionEnum, RobinhoodCryptoStopOrderPlaceQueryParamsAmountInEnum, RobinhoodCryptoStopOrderPlaceQueryParamsAssetTypeEnum, RobinhoodCryptoStopOrderPlaceQueryParamsOrderTypeEnum, RobinhoodCryptoTrailingStopOrderPlaceQueryParamsActionEnum, RobinhoodCryptoTrailingStopOrderPlaceQueryParamsAmountInEnum, RobinhoodCryptoTrailingStopOrderPlaceQueryParamsAssetTypeEnum, RobinhoodCryptoTrailingStopOrderPlaceQueryParamsOrderTypeEnum, RobinhoodEquityLimitOrderPlaceQueryParamsActionEnum, RobinhoodEquityLimitOrderPlaceQueryParamsAssetTypeEnum, RobinhoodEquityLimitOrderPlaceQueryParamsMarketHoursEnum, RobinhoodEquityLimitOrderPlaceQueryParamsOrderTypeEnum, RobinhoodEquityMarketOrderPlaceQueryParamsActionEnum, RobinhoodEquityMarketOrderPlaceQueryParamsAssetTypeEnum, RobinhoodEquityMarketOrderPlaceQueryParamsMarketHoursEnum, RobinhoodEquityMarketOrderPlaceQueryParamsOrderTypeEnum, RobinhoodEquityStopLimitOrderPlaceQueryParamsActionEnum, RobinhoodEquityStopLimitOrderPlaceQueryParamsAssetTypeEnum, RobinhoodEquityStopLimitOrderPlaceQueryParamsMarketHoursEnum, RobinhoodEquityStopLimitOrderPlaceQueryParamsOrderTypeEnum, RobinhoodEquityStopOrderPlaceQueryParamsActionEnum, RobinhoodEquityStopOrderPlaceQueryParamsAssetTypeEnum, RobinhoodEquityStopOrderPlaceQueryParamsMarketHoursEnum, RobinhoodEquityStopOrderPlaceQueryParamsOrderTypeEnum, RobinhoodEquityTrailingStopOrderPlaceQueryParamsActionEnum, RobinhoodEquityTrailingStopOrderPlaceQueryParamsAssetTypeEnum, RobinhoodEquityTrailingStopOrderPlaceQueryParamsMarketHoursEnum, RobinhoodEquityTrailingStopOrderPlaceQueryParamsOrderTypeEnum, RobinhoodLimitOrderModifyQueryParamsAmountInEnum, RobinhoodLimitOrderModifyQueryParamsAssetTypeEnum, RobinhoodLimitOrderModifyQueryParamsCreditOrDebitEnum, RobinhoodLimitOrderModifyQueryParamsDirectionEnum, RobinhoodLimitOrderModifyQueryParamsMarketHoursEnum, RobinhoodLimitOrderModifyQueryParamsOptionTypeEnum, RobinhoodLimitOrderModifyQueryParamsOrderTypeEnum, RobinhoodLimitOrderModifyQueryParamsPositionEffectEnum, RobinhoodMarketOrderModifyQueryParamsAmountInEnum, RobinhoodMarketOrderModifyQueryParamsAssetTypeEnum, RobinhoodMarketOrderModifyQueryParamsCreditOrDebitEnum, RobinhoodMarketOrderModifyQueryParamsDirectionEnum, RobinhoodMarketOrderModifyQueryParamsMarketHoursEnum, RobinhoodMarketOrderModifyQueryParamsOptionTypeEnum, RobinhoodMarketOrderModifyQueryParamsOrderTypeEnum, RobinhoodMarketOrderModifyQueryParamsPositionEffectEnum, RobinhoodOptionLimitOrderPlaceQueryParamsActionEnum, RobinhoodOptionLimitOrderPlaceQueryParamsAssetTypeEnum, RobinhoodOptionLimitOrderPlaceQueryParamsCreditOrDebitEnum, RobinhoodOptionLimitOrderPlaceQueryParamsDirectionEnum, RobinhoodOptionLimitOrderPlaceQueryParamsOptionTypeEnum, RobinhoodOptionLimitOrderPlaceQueryParamsOrderTypeEnum, RobinhoodOptionLimitOrderPlaceQueryParamsPositionEffectEnum, RobinhoodOptionMarketOrderPlaceQueryParamsActionEnum, RobinhoodOptionMarketOrderPlaceQueryParamsAssetTypeEnum, RobinhoodOptionMarketOrderPlaceQueryParamsCreditOrDebitEnum, RobinhoodOptionMarketOrderPlaceQueryParamsDirectionEnum, RobinhoodOptionMarketOrderPlaceQueryParamsOptionTypeEnum, RobinhoodOptionMarketOrderPlaceQueryParamsOrderTypeEnum, RobinhoodOptionMarketOrderPlaceQueryParamsPositionEffectEnum, RobinhoodOptionStopLimitOrderPlaceQueryParamsActionEnum, RobinhoodOptionStopLimitOrderPlaceQueryParamsAssetTypeEnum, RobinhoodOptionStopLimitOrderPlaceQueryParamsCreditOrDebitEnum, RobinhoodOptionStopLimitOrderPlaceQueryParamsDirectionEnum, RobinhoodOptionStopLimitOrderPlaceQueryParamsOptionTypeEnum, RobinhoodOptionStopLimitOrderPlaceQueryParamsOrderTypeEnum, RobinhoodOptionStopLimitOrderPlaceQueryParamsPositionEffectEnum, RobinhoodOptionStopOrderPlaceQueryParamsActionEnum, RobinhoodOptionStopOrderPlaceQueryParamsAssetTypeEnum, RobinhoodOptionStopOrderPlaceQueryParamsCreditOrDebitEnum, RobinhoodOptionStopOrderPlaceQueryParamsDirectionEnum, RobinhoodOptionStopOrderPlaceQueryParamsOptionTypeEnum, RobinhoodOptionStopOrderPlaceQueryParamsOrderTypeEnum, RobinhoodOptionStopOrderPlaceQueryParamsPositionEffectEnum, RobinhoodOptionTrailingStopOrderPlaceQueryParamsActionEnum, RobinhoodOptionTrailingStopOrderPlaceQueryParamsAssetTypeEnum, RobinhoodOptionTrailingStopOrderPlaceQueryParamsCreditOrDebitEnum, RobinhoodOptionTrailingStopOrderPlaceQueryParamsDirectionEnum, RobinhoodOptionTrailingStopOrderPlaceQueryParamsOptionTypeEnum, RobinhoodOptionTrailingStopOrderPlaceQueryParamsOrderTypeEnum, RobinhoodOptionTrailingStopOrderPlaceQueryParamsPositionEffectEnum, RobinhoodOrderModifyRequestBrokerEnum, RobinhoodOrderPlaceRequestBrokerEnum, RobinhoodStopOrderModifyQueryParamsAmountInEnum, RobinhoodStopOrderModifyQueryParamsAssetTypeEnum, RobinhoodStopOrderModifyQueryParamsCreditOrDebitEnum, RobinhoodStopOrderModifyQueryParamsDirectionEnum, RobinhoodStopOrderModifyQueryParamsMarketHoursEnum, RobinhoodStopOrderModifyQueryParamsOptionTypeEnum, RobinhoodStopOrderModifyQueryParamsOrderTypeEnum, RobinhoodStopOrderModifyQueryParamsPositionEffectEnum, RobinhoodTrailingStopOrderModifyQueryParamsAmountInEnum, RobinhoodTrailingStopOrderModifyQueryParamsAssetTypeEnum, RobinhoodTrailingStopOrderModifyQueryParamsCreditOrDebitEnum, RobinhoodTrailingStopOrderModifyQueryParamsDirectionEnum, RobinhoodTrailingStopOrderModifyQueryParamsMarketHoursEnum, RobinhoodTrailingStopOrderModifyQueryParamsOptionTypeEnum, RobinhoodTrailingStopOrderModifyQueryParamsOrderTypeEnum, RobinhoodTrailingStopOrderModifyQueryParamsPositionEffectEnum, SessionStatus, SessionWrapper, TastyTradeLimitOrderModifyQueryParamsAssetTypeEnum, TastyTradeLimitOrderModifyQueryParamsOrderTypeEnum, TastyTradeLimitOrderPlaceQueryParamsActionEnum, TastyTradeLimitOrderPlaceQueryParamsAssetTypeEnum, TastyTradeLimitOrderPlaceQueryParamsOrderTypeEnum, TastyTradeLimitOrderPlaceQueryParamsPriceEffectEnum, TastyTradeLimitOrderPlaceQueryParamsValueEffectEnum, TastyTradeMarketOrderModifyQueryParamsAssetTypeEnum, TastyTradeMarketOrderModifyQueryParamsOrderTypeEnum, TastyTradeMarketOrderPlaceQueryParamsActionEnum, TastyTradeMarketOrderPlaceQueryParamsAssetTypeEnum, TastyTradeMarketOrderPlaceQueryParamsOrderTypeEnum, TastyTradeMarketOrderPlaceQueryParamsPriceEffectEnum, TastyTradeMarketOrderPlaceQueryParamsValueEffectEnum, TastyTradeOrderModifyRequestBrokerEnum, TastyTradeOrderPlaceRequestBrokerEnum, TastyTradeStopOrderModifyQueryParamsAssetTypeEnum, TastyTradeStopOrderModifyQueryParamsOrderTypeEnum, TastyTradeStopOrderPlaceQueryParamsActionEnum, TastyTradeStopOrderPlaceQueryParamsAssetTypeEnum, TastyTradeStopOrderPlaceQueryParamsOrderTypeEnum, TastyTradeStopOrderPlaceQueryParamsPriceEffectEnum, TastyTradeStopOrderPlaceQueryParamsValueEffectEnum, TastyTradeTrailingStopOrderModifyQueryParamsAssetTypeEnum, TastyTradeTrailingStopOrderModifyQueryParamsOrderTypeEnum, TastyTradeTrailingStopOrderPlaceQueryParamsActionEnum, TastyTradeTrailingStopOrderPlaceQueryParamsAssetTypeEnum, TastyTradeTrailingStopOrderPlaceQueryParamsOrderTypeEnum, TastyTradeTrailingStopOrderPlaceQueryParamsPriceEffectEnum, TastyTradeTrailingStopOrderPlaceQueryParamsValueEffectEnum, ValidationError, addErrorInterceptor, addRequestInterceptor, addResponseInterceptor, appendBrokerFilterToURL, appendThemeToURL, applyErrorInterceptors, applyRequestInterceptors, applyResponseInterceptors, coerceEnumValue, convertToPlainObject, defaultConfig, generateCacheKey, generateRequestId, getCache, getConfig, getLogger, handleError, numberSchema, retryApiCall, stringSchema, unwrapAxiosResponse, validateParams };
|
|
10671
|
-
export type { Accountnumber, Accounts, ValidationError$1 as ApiValidationError, Assettype, Availablebalance, Availabletowithdraw, Averagebuyprice, Averagefillprice, Averagesellprice, BrokerInfo, Buyingpower, Cashbalance, Closedquantity, Closepriceavg, Commission, Commission1, Commissionshare, ConfigurationParameters, Costbasis, Costbasis1, Costbasiswithcommission, Costbasiswithcommission1, Currentbalance, Currentprice, DayTIF, DisconnectCompanyFromBrokerConnectionResult, ErrorInterceptor, Eventtype, FDXBrokerOrder, FDXBrokerOrderEvent, FDXBrokerOrderFill, FDXBrokerOrderGroup, FDXBrokerPosition, FDXBrokerPositionLot, FDXBrokerPositionLotFill, FDXBrokerTransaction, FDXOrderGroupOrder, FDXOrderLeg, FOKTIF, Filledquantity, Fillprice, Fillquantity, FinaticAPIErrorResponse,
|
|
10016
|
+
export { ApiError, BrokerDataAccountTypeEnum, BrokerDataAssetTypeEnum, BrokerDataOptionTypeEnum, BrokerDataOrderSideEnum, BrokerDataPositionStatusEnum, BrokersWrapper, CompanyWrapper, Configuration, DayTIFTimeInForceEnum, EventEmitter, FDXAssetType, FDXOrderClass, FDXOrderEventType, FDXOrderGroupType, FDXOrderSide, FDXOrderStatus, FDXOrderType, FDXPositionSide, FDXPositionStatus, FDXSecurityIdType, FDXTimeInForce, FOKTIFTimeInForceEnum, FinaticConnect, FinaticError, GTCTIFTimeInForceEnum, GTDTIFTimeInForceEnum, IOCTIFTimeInForceEnum, NinjaTraderLimitOrderPlaceQueryParamsActionEnum, NinjaTraderLimitOrderPlaceQueryParamsAssetTypeEnum, NinjaTraderLimitOrderPlaceQueryParamsOrderTypeEnum, NinjaTraderMarketOrderPlaceQueryParamsActionEnum, NinjaTraderMarketOrderPlaceQueryParamsAssetTypeEnum, NinjaTraderMarketOrderPlaceQueryParamsOrderTypeEnum, NinjaTraderOrderCancelRequestBrokerEnum, NinjaTraderOrderModifyRequestBrokerEnum, NinjaTraderOrderPlaceRequestBrokerEnum, NinjaTraderStopOrderPlaceQueryParamsActionEnum, NinjaTraderStopOrderPlaceQueryParamsAssetTypeEnum, NinjaTraderStopOrderPlaceQueryParamsOrderTypeEnum, NinjaTraderTrailingStopOrderPlaceQueryParamsActionEnum, NinjaTraderTrailingStopOrderPlaceQueryParamsAssetTypeEnum, NinjaTraderTrailingStopOrderPlaceQueryParamsOrderTypeEnum, Order1ActionEnum, Order1AmountInEnum, Order1AssetTypeEnum, Order1CreditOrDebitEnum, Order1DirectionEnum, Order1MarketHoursEnum, Order1OptionTypeEnum, Order1OrderTypeEnum, Order1PositionEffectEnum, OrderModifyQueryParamsBaseAssetTypeEnum, OrderModifyQueryParamsBaseOrderTypeEnum, OrderRequestBrokerEnum, PaginatedData, RobinhoodCryptoLimitOrderPlaceQueryParamsActionEnum, RobinhoodCryptoLimitOrderPlaceQueryParamsAmountInEnum, RobinhoodCryptoLimitOrderPlaceQueryParamsAssetTypeEnum, RobinhoodCryptoLimitOrderPlaceQueryParamsOrderTypeEnum, RobinhoodCryptoMarketOrderPlaceQueryParamsActionEnum, RobinhoodCryptoMarketOrderPlaceQueryParamsAmountInEnum, RobinhoodCryptoMarketOrderPlaceQueryParamsAssetTypeEnum, RobinhoodCryptoMarketOrderPlaceQueryParamsOrderTypeEnum, RobinhoodCryptoStopLimitOrderPlaceQueryParamsActionEnum, RobinhoodCryptoStopLimitOrderPlaceQueryParamsAmountInEnum, RobinhoodCryptoStopLimitOrderPlaceQueryParamsAssetTypeEnum, RobinhoodCryptoStopLimitOrderPlaceQueryParamsOrderTypeEnum, RobinhoodCryptoStopOrderPlaceQueryParamsActionEnum, RobinhoodCryptoStopOrderPlaceQueryParamsAmountInEnum, RobinhoodCryptoStopOrderPlaceQueryParamsAssetTypeEnum, RobinhoodCryptoStopOrderPlaceQueryParamsOrderTypeEnum, RobinhoodCryptoTrailingStopOrderPlaceQueryParamsActionEnum, RobinhoodCryptoTrailingStopOrderPlaceQueryParamsAmountInEnum, RobinhoodCryptoTrailingStopOrderPlaceQueryParamsAssetTypeEnum, RobinhoodCryptoTrailingStopOrderPlaceQueryParamsOrderTypeEnum, RobinhoodEquityLimitOrderPlaceQueryParamsActionEnum, RobinhoodEquityLimitOrderPlaceQueryParamsAssetTypeEnum, RobinhoodEquityLimitOrderPlaceQueryParamsMarketHoursEnum, RobinhoodEquityLimitOrderPlaceQueryParamsOrderTypeEnum, RobinhoodEquityMarketOrderPlaceQueryParamsActionEnum, RobinhoodEquityMarketOrderPlaceQueryParamsAssetTypeEnum, RobinhoodEquityMarketOrderPlaceQueryParamsMarketHoursEnum, RobinhoodEquityMarketOrderPlaceQueryParamsOrderTypeEnum, RobinhoodEquityStopLimitOrderPlaceQueryParamsActionEnum, RobinhoodEquityStopLimitOrderPlaceQueryParamsAssetTypeEnum, RobinhoodEquityStopLimitOrderPlaceQueryParamsMarketHoursEnum, RobinhoodEquityStopLimitOrderPlaceQueryParamsOrderTypeEnum, RobinhoodEquityStopOrderPlaceQueryParamsActionEnum, RobinhoodEquityStopOrderPlaceQueryParamsAssetTypeEnum, RobinhoodEquityStopOrderPlaceQueryParamsMarketHoursEnum, RobinhoodEquityStopOrderPlaceQueryParamsOrderTypeEnum, RobinhoodEquityTrailingStopOrderPlaceQueryParamsActionEnum, RobinhoodEquityTrailingStopOrderPlaceQueryParamsAssetTypeEnum, RobinhoodEquityTrailingStopOrderPlaceQueryParamsMarketHoursEnum, RobinhoodEquityTrailingStopOrderPlaceQueryParamsOrderTypeEnum, RobinhoodOptionLimitOrderPlaceQueryParamsActionEnum, RobinhoodOptionLimitOrderPlaceQueryParamsAssetTypeEnum, RobinhoodOptionLimitOrderPlaceQueryParamsCreditOrDebitEnum, RobinhoodOptionLimitOrderPlaceQueryParamsDirectionEnum, RobinhoodOptionLimitOrderPlaceQueryParamsOptionTypeEnum, RobinhoodOptionLimitOrderPlaceQueryParamsOrderTypeEnum, RobinhoodOptionLimitOrderPlaceQueryParamsPositionEffectEnum, RobinhoodOptionMarketOrderPlaceQueryParamsActionEnum, RobinhoodOptionMarketOrderPlaceQueryParamsAssetTypeEnum, RobinhoodOptionMarketOrderPlaceQueryParamsCreditOrDebitEnum, RobinhoodOptionMarketOrderPlaceQueryParamsDirectionEnum, RobinhoodOptionMarketOrderPlaceQueryParamsOptionTypeEnum, RobinhoodOptionMarketOrderPlaceQueryParamsOrderTypeEnum, RobinhoodOptionMarketOrderPlaceQueryParamsPositionEffectEnum, RobinhoodOptionSpreadLegPositionEffectEnum, RobinhoodOptionStopLimitOrderPlaceQueryParamsActionEnum, RobinhoodOptionStopLimitOrderPlaceQueryParamsAssetTypeEnum, RobinhoodOptionStopLimitOrderPlaceQueryParamsCreditOrDebitEnum, RobinhoodOptionStopLimitOrderPlaceQueryParamsDirectionEnum, RobinhoodOptionStopLimitOrderPlaceQueryParamsOptionTypeEnum, RobinhoodOptionStopLimitOrderPlaceQueryParamsOrderTypeEnum, RobinhoodOptionStopLimitOrderPlaceQueryParamsPositionEffectEnum, RobinhoodOptionStopOrderPlaceQueryParamsActionEnum, RobinhoodOptionStopOrderPlaceQueryParamsAssetTypeEnum, RobinhoodOptionStopOrderPlaceQueryParamsCreditOrDebitEnum, RobinhoodOptionStopOrderPlaceQueryParamsDirectionEnum, RobinhoodOptionStopOrderPlaceQueryParamsOptionTypeEnum, RobinhoodOptionStopOrderPlaceQueryParamsOrderTypeEnum, RobinhoodOptionStopOrderPlaceQueryParamsPositionEffectEnum, RobinhoodOptionTrailingStopOrderPlaceQueryParamsActionEnum, RobinhoodOptionTrailingStopOrderPlaceQueryParamsAssetTypeEnum, RobinhoodOptionTrailingStopOrderPlaceQueryParamsCreditOrDebitEnum, RobinhoodOptionTrailingStopOrderPlaceQueryParamsDirectionEnum, RobinhoodOptionTrailingStopOrderPlaceQueryParamsOptionTypeEnum, RobinhoodOptionTrailingStopOrderPlaceQueryParamsOrderTypeEnum, RobinhoodOptionTrailingStopOrderPlaceQueryParamsPositionEffectEnum, RobinhoodOrderCancelQueryParamsAssetTypeEnum, RobinhoodOrderCancelRequestBrokerEnum, RobinhoodOrderModifyRequestBrokerEnum, RobinhoodOrderPlaceRequestBrokerEnum, SessionStatus, SessionWrapper, TastyTradeLimitOrderPlaceQueryParamsActionEnum, TastyTradeLimitOrderPlaceQueryParamsAssetTypeEnum, TastyTradeLimitOrderPlaceQueryParamsOrderTypeEnum, TastyTradeLimitOrderPlaceQueryParamsPriceEffectEnum, TastyTradeLimitOrderPlaceQueryParamsValueEffectEnum, TastyTradeMarketOrderPlaceQueryParamsActionEnum, TastyTradeMarketOrderPlaceQueryParamsAssetTypeEnum, TastyTradeMarketOrderPlaceQueryParamsOrderTypeEnum, TastyTradeMarketOrderPlaceQueryParamsPriceEffectEnum, TastyTradeMarketOrderPlaceQueryParamsValueEffectEnum, TastyTradeOrderCancelRequestBrokerEnum, TastyTradeOrderModifyRequestBrokerEnum, TastyTradeOrderPlaceRequestBrokerEnum, TastyTradeStopOrderPlaceQueryParamsActionEnum, TastyTradeStopOrderPlaceQueryParamsAssetTypeEnum, TastyTradeStopOrderPlaceQueryParamsOrderTypeEnum, TastyTradeStopOrderPlaceQueryParamsPriceEffectEnum, TastyTradeStopOrderPlaceQueryParamsValueEffectEnum, TastyTradeTrailingStopOrderPlaceQueryParamsActionEnum, TastyTradeTrailingStopOrderPlaceQueryParamsAssetTypeEnum, TastyTradeTrailingStopOrderPlaceQueryParamsOrderTypeEnum, TastyTradeTrailingStopOrderPlaceQueryParamsPriceEffectEnum, TastyTradeTrailingStopOrderPlaceQueryParamsValueEffectEnum, ValidationError, addErrorInterceptor, addRequestInterceptor, addResponseInterceptor, appendBrokerFilterToURL, appendThemeToURL, applyErrorInterceptors, applyRequestInterceptors, applyResponseInterceptors, coerceEnumValue, convertToPlainObject, defaultConfig, generateCacheKey, generateRequestId, getCache, getConfig, getLogger, handleError, numberSchema, retryApiCall, stringSchema, unwrapAxiosResponse, validateParams };
|
|
10017
|
+
export type { Accountnumber, Accounts, ValidationError$1 as ApiValidationError, Assettype, Availablebalance, Availabletowithdraw, Averagebuyprice, Averagefillprice, Averagesellprice, BrokerInfo, Buyingpower, CancelOrderApiBetaBrokersOrdersOrderIdDeleteRequest, Cashbalance, Closedquantity, Closepriceavg, Commission, Commission1, Commissionshare, ConfigurationParameters, Costbasis, Costbasis1, Costbasiswithcommission, Costbasiswithcommission1, Currentbalance, Currentprice, DayTIF, DisconnectCompanyFromBrokerConnectionResult, ErrorInterceptor, Eventtype, FDXBrokerOrder, FDXBrokerOrderEvent, FDXBrokerOrderFill, FDXBrokerOrderGroup, FDXBrokerPosition, FDXBrokerPositionLot, FDXBrokerPositionLotFill, FDXBrokerTransaction, FDXOrderGroupOrder, FDXOrderLeg, FOKTIF, Filledquantity, Fillprice, Fillquantity, FinaticAPIErrorResponse, FinaticConnectOptions, FinaticResponse$3 as FinaticResponse, FinaticResponseAccounts, FinaticResponseDisconnectCompanyFromBrokerConnectionResult, FinaticResponseListBrokerInfo, FinaticResponseListFDXBrokerOrder, FinaticResponseListFDXBrokerOrderEvent, FinaticResponseListFDXBrokerOrderFill, FinaticResponseListFDXBrokerOrderGroup, FinaticResponseListFDXBrokerPosition, FinaticResponseListFDXBrokerPositionLot, FinaticResponseListFDXBrokerPositionLotFill, FinaticResponseListFDXBrokerTransaction, FinaticResponseListLegacyBrokerAccount, FinaticResponseListLegacyBrokerBalance, FinaticResponseListUserBrokerConnectionWithPermissions, FinaticResponseOrderActionResult, FinaticResponseSessionResponseData, FinaticResponseSessionUserResponse, FinaticapiCoreStandardModelsAbstractResponsesFinaticResponsePortalUrlResponse2, FinaticapiCoreStandardModelsAbstractResponsesFinaticResponseTokenResponseData2, Futureunderlyingassettype, GTCTIF, GTDTIF, Grouptype, HTTPValidationError, IOCTIF, Initialmargin, InterceptorChain, LegacyBrokerAccount, LegacyBrokerBalance, Limitprice, LocationInner, LogLevel, Logger, Maintenancemargin, Marketvalue, Netliquidationvalue, NinjaTraderLimitOrderPlaceQueryParams, NinjaTraderMarketOrderPlaceQueryParams, NinjaTraderOrderCancelQueryParams, NinjaTraderOrderCancelRequest, NinjaTraderOrderModifyRequest, NinjaTraderOrderPlaceRequest, NinjaTraderStopOrderPlaceQueryParams, NinjaTraderTrailingStopOrderPlaceQueryParams, Notional, Openprice, Openquantity, Order, Order1, Order1AnyOf, Order1AnyOf1, Order1AnyOf2, Order2, OrderActionResult, OrderModifyQueryParamsBase, OrderRequest, Orderclass, Orderstatus, Ordertype, PaginationMeta, ParsedFinaticError, Pendingbalance, PlaceOrderApiBetaBrokersOrdersPostRequest, PortalUrlResponse, Previousstatus, Price, Quantity, Quantity1, Quantity2, Realizedprofitloss, Realizedprofitloss1, Realizedprofitlosspercent, Realizedprofitlosswithcommission, Realizedprofitlosswithcommission1, Remainingquantity, Remainingquantity1, RequestInterceptor, ResponseInterceptor, RetryOptions, RobinhoodCryptoLimitOrderPlaceQueryParams, RobinhoodCryptoMarketOrderPlaceQueryParams, RobinhoodCryptoStopLimitOrderPlaceQueryParams, RobinhoodCryptoStopOrderPlaceQueryParams, RobinhoodCryptoTrailingStopOrderPlaceQueryParams, RobinhoodEquityLimitOrderPlaceQueryParams, RobinhoodEquityMarketOrderPlaceQueryParams, RobinhoodEquityStopLimitOrderPlaceQueryParams, RobinhoodEquityStopOrderPlaceQueryParams, RobinhoodEquityTrailingStopOrderPlaceQueryParams, RobinhoodOptionLimitOrderPlaceQueryParams, RobinhoodOptionMarketOrderPlaceQueryParams, RobinhoodOptionSpreadLeg, RobinhoodOptionStopLimitOrderPlaceQueryParams, RobinhoodOptionStopOrderPlaceQueryParams, RobinhoodOptionTrailingStopOrderPlaceQueryParams, RobinhoodOrderCancelQueryParams, RobinhoodOrderCancelRequest, RobinhoodOrderModifyRequest, RobinhoodOrderPlaceRequest, SdkConfig, Securityidtype, SessionResponseData, SessionStartRequest, SessionUserResponse, Side, Side1, Side2, Side3, Status, Status1, Stopprice, Strikeprice, SuccessPayloadAccounts, SuccessPayloadDisconnectCompanyFromBrokerConnectionResult, SuccessPayloadListBrokerInfo, SuccessPayloadListFDXBrokerOrder, SuccessPayloadListFDXBrokerOrderEvent, SuccessPayloadListFDXBrokerOrderFill, SuccessPayloadListFDXBrokerOrderGroup, SuccessPayloadListFDXBrokerPosition, SuccessPayloadListFDXBrokerPositionLot, SuccessPayloadListFDXBrokerPositionLotFill, SuccessPayloadListFDXBrokerTransaction, SuccessPayloadListLegacyBrokerAccount, SuccessPayloadListLegacyBrokerBalance, SuccessPayloadListUserBrokerConnectionWithPermissions, SuccessPayloadOrderActionResult, SuccessPayloadPortalUrlResponse, SuccessPayloadSessionResponseData, SuccessPayloadSessionUserResponse, SuccessPayloadTokenResponseData, TastyTradeLimitOrderPlaceQueryParams, TastyTradeMarketOrderPlaceQueryParams, TastyTradeOrderCancelQueryParams, TastyTradeOrderCancelRequest, TastyTradeOrderModifyRequest, TastyTradeOrderPlaceRequest, TastyTradeStopOrderPlaceQueryParams, TastyTradeTrailingStopOrderPlaceQueryParams, Timeinforce, Timeinforce1, Timeinforce2, Timeinforce2AnyOf, TokenResponseData, Totalcashvalue, Totalrealizedpnl, Transactionamount, Units, Unrealizedprofitloss, Unrealizedprofitlosspercent, UserBrokerConnectionWithPermissions };
|