@finatic/client 0.9.3 → 0.9.5
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/dist/index.d.ts +80 -57
- package/dist/index.js +82 -73
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +83 -74
- package/dist/index.mjs.map +1 -1
- package/package.json +10 -14
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import * as axios from 'axios';
|
|
2
2
|
import { AxiosInstance, RawAxiosRequestConfig, AxiosPromise, AxiosRequestConfig, AxiosResponse } from 'axios';
|
|
3
|
+
import { RetryContext } from 'p-retry';
|
|
3
4
|
import * as z from 'zod';
|
|
4
5
|
|
|
5
6
|
/**
|
|
@@ -328,31 +329,6 @@ declare enum BrokerDataOrderSideEnum {
|
|
|
328
329
|
Sell = "sell"
|
|
329
330
|
}
|
|
330
331
|
|
|
331
|
-
/**
|
|
332
|
-
* Finatic FastAPI Backend
|
|
333
|
-
* FinaticAPI REST API
|
|
334
|
-
*
|
|
335
|
-
* The version of the OpenAPI document: 1.0.0
|
|
336
|
-
*
|
|
337
|
-
*
|
|
338
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
339
|
-
* https://openapi-generator.tech
|
|
340
|
-
* Do not edit the class manually.
|
|
341
|
-
*/
|
|
342
|
-
declare enum BrokerDataOrderStatusEnum {
|
|
343
|
-
Submitted = "submitted",
|
|
344
|
-
New = "new",
|
|
345
|
-
PartiallyFilled = "partially_filled",
|
|
346
|
-
Filled = "filled",
|
|
347
|
-
PendingCancel = "pending_cancel",
|
|
348
|
-
Cancelled = "cancelled",
|
|
349
|
-
Rejected = "rejected",
|
|
350
|
-
Expired = "expired",
|
|
351
|
-
Created = "created",
|
|
352
|
-
Received = "received",
|
|
353
|
-
Queued = "queued"
|
|
354
|
-
}
|
|
355
|
-
|
|
356
332
|
/**
|
|
357
333
|
* Finatic FastAPI Backend
|
|
358
334
|
* FinaticAPI REST API
|
|
@@ -966,6 +942,8 @@ interface FDXBrokerBalance {
|
|
|
966
942
|
* Associated account identifier
|
|
967
943
|
*/
|
|
968
944
|
'accountId': string;
|
|
945
|
+
'internalAccountId'?: string | null;
|
|
946
|
+
'connectionId'?: string | null;
|
|
969
947
|
'balanceType': Balancetype;
|
|
970
948
|
'balanceName'?: string | null;
|
|
971
949
|
'availableBalance'?: Availablebalance | null;
|
|
@@ -1279,6 +1257,7 @@ interface FDXBrokerOrder {
|
|
|
1279
1257
|
* Broker account identifier
|
|
1280
1258
|
*/
|
|
1281
1259
|
'accountId': string;
|
|
1260
|
+
'internalAccountId'?: string | null;
|
|
1282
1261
|
'connectionId'?: string | null;
|
|
1283
1262
|
'orderType'?: Ordertype | null;
|
|
1284
1263
|
'orderClass'?: Orderclass | null;
|
|
@@ -1758,6 +1737,7 @@ interface FDXBrokerPosition {
|
|
|
1758
1737
|
* Broker account identifier
|
|
1759
1738
|
*/
|
|
1760
1739
|
'accountId': string;
|
|
1740
|
+
'internalAccountId'?: string | null;
|
|
1761
1741
|
/**
|
|
1762
1742
|
* User-broker connection identifier
|
|
1763
1743
|
*/
|
|
@@ -1997,6 +1977,8 @@ interface FDXBrokerPositionLot {
|
|
|
1997
1977
|
* Broker account identifier
|
|
1998
1978
|
*/
|
|
1999
1979
|
'accountId': string;
|
|
1980
|
+
'internalAccountId'?: string | null;
|
|
1981
|
+
'connectionId'?: string | null;
|
|
2000
1982
|
/**
|
|
2001
1983
|
* Security identifier
|
|
2002
1984
|
*/
|
|
@@ -3367,7 +3349,7 @@ declare const BrokersApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
|
3367
3349
|
* @summary Get Balances
|
|
3368
3350
|
* @param {string | null} [brokerId] Filter by broker ID
|
|
3369
3351
|
* @param {string | null} [connectionId] Filter by connection ID
|
|
3370
|
-
* @param {string | null} [accountId] Filter by broker provided account ID
|
|
3352
|
+
* @param {string | null} [accountId] Filter by broker provided account ID or internal account UUID
|
|
3371
3353
|
* @param {boolean | null} [isEndOfDaySnapshot] Filter by end-of-day snapshot status (true/false)
|
|
3372
3354
|
* @param {number} [limit] Maximum number of balances to return
|
|
3373
3355
|
* @param {number} [offset] Number of balances to skip for pagination
|
|
@@ -3428,9 +3410,9 @@ declare const BrokersApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
|
3428
3410
|
* @summary Get Orders
|
|
3429
3411
|
* @param {string | null} [brokerId] Filter by broker ID
|
|
3430
3412
|
* @param {string | null} [connectionId] Filter by connection ID
|
|
3431
|
-
* @param {string | null} [accountId] Filter by broker provided account ID
|
|
3413
|
+
* @param {string | null} [accountId] Filter by broker provided account ID or internal account UUID
|
|
3432
3414
|
* @param {string | null} [symbol] Filter by symbol
|
|
3433
|
-
* @param {
|
|
3415
|
+
* @param {string | null} [orderStatus] Filter by order status (e.g., \'filled\', \'pending_new\', \'cancelled\')
|
|
3434
3416
|
* @param {BrokerDataOrderSideEnum | null} [side] Filter by order side (e.g., \'buy\', \'sell\')
|
|
3435
3417
|
* @param {BrokerDataAssetTypeEnum | null} [assetType] Filter by asset type (e.g., \'stock\', \'option\', \'crypto\', \'future\')
|
|
3436
3418
|
* @param {number} [limit] Maximum number of orders to return
|
|
@@ -3441,7 +3423,7 @@ declare const BrokersApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
|
3441
3423
|
* @param {*} [options] Override http request option.
|
|
3442
3424
|
* @throws {RequiredError}
|
|
3443
3425
|
*/
|
|
3444
|
-
getOrdersApiV1BrokersDataOrdersGet: (brokerId?: string | null, connectionId?: string | null, accountId?: string | null, symbol?: string | null, orderStatus?:
|
|
3426
|
+
getOrdersApiV1BrokersDataOrdersGet: (brokerId?: string | null, connectionId?: string | null, accountId?: string | null, symbol?: string | null, orderStatus?: string | null, side?: BrokerDataOrderSideEnum | null, assetType?: BrokerDataAssetTypeEnum | null, limit?: number, offset?: number, createdAfter?: string | null, createdBefore?: string | null, includeMetadata?: boolean, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
3445
3427
|
/**
|
|
3446
3428
|
* Get position lot fills for a specific lot. This endpoint returns all fills associated with a specific position lot.
|
|
3447
3429
|
* @summary Get Position Lot Fills
|
|
@@ -3472,7 +3454,7 @@ declare const BrokersApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
|
3472
3454
|
* @summary Get Positions
|
|
3473
3455
|
* @param {string | null} [brokerId] Filter by broker ID
|
|
3474
3456
|
* @param {string | null} [connectionId] Filter by connection ID
|
|
3475
|
-
* @param {string | null} [accountId] Filter by broker provided account ID
|
|
3457
|
+
* @param {string | null} [accountId] Filter by broker provided account ID or internal account UUID
|
|
3476
3458
|
* @param {string | null} [symbol] Filter by symbol
|
|
3477
3459
|
* @param {BrokerDataOrderSideEnum | null} [side] Filter by position side (e.g., \'long\', \'short\')
|
|
3478
3460
|
* @param {BrokerDataAssetTypeEnum | null} [assetType] Filter by asset type (e.g., \'stock\', \'option\', \'crypto\', \'future\')
|
|
@@ -3526,7 +3508,7 @@ declare const BrokersApiFp: (configuration?: Configuration) => {
|
|
|
3526
3508
|
* @summary Get Balances
|
|
3527
3509
|
* @param {string | null} [brokerId] Filter by broker ID
|
|
3528
3510
|
* @param {string | null} [connectionId] Filter by connection ID
|
|
3529
|
-
* @param {string | null} [accountId] Filter by broker provided account ID
|
|
3511
|
+
* @param {string | null} [accountId] Filter by broker provided account ID or internal account UUID
|
|
3530
3512
|
* @param {boolean | null} [isEndOfDaySnapshot] Filter by end-of-day snapshot status (true/false)
|
|
3531
3513
|
* @param {number} [limit] Maximum number of balances to return
|
|
3532
3514
|
* @param {number} [offset] Number of balances to skip for pagination
|
|
@@ -3587,9 +3569,9 @@ declare const BrokersApiFp: (configuration?: Configuration) => {
|
|
|
3587
3569
|
* @summary Get Orders
|
|
3588
3570
|
* @param {string | null} [brokerId] Filter by broker ID
|
|
3589
3571
|
* @param {string | null} [connectionId] Filter by connection ID
|
|
3590
|
-
* @param {string | null} [accountId] Filter by broker provided account ID
|
|
3572
|
+
* @param {string | null} [accountId] Filter by broker provided account ID or internal account UUID
|
|
3591
3573
|
* @param {string | null} [symbol] Filter by symbol
|
|
3592
|
-
* @param {
|
|
3574
|
+
* @param {string | null} [orderStatus] Filter by order status (e.g., \'filled\', \'pending_new\', \'cancelled\')
|
|
3593
3575
|
* @param {BrokerDataOrderSideEnum | null} [side] Filter by order side (e.g., \'buy\', \'sell\')
|
|
3594
3576
|
* @param {BrokerDataAssetTypeEnum | null} [assetType] Filter by asset type (e.g., \'stock\', \'option\', \'crypto\', \'future\')
|
|
3595
3577
|
* @param {number} [limit] Maximum number of orders to return
|
|
@@ -3600,7 +3582,7 @@ declare const BrokersApiFp: (configuration?: Configuration) => {
|
|
|
3600
3582
|
* @param {*} [options] Override http request option.
|
|
3601
3583
|
* @throws {RequiredError}
|
|
3602
3584
|
*/
|
|
3603
|
-
getOrdersApiV1BrokersDataOrdersGet(brokerId?: string | null, connectionId?: string | null, accountId?: string | null, symbol?: string | null, orderStatus?:
|
|
3585
|
+
getOrdersApiV1BrokersDataOrdersGet(brokerId?: string | null, connectionId?: string | null, accountId?: string | null, symbol?: string | null, orderStatus?: string | null, side?: BrokerDataOrderSideEnum | null, assetType?: BrokerDataAssetTypeEnum | null, limit?: number, offset?: number, createdAfter?: string | null, createdBefore?: string | null, includeMetadata?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<FinaticResponseListFDXBrokerOrder>>;
|
|
3604
3586
|
/**
|
|
3605
3587
|
* Get position lot fills for a specific lot. This endpoint returns all fills associated with a specific position lot.
|
|
3606
3588
|
* @summary Get Position Lot Fills
|
|
@@ -3631,7 +3613,7 @@ declare const BrokersApiFp: (configuration?: Configuration) => {
|
|
|
3631
3613
|
* @summary Get Positions
|
|
3632
3614
|
* @param {string | null} [brokerId] Filter by broker ID
|
|
3633
3615
|
* @param {string | null} [connectionId] Filter by connection ID
|
|
3634
|
-
* @param {string | null} [accountId] Filter by broker provided account ID
|
|
3616
|
+
* @param {string | null} [accountId] Filter by broker provided account ID or internal account UUID
|
|
3635
3617
|
* @param {string | null} [symbol] Filter by symbol
|
|
3636
3618
|
* @param {BrokerDataOrderSideEnum | null} [side] Filter by position side (e.g., \'long\', \'short\')
|
|
3637
3619
|
* @param {BrokerDataAssetTypeEnum | null} [assetType] Filter by asset type (e.g., \'stock\', \'option\', \'crypto\', \'future\')
|
|
@@ -3910,7 +3892,7 @@ interface BrokersApiGetBalancesApiV1BrokersDataBalancesGetRequest {
|
|
|
3910
3892
|
*/
|
|
3911
3893
|
readonly connectionId?: string | null;
|
|
3912
3894
|
/**
|
|
3913
|
-
* Filter by broker provided account ID
|
|
3895
|
+
* Filter by broker provided account ID or internal account UUID
|
|
3914
3896
|
*/
|
|
3915
3897
|
readonly accountId?: string | null;
|
|
3916
3898
|
/**
|
|
@@ -4034,7 +4016,7 @@ interface BrokersApiGetOrdersApiV1BrokersDataOrdersGetRequest {
|
|
|
4034
4016
|
*/
|
|
4035
4017
|
readonly connectionId?: string | null;
|
|
4036
4018
|
/**
|
|
4037
|
-
* Filter by broker provided account ID
|
|
4019
|
+
* Filter by broker provided account ID or internal account UUID
|
|
4038
4020
|
*/
|
|
4039
4021
|
readonly accountId?: string | null;
|
|
4040
4022
|
/**
|
|
@@ -4044,7 +4026,7 @@ interface BrokersApiGetOrdersApiV1BrokersDataOrdersGetRequest {
|
|
|
4044
4026
|
/**
|
|
4045
4027
|
* Filter by order status (e.g., \'filled\', \'pending_new\', \'cancelled\')
|
|
4046
4028
|
*/
|
|
4047
|
-
readonly orderStatus?:
|
|
4029
|
+
readonly orderStatus?: string | null;
|
|
4048
4030
|
/**
|
|
4049
4031
|
* Filter by order side (e.g., \'buy\', \'sell\')
|
|
4050
4032
|
*/
|
|
@@ -4141,7 +4123,7 @@ interface BrokersApiGetPositionsApiV1BrokersDataPositionsGetRequest {
|
|
|
4141
4123
|
*/
|
|
4142
4124
|
readonly connectionId?: string | null;
|
|
4143
4125
|
/**
|
|
4144
|
-
* Filter by broker provided account ID
|
|
4126
|
+
* Filter by broker provided account ID or internal account UUID
|
|
4145
4127
|
*/
|
|
4146
4128
|
readonly accountId?: string | null;
|
|
4147
4129
|
/**
|
|
@@ -4512,6 +4494,21 @@ declare class PaginatedData<T> {
|
|
|
4512
4494
|
* Returns a string representation of an array.
|
|
4513
4495
|
*/
|
|
4514
4496
|
toLocaleString(): string;
|
|
4497
|
+
/**
|
|
4498
|
+
* Convert to JSON - returns just the items array for serialization.
|
|
4499
|
+
* This allows clean serialization without exposing internal methods.
|
|
4500
|
+
*
|
|
4501
|
+
* @returns The items array
|
|
4502
|
+
*
|
|
4503
|
+
* @example
|
|
4504
|
+
* ```typescript
|
|
4505
|
+
* const orders = await sdk.getOrders();
|
|
4506
|
+
* console.log(orders); // Shows full PaginatedData with methods
|
|
4507
|
+
* console.log(orders.toJSON()); // Shows just the items array
|
|
4508
|
+
* JSON.stringify(orders); // Automatically uses toJSON()
|
|
4509
|
+
* ```
|
|
4510
|
+
*/
|
|
4511
|
+
toJSON(): T[];
|
|
4515
4512
|
/**
|
|
4516
4513
|
* Get the next page of data.
|
|
4517
4514
|
* @returns Promise<PaginatedData<T>> - The next page (not wrapped in FinaticResponse)
|
|
@@ -4569,7 +4566,7 @@ interface FinaticResponse$2<T> {
|
|
|
4569
4566
|
[key: string]: any;
|
|
4570
4567
|
}> | null;
|
|
4571
4568
|
}
|
|
4572
|
-
interface DisconnectCompanyFromBrokerParams
|
|
4569
|
+
interface DisconnectCompanyFromBrokerParams {
|
|
4573
4570
|
/** Connection ID */
|
|
4574
4571
|
connectionId: string;
|
|
4575
4572
|
}
|
|
@@ -4578,12 +4575,12 @@ interface GetOrdersParams {
|
|
|
4578
4575
|
brokerId?: string;
|
|
4579
4576
|
/** Filter by connection ID */
|
|
4580
4577
|
connectionId?: string;
|
|
4581
|
-
/** Filter by broker provided account ID */
|
|
4578
|
+
/** Filter by broker provided account ID or internal account UUID */
|
|
4582
4579
|
accountId?: string;
|
|
4583
4580
|
/** Filter by symbol */
|
|
4584
4581
|
symbol?: string;
|
|
4585
4582
|
/** Filter by order status (e.g., 'filled', 'pending_new', 'cancelled') */
|
|
4586
|
-
orderStatus?:
|
|
4583
|
+
orderStatus?: string;
|
|
4587
4584
|
/** Filter by order side (e.g., 'buy', 'sell') */
|
|
4588
4585
|
side?: BrokerDataOrderSideEnum;
|
|
4589
4586
|
/** Filter by asset type (e.g., 'stock', 'option', 'crypto', 'future') */
|
|
@@ -4604,7 +4601,7 @@ interface GetPositionsParams {
|
|
|
4604
4601
|
brokerId?: string;
|
|
4605
4602
|
/** Filter by connection ID */
|
|
4606
4603
|
connectionId?: string;
|
|
4607
|
-
/** Filter by broker provided account ID */
|
|
4604
|
+
/** Filter by broker provided account ID or internal account UUID */
|
|
4608
4605
|
accountId?: string;
|
|
4609
4606
|
/** Filter by symbol */
|
|
4610
4607
|
symbol?: string;
|
|
@@ -4630,7 +4627,7 @@ interface GetBalancesParams {
|
|
|
4630
4627
|
brokerId?: string;
|
|
4631
4628
|
/** Filter by connection ID */
|
|
4632
4629
|
connectionId?: string;
|
|
4633
|
-
/** Filter by broker provided account ID */
|
|
4630
|
+
/** Filter by broker provided account ID or internal account UUID */
|
|
4634
4631
|
accountId?: string;
|
|
4635
4632
|
/** Filter by end-of-day snapshot status (true/false) */
|
|
4636
4633
|
isEndOfDaySnapshot?: boolean;
|
|
@@ -4830,7 +4827,7 @@ declare class BrokersWrapper {
|
|
|
4830
4827
|
* }
|
|
4831
4828
|
* ```
|
|
4832
4829
|
*/
|
|
4833
|
-
disconnectCompanyFromBroker(params: DisconnectCompanyFromBrokerParams
|
|
4830
|
+
disconnectCompanyFromBroker(params: DisconnectCompanyFromBrokerParams): Promise<FinaticResponse$2<DisconnectActionResult>>;
|
|
4834
4831
|
/**
|
|
4835
4832
|
* Get Orders
|
|
4836
4833
|
*
|
|
@@ -4840,9 +4837,9 @@ declare class BrokersWrapper {
|
|
|
4840
4837
|
* Returns orders from connections the company has read access to.
|
|
4841
4838
|
* @param params.brokerId {string} (optional) Filter by broker ID
|
|
4842
4839
|
* @param params.connectionId {string} (optional) Filter by connection ID
|
|
4843
|
-
* @param params.accountId {string} (optional) Filter by broker provided account ID
|
|
4840
|
+
* @param params.accountId {string} (optional) Filter by broker provided account ID or internal account UUID
|
|
4844
4841
|
* @param params.symbol {string} (optional) Filter by symbol
|
|
4845
|
-
* @param params.orderStatus {
|
|
4842
|
+
* @param params.orderStatus {string} (optional) Filter by order status (e.g., 'filled', 'pending_new', 'cancelled')
|
|
4846
4843
|
* @param params.side {BrokerDataOrderSideEnum} (optional) Filter by order side (e.g., 'buy', 'sell')
|
|
4847
4844
|
* @param params.assetType {BrokerDataAssetTypeEnum} (optional) Filter by asset type (e.g., 'stock', 'option', 'crypto', 'future')
|
|
4848
4845
|
* @param params.limit {number} (optional) Maximum number of orders to return
|
|
@@ -4895,7 +4892,7 @@ declare class BrokersWrapper {
|
|
|
4895
4892
|
* Returns positions from connections the company has read access to.
|
|
4896
4893
|
* @param params.brokerId {string} (optional) Filter by broker ID
|
|
4897
4894
|
* @param params.connectionId {string} (optional) Filter by connection ID
|
|
4898
|
-
* @param params.accountId {string} (optional) Filter by broker provided account ID
|
|
4895
|
+
* @param params.accountId {string} (optional) Filter by broker provided account ID or internal account UUID
|
|
4899
4896
|
* @param params.symbol {string} (optional) Filter by symbol
|
|
4900
4897
|
* @param params.side {BrokerDataOrderSideEnum} (optional) Filter by position side (e.g., 'long', 'short')
|
|
4901
4898
|
* @param params.assetType {BrokerDataAssetTypeEnum} (optional) Filter by asset type (e.g., 'stock', 'option', 'crypto', 'future')
|
|
@@ -4950,7 +4947,7 @@ declare class BrokersWrapper {
|
|
|
4950
4947
|
* Returns balances from connections the company has read access to.
|
|
4951
4948
|
* @param params.brokerId {string} (optional) Filter by broker ID
|
|
4952
4949
|
* @param params.connectionId {string} (optional) Filter by connection ID
|
|
4953
|
-
* @param params.accountId {string} (optional) Filter by broker provided account ID
|
|
4950
|
+
* @param params.accountId {string} (optional) Filter by broker provided account ID or internal account UUID
|
|
4954
4951
|
* @param params.isEndOfDaySnapshot {boolean} (optional) Filter by end-of-day snapshot status (true/false)
|
|
4955
4952
|
* @param params.limit {number} (optional) Maximum number of balances to return
|
|
4956
4953
|
* @param params.offset {number} (optional) Number of balances to skip for pagination
|
|
@@ -5454,7 +5451,7 @@ interface FinaticResponse$1<T> {
|
|
|
5454
5451
|
[key: string]: any;
|
|
5455
5452
|
}> | null;
|
|
5456
5453
|
}
|
|
5457
|
-
interface GetCompanyParams
|
|
5454
|
+
interface GetCompanyParams {
|
|
5458
5455
|
/** Company ID */
|
|
5459
5456
|
companyId: string;
|
|
5460
5457
|
}
|
|
@@ -5500,7 +5497,7 @@ declare class CompanyWrapper {
|
|
|
5500
5497
|
* }
|
|
5501
5498
|
* ```
|
|
5502
5499
|
*/
|
|
5503
|
-
getCompany(params: GetCompanyParams
|
|
5500
|
+
getCompany(params: GetCompanyParams): Promise<FinaticResponse$1<CompanyResponse>>;
|
|
5504
5501
|
}
|
|
5505
5502
|
|
|
5506
5503
|
/**
|
|
@@ -5930,7 +5927,7 @@ interface RetryOptions {
|
|
|
5930
5927
|
retryMultiplier?: number;
|
|
5931
5928
|
retryOnStatus?: number[];
|
|
5932
5929
|
retryOnNetworkError?: boolean;
|
|
5933
|
-
onFailedAttempt?: (
|
|
5930
|
+
onFailedAttempt?: (context: RetryContext) => void | Promise<void>;
|
|
5934
5931
|
}
|
|
5935
5932
|
/**
|
|
5936
5933
|
* Retry an async function with exponential backoff using p-retry.
|
|
@@ -5954,17 +5951,17 @@ interface ParsedFinaticError {
|
|
|
5954
5951
|
code?: string;
|
|
5955
5952
|
}>;
|
|
5956
5953
|
}
|
|
5957
|
-
declare class FinaticError extends Error {
|
|
5954
|
+
declare class FinaticError$1 extends Error {
|
|
5958
5955
|
statusCode?: number | undefined;
|
|
5959
5956
|
requestId?: string | undefined;
|
|
5960
5957
|
originalError?: any | undefined;
|
|
5961
5958
|
finatic?: ParsedFinaticError | undefined;
|
|
5962
5959
|
constructor(message: string, statusCode?: number | undefined, requestId?: string | undefined, originalError?: any | undefined, finatic?: ParsedFinaticError | undefined);
|
|
5963
5960
|
}
|
|
5964
|
-
declare class ApiError extends FinaticError {
|
|
5961
|
+
declare class ApiError extends FinaticError$1 {
|
|
5965
5962
|
constructor(message: string, statusCode: number, requestId?: string, originalError?: any, finatic?: ParsedFinaticError);
|
|
5966
5963
|
}
|
|
5967
|
-
declare class ValidationError extends FinaticError {
|
|
5964
|
+
declare class ValidationError extends FinaticError$1 {
|
|
5968
5965
|
constructor(message: string, requestId?: string, originalError?: any, finatic?: ParsedFinaticError);
|
|
5969
5966
|
}
|
|
5970
5967
|
/**
|
|
@@ -7855,5 +7852,31 @@ declare class FinaticConnect extends FinaticConnect$1 {
|
|
|
7855
7852
|
static readonly __CUSTOM_CLASS__ = true;
|
|
7856
7853
|
}
|
|
7857
7854
|
|
|
7858
|
-
|
|
7859
|
-
|
|
7855
|
+
/**
|
|
7856
|
+
* Finatic FastAPI Backend
|
|
7857
|
+
* FinaticAPI REST API
|
|
7858
|
+
*
|
|
7859
|
+
* The version of the OpenAPI document: 1.0.0
|
|
7860
|
+
*
|
|
7861
|
+
*
|
|
7862
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
7863
|
+
* https://openapi-generator.tech
|
|
7864
|
+
* Do not edit the class manually.
|
|
7865
|
+
*/
|
|
7866
|
+
/**
|
|
7867
|
+
* Standard error response envelope for API non-2xx responses.
|
|
7868
|
+
*/
|
|
7869
|
+
interface FinaticError {
|
|
7870
|
+
/**
|
|
7871
|
+
* Error details including type, code, message, and trace_id. Shape: { type: FinaticErrorType, code: string, message: string, trace_id: string, details?: any, fields?: FinaticErrorField[] }
|
|
7872
|
+
*/
|
|
7873
|
+
'error': {
|
|
7874
|
+
[key: string]: any;
|
|
7875
|
+
};
|
|
7876
|
+
'meta'?: {
|
|
7877
|
+
[key: string]: any;
|
|
7878
|
+
} | null;
|
|
7879
|
+
}
|
|
7880
|
+
|
|
7881
|
+
export { AccountStatus, ApiError, BrokerDataAccountTypeEnum, BrokerDataAssetTypeEnum, BrokerDataOrderSideEnum, BrokerDataPositionStatusEnum, BrokersApi, BrokersApiAxiosParamCreator, BrokersApiFactory, BrokersApiFp, BrokersWrapper, CompanyApi, CompanyApiAxiosParamCreator, CompanyApiFactory, CompanyApiFp, CompanyWrapper, Configuration, EventEmitter, FDXAccountStatus, FDXAccountType, FDXAssetType, FDXBalanceType, FDXOrderClass, FDXOrderEventType, FDXOrderGroupType, FDXOrderSide, FDXOrderStatus, FDXOrderType, FDXPositionSide, FDXPositionStatus, FDXSecurityIdType, FDXTimeInForce, FinaticConnect, FinaticError$1 as FinaticError, PaginatedData, SessionApi, SessionApiAxiosParamCreator, SessionApiFactory, SessionApiFp, SessionStatus, SessionWrapper, ValidationError, addErrorInterceptor, addRequestInterceptor, addResponseInterceptor, appendBrokerFilterToURL, appendThemeToURL, applyErrorInterceptors, applyRequestInterceptors, applyResponseInterceptors, coerceEnumValue, convertToPlainObject, defaultConfig, generateCacheKey, generateRequestId, getCache, getConfig, getLogger, handleError, numberSchema, retryApiCall, stringSchema, unwrapAxiosResponse, validateParams };
|
|
7882
|
+
export type { Accounttype, ValidationError$1 as ApiValidationError, Assettype, Availablebalance, Availabletowithdraw, Averagebuyprice, Averagefillprice, Averagesellprice, Balancetype, BrokerInfo, BrokersApiDisconnectCompanyFromBrokerApiV1BrokersDisconnectCompanyConnectionIdDeleteRequest, BrokersApiGetAccountsApiV1BrokersDataAccountsGetRequest, BrokersApiGetBalancesApiV1BrokersDataBalancesGetRequest, BrokersApiGetOrderEventsApiV1BrokersDataOrdersOrderIdEventsGetRequest, BrokersApiGetOrderFillsApiV1BrokersDataOrdersOrderIdFillsGetRequest, BrokersApiGetOrderGroupsApiV1BrokersDataOrdersGroupsGetRequest, BrokersApiGetOrdersApiV1BrokersDataOrdersGetRequest, BrokersApiGetPositionLotFillsApiV1BrokersDataPositionsLotsLotIdFillsGetRequest, BrokersApiGetPositionLotsApiV1BrokersDataPositionsLotsGetRequest, BrokersApiGetPositionsApiV1BrokersDataPositionsGetRequest, BrokersApiInterface, Buyingpower, Cashbalance, Closedquantity, Closepriceavg, Commission, Commissionshare, CompanyApiGetCompanyApiV1CompanyCompanyIdGet0Request, CompanyApiGetCompanyApiV1CompanyCompanyIdGetRequest, CompanyApiInterface, CompanyResponse, ConfigurationParameters, Costbasis, Costbasis1, Costbasiswithcommission, Costbasiswithcommission1, Currentbalance, Currentprice, DisconnectActionResult, ErrorInterceptor, Eventtype, FDXBrokerAccount, FDXBrokerBalance, FDXBrokerOrder, FDXBrokerOrderEvent, FDXBrokerOrderFill, FDXBrokerOrderGroup, FDXBrokerPosition, FDXBrokerPositionLot, FDXBrokerPositionLotFill, FDXOrderGroupOrder, FDXOrderLeg, Filledquantity, Fillprice, Fillquantity, FinaticConnectOptions, FinaticError as FinaticErrorInterface, FinaticResponse$3 as FinaticResponse, FinaticResponseCompanyResponse, FinaticResponseDisconnectActionResult, FinaticResponseListBrokerInfo, FinaticResponseListFDXBrokerAccount, FinaticResponseListFDXBrokerBalance, FinaticResponseListFDXBrokerOrder, FinaticResponseListFDXBrokerOrderEvent, FinaticResponseListFDXBrokerOrderFill, FinaticResponseListFDXBrokerOrderGroup, FinaticResponseListFDXBrokerPosition, FinaticResponseListFDXBrokerPositionLot, FinaticResponseListFDXBrokerPositionLotFill, FinaticResponseListUserBrokerConnectionWithPermissions, FinaticResponsePortalUrlResponse, FinaticResponseSessionResponseData, FinaticResponseSessionUserResponse, FinaticResponseTokenResponseData, Futureunderlyingassettype, Grouptype, HTTPValidationError, Initialmargin, InterceptorChain, Limitprice, LogLevel, Logger, Maintenancemargin, Marketvalue, Netliquidationvalue, Openprice, Openquantity, Orderclass, Orderstatus, Ordertype, PaginationMeta, ParsedFinaticError, Pendingbalance, PortalUrlResponse, Previousstatus, Price, Quantity, Quantity1, Quantity2, Realizedprofitloss, Realizedprofitloss1, Realizedprofitlosspercent, Realizedprofitlosswithcommission, Realizedprofitlosswithcommission1, Remainingquantity, Remainingquantity1, RequestInterceptor, ResponseInterceptor, RetryOptions, SdkConfig, Securityidtype, SessionApiGetPortalUrlApiV1SessionPortalGetRequest, SessionApiGetSessionUserApiV1SessionSessionIdUserGetRequest, SessionApiInitSessionApiV1SessionInitPostRequest, SessionApiInterface, SessionApiStartSessionApiV1SessionStartPostRequest, SessionResponseData, SessionStartRequest, SessionUserResponse, Side, Side1, Side2, Side3, Status, Status1, Stopprice, Strikeprice, SuccessPayloadCompanyResponse, SuccessPayloadDisconnectActionResult, SuccessPayloadListBrokerInfo, SuccessPayloadListFDXBrokerAccount, SuccessPayloadListFDXBrokerBalance, SuccessPayloadListFDXBrokerOrder, SuccessPayloadListFDXBrokerOrderEvent, SuccessPayloadListFDXBrokerOrderFill, SuccessPayloadListFDXBrokerOrderGroup, SuccessPayloadListFDXBrokerPosition, SuccessPayloadListFDXBrokerPositionLot, SuccessPayloadListFDXBrokerPositionLotFill, SuccessPayloadListUserBrokerConnectionWithPermissions, SuccessPayloadPortalUrlResponse, SuccessPayloadSessionResponseData, SuccessPayloadSessionUserResponse, SuccessPayloadTokenResponseData, Timeinforce, TokenResponseData, Totalcashvalue, Totalrealizedpnl, Units, Unrealizedprofitloss, Unrealizedprofitlosspercent, UserBrokerConnectionWithPermissions, ValidationErrorLocInner };
|