@finatic/client 0.9.1 → 0.9.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +243 -47
- package/dist/index.d.ts +497 -180
- package/dist/index.js +1023 -465
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1023 -466
- package/dist/index.mjs.map +1 -1
- package/package.json +16 -16
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import * as axios from 'axios';
|
|
2
2
|
import { AxiosInstance, RawAxiosRequestConfig, AxiosPromise, AxiosRequestConfig, AxiosResponse } from 'axios';
|
|
3
3
|
import * as z from 'zod';
|
|
4
|
-
import NodeCache from 'node-cache';
|
|
5
4
|
|
|
6
5
|
/**
|
|
7
6
|
* Finatic FastAPI Backend
|
|
@@ -800,7 +799,7 @@ interface Accountstatus {
|
|
|
800
799
|
* FDX-style broker account schema following FDX Account patterns. Extends FDX Account schema with broker-specific fields.
|
|
801
800
|
*/
|
|
802
801
|
interface FDXBrokerAccount {
|
|
803
|
-
'
|
|
802
|
+
'id'?: string | null;
|
|
804
803
|
/**
|
|
805
804
|
* Broker-provided account identifier
|
|
806
805
|
*/
|
|
@@ -819,7 +818,8 @@ interface FDXBrokerAccount {
|
|
|
819
818
|
'institutionId'?: string | null;
|
|
820
819
|
'currencyCode'?: string | null;
|
|
821
820
|
'accountStatus'?: Accountstatus | null;
|
|
822
|
-
'
|
|
821
|
+
'subAccountType'?: string | null;
|
|
822
|
+
'accountClassification'?: string | null;
|
|
823
823
|
/**
|
|
824
824
|
* User-broker connection UUID
|
|
825
825
|
*/
|
|
@@ -1753,11 +1753,7 @@ interface Unrealizedprofitlosspercent {
|
|
|
1753
1753
|
* FDX-style broker position schema. Based on FDX Holdings, significantly extended for trading: - Short positions - Realized/unrealized P&L - Position lifecycle - Commission tracking
|
|
1754
1754
|
*/
|
|
1755
1755
|
interface FDXBrokerPosition {
|
|
1756
|
-
'
|
|
1757
|
-
/**
|
|
1758
|
-
* Position identifier
|
|
1759
|
-
*/
|
|
1760
|
-
'positionId': string;
|
|
1756
|
+
'id'?: string | null;
|
|
1761
1757
|
/**
|
|
1762
1758
|
* Broker account identifier
|
|
1763
1759
|
*/
|
|
@@ -4375,12 +4371,11 @@ declare const defaultConfig: SdkConfig;
|
|
|
4375
4371
|
declare function getConfig(overrides?: Partial<SdkConfig>): SdkConfig;
|
|
4376
4372
|
|
|
4377
4373
|
/**
|
|
4378
|
-
* Structured logger utility with browser-safe
|
|
4374
|
+
* Structured logger utility with browser-safe console logging (Phase 2C).
|
|
4379
4375
|
*
|
|
4380
4376
|
* Generated - do not edit directly.
|
|
4381
4377
|
*
|
|
4382
|
-
* This logger
|
|
4383
|
-
* in browser environments (Vite, Next.js, etc.).
|
|
4378
|
+
* This logger uses browser console APIs for all logging in browser environments.
|
|
4384
4379
|
*/
|
|
4385
4380
|
|
|
4386
4381
|
type LogLevel = 'debug' | 'info' | 'warn' | 'error' | 'silent';
|
|
@@ -4395,6 +4390,155 @@ interface Logger {
|
|
|
4395
4390
|
*/
|
|
4396
4391
|
declare function getLogger(config?: SdkConfig): Logger;
|
|
4397
4392
|
|
|
4393
|
+
/**
|
|
4394
|
+
* Pagination utilities for TypeScript SDK.
|
|
4395
|
+
*
|
|
4396
|
+
* Provides PaginatedData class for wrapping paginated responses with helper methods.
|
|
4397
|
+
*/
|
|
4398
|
+
/**
|
|
4399
|
+
* Standard FinaticResponse type for all API responses.
|
|
4400
|
+
*
|
|
4401
|
+
* This matches the FinaticResponse interface defined in wrapper files.
|
|
4402
|
+
*/
|
|
4403
|
+
interface FinaticResponse$3<T> {
|
|
4404
|
+
'_id'?: string;
|
|
4405
|
+
/**
|
|
4406
|
+
* Success payload containing data and optional meta
|
|
4407
|
+
*/
|
|
4408
|
+
'success': {
|
|
4409
|
+
'data': T;
|
|
4410
|
+
'meta'?: {
|
|
4411
|
+
[key: string]: any;
|
|
4412
|
+
} | null;
|
|
4413
|
+
};
|
|
4414
|
+
'error'?: {
|
|
4415
|
+
[key: string]: any;
|
|
4416
|
+
} | null;
|
|
4417
|
+
'warning'?: Array<{
|
|
4418
|
+
[key: string]: any;
|
|
4419
|
+
}> | null;
|
|
4420
|
+
}
|
|
4421
|
+
interface PaginationMeta {
|
|
4422
|
+
has_more: boolean;
|
|
4423
|
+
next_offset: number | null;
|
|
4424
|
+
current_offset: number;
|
|
4425
|
+
limit: number;
|
|
4426
|
+
}
|
|
4427
|
+
/**
|
|
4428
|
+
* PaginatedData wraps a data array with pagination metadata and helper methods.
|
|
4429
|
+
*
|
|
4430
|
+
* This class behaves like an array, so you can use it directly:
|
|
4431
|
+
* - paginatedData.length returns the number of items
|
|
4432
|
+
* - paginatedData[0] returns the first item
|
|
4433
|
+
* - paginatedData.forEach(...) works directly
|
|
4434
|
+
* - paginatedData.map(...) works directly
|
|
4435
|
+
*
|
|
4436
|
+
* It also provides pagination methods:
|
|
4437
|
+
* - hasMore: Check if there are more pages
|
|
4438
|
+
* - nextPage(): Get the next page
|
|
4439
|
+
* - prevPage(): Get the previous page
|
|
4440
|
+
* - firstPage(): Get the first page
|
|
4441
|
+
* - lastPage(): Get the last page
|
|
4442
|
+
*
|
|
4443
|
+
* @template T - The element type (e.g., FDXBrokerAccount)
|
|
4444
|
+
*
|
|
4445
|
+
* Usage:
|
|
4446
|
+
* ```typescript
|
|
4447
|
+
* const response = await sdk.getAccounts();
|
|
4448
|
+
* const accounts = response.success.data; // Can use directly as array!
|
|
4449
|
+
* console.log(accounts.length); // Works directly
|
|
4450
|
+
* console.log(accounts[0]); // Works directly
|
|
4451
|
+
* accounts.forEach(account => console.log(account)); // Works directly
|
|
4452
|
+
*
|
|
4453
|
+
* if (accounts.hasMore) {
|
|
4454
|
+
* const nextPage = await accounts.nextPage(); // Returns PaginatedData<FDXBrokerAccount>
|
|
4455
|
+
* const nextAccounts = nextPage; // Can use directly as array too!
|
|
4456
|
+
* }
|
|
4457
|
+
* ```
|
|
4458
|
+
*/
|
|
4459
|
+
declare class PaginatedData<T> {
|
|
4460
|
+
items: T[];
|
|
4461
|
+
private meta;
|
|
4462
|
+
private originalMethod;
|
|
4463
|
+
private currentParams;
|
|
4464
|
+
private wrapperInstance;
|
|
4465
|
+
constructor(items: T[], // The actual data array
|
|
4466
|
+
meta: PaginationMeta, originalMethod: (params?: any) => Promise<any>, currentParams: any, wrapperInstance: any);
|
|
4467
|
+
/**
|
|
4468
|
+
* Get the number of items (allows paginatedData.length).
|
|
4469
|
+
*/
|
|
4470
|
+
get length(): number;
|
|
4471
|
+
/**
|
|
4472
|
+
* Check if there are more pages available.
|
|
4473
|
+
*/
|
|
4474
|
+
get hasMore(): boolean;
|
|
4475
|
+
/**
|
|
4476
|
+
* Calls a function for each element in the array.
|
|
4477
|
+
*/
|
|
4478
|
+
forEach(callbackfn: (value: T, index: number, array: T[]) => void, thisArg?: any): void;
|
|
4479
|
+
/**
|
|
4480
|
+
* Creates a new array with the results of calling a function for every array element.
|
|
4481
|
+
*/
|
|
4482
|
+
map<U>(callbackfn: (value: T, index: number, array: T[]) => U, thisArg?: any): U[];
|
|
4483
|
+
/**
|
|
4484
|
+
* Returns the elements of an array that meet the condition specified in a callback function.
|
|
4485
|
+
*/
|
|
4486
|
+
filter(callbackfn: (value: T, index: number, array: T[]) => boolean, thisArg?: any): T[];
|
|
4487
|
+
/**
|
|
4488
|
+
* Returns the value of the first element in the array where predicate is true.
|
|
4489
|
+
*/
|
|
4490
|
+
find(predicate: (value: T, index: number, obj: T[]) => boolean, thisArg?: any): T | undefined;
|
|
4491
|
+
/**
|
|
4492
|
+
* Returns the index of the first element in the array where predicate is true.
|
|
4493
|
+
*/
|
|
4494
|
+
findIndex(predicate: (value: T, index: number, obj: T[]) => boolean, thisArg?: any): number;
|
|
4495
|
+
/**
|
|
4496
|
+
* Returns a section of an array.
|
|
4497
|
+
*/
|
|
4498
|
+
slice(start?: number, end?: number): T[];
|
|
4499
|
+
/**
|
|
4500
|
+
* Determines whether an array includes a certain element.
|
|
4501
|
+
*/
|
|
4502
|
+
includes(searchElement: T, fromIndex?: number): boolean;
|
|
4503
|
+
/**
|
|
4504
|
+
* Returns the index of the first occurrence of a value in an array.
|
|
4505
|
+
*/
|
|
4506
|
+
indexOf(searchElement: T, fromIndex?: number): number;
|
|
4507
|
+
/**
|
|
4508
|
+
* Returns a string representation of an array.
|
|
4509
|
+
*/
|
|
4510
|
+
toString(): string;
|
|
4511
|
+
/**
|
|
4512
|
+
* Returns a string representation of an array.
|
|
4513
|
+
*/
|
|
4514
|
+
toLocaleString(): string;
|
|
4515
|
+
/**
|
|
4516
|
+
* Get the next page of data.
|
|
4517
|
+
* @returns Promise<PaginatedData<T>> - The next page (not wrapped in FinaticResponse)
|
|
4518
|
+
* @throws Error if no more pages are available
|
|
4519
|
+
*/
|
|
4520
|
+
nextPage(): Promise<PaginatedData<T>>;
|
|
4521
|
+
/**
|
|
4522
|
+
* Get the previous page of data.
|
|
4523
|
+
* @returns Promise<PaginatedData<T>> - The previous page (not wrapped in FinaticResponse)
|
|
4524
|
+
* @throws Error if fetch fails
|
|
4525
|
+
*/
|
|
4526
|
+
prevPage(): Promise<PaginatedData<T>>;
|
|
4527
|
+
/**
|
|
4528
|
+
* Get the first page of data.
|
|
4529
|
+
* @returns Promise<PaginatedData<T>> - The first page (not wrapped in FinaticResponse)
|
|
4530
|
+
* @throws Error if fetch fails
|
|
4531
|
+
*/
|
|
4532
|
+
firstPage(): Promise<PaginatedData<T>>;
|
|
4533
|
+
/**
|
|
4534
|
+
* Get the last page of data.
|
|
4535
|
+
* Uses iterative approach to find the last page.
|
|
4536
|
+
* @returns Promise<PaginatedData<T>> - The last page (not wrapped in FinaticResponse)
|
|
4537
|
+
* @throws Error if fetch fails
|
|
4538
|
+
*/
|
|
4539
|
+
lastPage(): Promise<PaginatedData<T>>;
|
|
4540
|
+
}
|
|
4541
|
+
|
|
4398
4542
|
/**
|
|
4399
4543
|
* Generated wrapper functions for brokers operations (Phase 2A).
|
|
4400
4544
|
*
|
|
@@ -4425,91 +4569,164 @@ interface FinaticResponse$2<T> {
|
|
|
4425
4569
|
[key: string]: any;
|
|
4426
4570
|
}> | null;
|
|
4427
4571
|
}
|
|
4572
|
+
interface DisconnectCompanyFromBrokerParams$1 {
|
|
4573
|
+
/** Connection ID */
|
|
4574
|
+
connectionId: string;
|
|
4575
|
+
}
|
|
4428
4576
|
interface GetOrdersParams {
|
|
4577
|
+
/** Filter by broker ID */
|
|
4429
4578
|
brokerId?: string;
|
|
4579
|
+
/** Filter by connection ID */
|
|
4430
4580
|
connectionId?: string;
|
|
4581
|
+
/** Filter by broker provided account ID */
|
|
4431
4582
|
accountId?: string;
|
|
4583
|
+
/** Filter by symbol */
|
|
4432
4584
|
symbol?: string;
|
|
4585
|
+
/** Filter by order status (e.g., 'filled', 'pending_new', 'cancelled') */
|
|
4433
4586
|
orderStatus?: BrokerDataOrderStatusEnum;
|
|
4587
|
+
/** Filter by order side (e.g., 'buy', 'sell') */
|
|
4434
4588
|
side?: BrokerDataOrderSideEnum;
|
|
4589
|
+
/** Filter by asset type (e.g., 'stock', 'option', 'crypto', 'future') */
|
|
4435
4590
|
assetType?: BrokerDataAssetTypeEnum;
|
|
4591
|
+
/** Maximum number of orders to return */
|
|
4436
4592
|
limit?: number;
|
|
4593
|
+
/** Number of orders to skip for pagination */
|
|
4437
4594
|
offset?: number;
|
|
4595
|
+
/** Filter orders created after this timestamp */
|
|
4438
4596
|
createdAfter?: string;
|
|
4597
|
+
/** Filter orders created before this timestamp */
|
|
4439
4598
|
createdBefore?: string;
|
|
4599
|
+
/** Include order metadata in response (excluded by default for FDX compliance) */
|
|
4440
4600
|
includeMetadata?: boolean;
|
|
4441
4601
|
}
|
|
4442
4602
|
interface GetPositionsParams {
|
|
4603
|
+
/** Filter by broker ID */
|
|
4443
4604
|
brokerId?: string;
|
|
4605
|
+
/** Filter by connection ID */
|
|
4444
4606
|
connectionId?: string;
|
|
4607
|
+
/** Filter by broker provided account ID */
|
|
4445
4608
|
accountId?: string;
|
|
4609
|
+
/** Filter by symbol */
|
|
4446
4610
|
symbol?: string;
|
|
4611
|
+
/** Filter by position side (e.g., 'long', 'short') */
|
|
4447
4612
|
side?: BrokerDataOrderSideEnum;
|
|
4613
|
+
/** Filter by asset type (e.g., 'stock', 'option', 'crypto', 'future') */
|
|
4448
4614
|
assetType?: BrokerDataAssetTypeEnum;
|
|
4615
|
+
/** Filter by position status: 'open' (quantity > 0) or 'closed' (quantity = 0) */
|
|
4449
4616
|
positionStatus?: BrokerDataPositionStatusEnum;
|
|
4617
|
+
/** Maximum number of positions to return */
|
|
4450
4618
|
limit?: number;
|
|
4619
|
+
/** Number of positions to skip for pagination */
|
|
4451
4620
|
offset?: number;
|
|
4621
|
+
/** Filter positions updated after this timestamp */
|
|
4452
4622
|
updatedAfter?: string;
|
|
4623
|
+
/** Filter positions updated before this timestamp */
|
|
4453
4624
|
updatedBefore?: string;
|
|
4625
|
+
/** Include position metadata in response (excluded by default for FDX compliance) */
|
|
4454
4626
|
includeMetadata?: boolean;
|
|
4455
4627
|
}
|
|
4456
4628
|
interface GetBalancesParams {
|
|
4629
|
+
/** Filter by broker ID */
|
|
4457
4630
|
brokerId?: string;
|
|
4631
|
+
/** Filter by connection ID */
|
|
4458
4632
|
connectionId?: string;
|
|
4633
|
+
/** Filter by broker provided account ID */
|
|
4459
4634
|
accountId?: string;
|
|
4635
|
+
/** Filter by end-of-day snapshot status (true/false) */
|
|
4460
4636
|
isEndOfDaySnapshot?: boolean;
|
|
4637
|
+
/** Maximum number of balances to return */
|
|
4461
4638
|
limit?: number;
|
|
4639
|
+
/** Number of balances to skip for pagination */
|
|
4462
4640
|
offset?: number;
|
|
4641
|
+
/** Filter balances created after this timestamp */
|
|
4463
4642
|
balanceCreatedAfter?: string;
|
|
4643
|
+
/** Filter balances created before this timestamp */
|
|
4464
4644
|
balanceCreatedBefore?: string;
|
|
4645
|
+
/** Include balance metadata in response (excluded by default for FDX compliance) */
|
|
4465
4646
|
includeMetadata?: boolean;
|
|
4466
4647
|
}
|
|
4467
4648
|
interface GetAccountsParams {
|
|
4649
|
+
/** Filter by broker ID */
|
|
4468
4650
|
brokerId?: string;
|
|
4651
|
+
/** Filter by connection ID */
|
|
4469
4652
|
connectionId?: string;
|
|
4653
|
+
/** Filter by account type (e.g., 'margin', 'cash', 'crypto_wallet', 'live', 'sim') */
|
|
4470
4654
|
accountType?: BrokerDataAccountTypeEnum;
|
|
4655
|
+
/** Filter by account status (e.g., 'active', 'inactive') */
|
|
4471
4656
|
status?: AccountStatus;
|
|
4657
|
+
/** Filter by currency (e.g., 'USD', 'EUR') */
|
|
4472
4658
|
currency?: string;
|
|
4659
|
+
/** Maximum number of accounts to return */
|
|
4473
4660
|
limit?: number;
|
|
4661
|
+
/** Number of accounts to skip for pagination */
|
|
4474
4662
|
offset?: number;
|
|
4663
|
+
/** Include connection metadata in response (excluded by default for FDX compliance) */
|
|
4475
4664
|
includeMetadata?: boolean;
|
|
4476
4665
|
}
|
|
4477
4666
|
interface GetOrderFillsParams {
|
|
4667
|
+
/** Order ID */
|
|
4478
4668
|
orderId: string;
|
|
4669
|
+
/** Filter by connection ID */
|
|
4479
4670
|
connectionId?: string;
|
|
4671
|
+
/** Maximum number of fills to return */
|
|
4480
4672
|
limit?: number;
|
|
4673
|
+
/** Number of fills to skip for pagination */
|
|
4481
4674
|
offset?: number;
|
|
4675
|
+
/** Include fill metadata in response (excluded by default for FDX compliance) */
|
|
4482
4676
|
includeMetadata?: boolean;
|
|
4483
4677
|
}
|
|
4484
4678
|
interface GetOrderEventsParams {
|
|
4679
|
+
/** Order ID */
|
|
4485
4680
|
orderId: string;
|
|
4681
|
+
/** Filter by connection ID */
|
|
4486
4682
|
connectionId?: string;
|
|
4683
|
+
/** Maximum number of events to return */
|
|
4487
4684
|
limit?: number;
|
|
4685
|
+
/** Number of events to skip for pagination */
|
|
4488
4686
|
offset?: number;
|
|
4687
|
+
/** Include event metadata in response (excluded by default for FDX compliance) */
|
|
4489
4688
|
includeMetadata?: boolean;
|
|
4490
4689
|
}
|
|
4491
4690
|
interface GetOrderGroupsParams {
|
|
4691
|
+
/** Filter by broker ID */
|
|
4492
4692
|
brokerId?: string;
|
|
4693
|
+
/** Filter by connection ID */
|
|
4493
4694
|
connectionId?: string;
|
|
4695
|
+
/** Maximum number of order groups to return */
|
|
4494
4696
|
limit?: number;
|
|
4697
|
+
/** Number of order groups to skip for pagination */
|
|
4495
4698
|
offset?: number;
|
|
4699
|
+
/** Filter order groups created after this timestamp */
|
|
4496
4700
|
createdAfter?: string;
|
|
4701
|
+
/** Filter order groups created before this timestamp */
|
|
4497
4702
|
createdBefore?: string;
|
|
4703
|
+
/** Include group metadata in response (excluded by default for FDX compliance) */
|
|
4498
4704
|
includeMetadata?: boolean;
|
|
4499
4705
|
}
|
|
4500
4706
|
interface GetPositionLotsParams {
|
|
4707
|
+
/** Filter by broker ID */
|
|
4501
4708
|
brokerId?: string;
|
|
4709
|
+
/** Filter by connection ID */
|
|
4502
4710
|
connectionId?: string;
|
|
4711
|
+
/** Filter by broker provided account ID */
|
|
4503
4712
|
accountId?: string;
|
|
4713
|
+
/** Filter by symbol */
|
|
4504
4714
|
symbol?: string;
|
|
4715
|
+
/** Filter by position ID */
|
|
4505
4716
|
positionId?: string;
|
|
4717
|
+
/** Maximum number of position lots to return */
|
|
4506
4718
|
limit?: number;
|
|
4719
|
+
/** Number of position lots to skip for pagination */
|
|
4507
4720
|
offset?: number;
|
|
4508
4721
|
}
|
|
4509
4722
|
interface GetPositionLotFillsParams {
|
|
4723
|
+
/** Position lot ID */
|
|
4510
4724
|
lotId: string;
|
|
4725
|
+
/** Filter by connection ID */
|
|
4511
4726
|
connectionId?: string;
|
|
4727
|
+
/** Maximum number of fills to return */
|
|
4512
4728
|
limit?: number;
|
|
4729
|
+
/** Number of fills to skip for pagination */
|
|
4513
4730
|
offset?: number;
|
|
4514
4731
|
}
|
|
4515
4732
|
/**
|
|
@@ -4541,7 +4758,7 @@ declare class BrokersWrapper {
|
|
|
4541
4758
|
* -------
|
|
4542
4759
|
* FinaticResponse[list[BrokerInfo]]
|
|
4543
4760
|
* list of available brokers with their metadata.
|
|
4544
|
-
* @param No parameters required for this method
|
|
4761
|
+
* @param params No parameters required for this method
|
|
4545
4762
|
* @returns {Promise<FinaticResponse<BrokerInfo[]>>} Standard response with success/Error/Warning structure
|
|
4546
4763
|
*
|
|
4547
4764
|
* Generated from: GET /api/v1/brokers/
|
|
@@ -4550,7 +4767,7 @@ declare class BrokersWrapper {
|
|
|
4550
4767
|
* @example
|
|
4551
4768
|
* ```typescript-client
|
|
4552
4769
|
* // Example with no parameters
|
|
4553
|
-
* const result = await finatic.getBrokers();
|
|
4770
|
+
* const result = await finatic.getBrokers({});
|
|
4554
4771
|
*
|
|
4555
4772
|
* // Access the response data
|
|
4556
4773
|
* if (result.success) {
|
|
@@ -4558,7 +4775,7 @@ declare class BrokersWrapper {
|
|
|
4558
4775
|
* }
|
|
4559
4776
|
* ```
|
|
4560
4777
|
*/
|
|
4561
|
-
getBrokers(): Promise<FinaticResponse$2<BrokerInfo[]>>;
|
|
4778
|
+
getBrokers(params?: {}): Promise<FinaticResponse$2<BrokerInfo[]>>;
|
|
4562
4779
|
/**
|
|
4563
4780
|
* List Broker Connections
|
|
4564
4781
|
*
|
|
@@ -4567,7 +4784,7 @@ declare class BrokersWrapper {
|
|
|
4567
4784
|
* This endpoint is accessible from the portal and uses session-only authentication.
|
|
4568
4785
|
* Returns connections that the user has any permissions for, including the current
|
|
4569
4786
|
* company's permissions (read/write) for each connection.
|
|
4570
|
-
* @param No parameters required for this method
|
|
4787
|
+
* @param params No parameters required for this method
|
|
4571
4788
|
* @returns {Promise<FinaticResponse<UserBrokerConnectionWithPermissions[]>>} Standard response with success/Error/Warning structure
|
|
4572
4789
|
*
|
|
4573
4790
|
* Generated from: GET /api/v1/brokers/connections
|
|
@@ -4576,7 +4793,7 @@ declare class BrokersWrapper {
|
|
|
4576
4793
|
* @example
|
|
4577
4794
|
* ```typescript-client
|
|
4578
4795
|
* // Example with no parameters
|
|
4579
|
-
* const result = await finatic.getBrokerConnections();
|
|
4796
|
+
* const result = await finatic.getBrokerConnections({});
|
|
4580
4797
|
*
|
|
4581
4798
|
* // Access the response data
|
|
4582
4799
|
* if (result.success) {
|
|
@@ -4584,7 +4801,7 @@ declare class BrokersWrapper {
|
|
|
4584
4801
|
* }
|
|
4585
4802
|
* ```
|
|
4586
4803
|
*/
|
|
4587
|
-
getBrokerConnections(): Promise<FinaticResponse$2<UserBrokerConnectionWithPermissions[]>>;
|
|
4804
|
+
getBrokerConnections(params?: {}): Promise<FinaticResponse$2<UserBrokerConnectionWithPermissions[]>>;
|
|
4588
4805
|
/**
|
|
4589
4806
|
* Disconnect Company From Broker
|
|
4590
4807
|
*
|
|
@@ -4592,7 +4809,7 @@ declare class BrokersWrapper {
|
|
|
4592
4809
|
*
|
|
4593
4810
|
* If the company is the only one with access, the entire connection is deleted.
|
|
4594
4811
|
* If other companies have access, only the company's access is removed.
|
|
4595
|
-
* @param connectionId {string}
|
|
4812
|
+
* @param params.connectionId {string} Connection ID
|
|
4596
4813
|
* @returns {Promise<FinaticResponse<DisconnectActionResult>>} Standard response with success/Error/Warning structure
|
|
4597
4814
|
*
|
|
4598
4815
|
* Generated from: DELETE /api/v1/brokers/disconnect-company/{connection_id}
|
|
@@ -4601,7 +4818,9 @@ declare class BrokersWrapper {
|
|
|
4601
4818
|
* @example
|
|
4602
4819
|
* ```typescript-client
|
|
4603
4820
|
* // Minimal example with required parameters only
|
|
4604
|
-
* const result = await finatic.disconnectCompanyFromBroker(
|
|
4821
|
+
* const result = await finatic.disconnectCompanyFromBroker({
|
|
4822
|
+
connectionId: '00000000-0000-0000-0000-000000000000'
|
|
4823
|
+
* });
|
|
4605
4824
|
*
|
|
4606
4825
|
* // Access the response data
|
|
4607
4826
|
* if (result.success) {
|
|
@@ -4611,7 +4830,7 @@ declare class BrokersWrapper {
|
|
|
4611
4830
|
* }
|
|
4612
4831
|
* ```
|
|
4613
4832
|
*/
|
|
4614
|
-
disconnectCompanyFromBroker(
|
|
4833
|
+
disconnectCompanyFromBroker(params: DisconnectCompanyFromBrokerParams$1): Promise<FinaticResponse$2<DisconnectActionResult>>;
|
|
4615
4834
|
/**
|
|
4616
4835
|
* Get Orders
|
|
4617
4836
|
*
|
|
@@ -4619,19 +4838,19 @@ declare class BrokersWrapper {
|
|
|
4619
4838
|
*
|
|
4620
4839
|
* This endpoint is accessible from the portal and uses session-only authentication.
|
|
4621
4840
|
* Returns orders from connections the company has read access to.
|
|
4622
|
-
* @param brokerId {string} (optional)
|
|
4623
|
-
* @param connectionId {string} (optional)
|
|
4624
|
-
* @param accountId {string} (optional)
|
|
4625
|
-
* @param symbol {string} (optional)
|
|
4626
|
-
* @param orderStatus {BrokerDataOrderStatusEnum} (optional)
|
|
4627
|
-
* @param side {BrokerDataOrderSideEnum} (optional)
|
|
4628
|
-
* @param assetType {BrokerDataAssetTypeEnum} (optional)
|
|
4629
|
-
* @param limit {number} (optional)
|
|
4630
|
-
* @param offset {number} (optional)
|
|
4631
|
-
* @param createdAfter {string} (optional)
|
|
4632
|
-
* @param createdBefore {string} (optional)
|
|
4633
|
-
* @param includeMetadata {boolean} (optional)
|
|
4634
|
-
* @returns {Promise<FinaticResponse<FDXBrokerOrder
|
|
4841
|
+
* @param params.brokerId {string} (optional) Filter by broker ID
|
|
4842
|
+
* @param params.connectionId {string} (optional) Filter by connection ID
|
|
4843
|
+
* @param params.accountId {string} (optional) Filter by broker provided account ID
|
|
4844
|
+
* @param params.symbol {string} (optional) Filter by symbol
|
|
4845
|
+
* @param params.orderStatus {BrokerDataOrderStatusEnum} (optional) Filter by order status (e.g., 'filled', 'pending_new', 'cancelled')
|
|
4846
|
+
* @param params.side {BrokerDataOrderSideEnum} (optional) Filter by order side (e.g., 'buy', 'sell')
|
|
4847
|
+
* @param params.assetType {BrokerDataAssetTypeEnum} (optional) Filter by asset type (e.g., 'stock', 'option', 'crypto', 'future')
|
|
4848
|
+
* @param params.limit {number} (optional) Maximum number of orders to return
|
|
4849
|
+
* @param params.offset {number} (optional) Number of orders to skip for pagination
|
|
4850
|
+
* @param params.createdAfter {string} (optional) Filter orders created after this timestamp
|
|
4851
|
+
* @param params.createdBefore {string} (optional) Filter orders created before this timestamp
|
|
4852
|
+
* @param params.includeMetadata {boolean} (optional) Include order metadata in response (excluded by default for FDX compliance)
|
|
4853
|
+
* @returns {Promise<FinaticResponse<PaginatedData<FDXBrokerOrder>>>} Standard response with success/Error/Warning structure
|
|
4635
4854
|
*
|
|
4636
4855
|
* Generated from: GET /api/v1/brokers/data/orders
|
|
4637
4856
|
* @methodId get_orders_api_v1_brokers_data_orders_get
|
|
@@ -4639,7 +4858,7 @@ declare class BrokersWrapper {
|
|
|
4639
4858
|
* @example
|
|
4640
4859
|
* ```typescript-client
|
|
4641
4860
|
* // Example with no parameters
|
|
4642
|
-
* const result = await finatic.getOrders();
|
|
4861
|
+
* const result = await finatic.getOrders({});
|
|
4643
4862
|
*
|
|
4644
4863
|
* // Access the response data
|
|
4645
4864
|
* if (result.success) {
|
|
@@ -4649,7 +4868,11 @@ declare class BrokersWrapper {
|
|
|
4649
4868
|
* @example
|
|
4650
4869
|
* ```typescript-client
|
|
4651
4870
|
* // Full example with optional parameters
|
|
4652
|
-
* const result = await finatic.getOrders(
|
|
4871
|
+
* const result = await finatic.getOrders({
|
|
4872
|
+
brokerId: 'alpaca',
|
|
4873
|
+
connectionId: '00000000-0000-0000-0000-000000000000',
|
|
4874
|
+
accountId: '123456789'
|
|
4875
|
+
* });
|
|
4653
4876
|
*
|
|
4654
4877
|
* // Handle response with warnings
|
|
4655
4878
|
* if (result.success) {
|
|
@@ -4662,7 +4885,7 @@ declare class BrokersWrapper {
|
|
|
4662
4885
|
* }
|
|
4663
4886
|
* ```
|
|
4664
4887
|
*/
|
|
4665
|
-
getOrders(
|
|
4888
|
+
getOrders(params?: GetOrdersParams): Promise<FinaticResponse$2<PaginatedData<FDXBrokerOrder>>>;
|
|
4666
4889
|
/**
|
|
4667
4890
|
* Get Positions
|
|
4668
4891
|
*
|
|
@@ -4670,19 +4893,19 @@ declare class BrokersWrapper {
|
|
|
4670
4893
|
*
|
|
4671
4894
|
* This endpoint is accessible from the portal and uses session-only authentication.
|
|
4672
4895
|
* Returns positions from connections the company has read access to.
|
|
4673
|
-
* @param brokerId {string} (optional)
|
|
4674
|
-
* @param connectionId {string} (optional)
|
|
4675
|
-
* @param accountId {string} (optional)
|
|
4676
|
-
* @param symbol {string} (optional)
|
|
4677
|
-
* @param side {BrokerDataOrderSideEnum} (optional)
|
|
4678
|
-
* @param assetType {BrokerDataAssetTypeEnum} (optional)
|
|
4679
|
-
* @param positionStatus {BrokerDataPositionStatusEnum} (optional)
|
|
4680
|
-
* @param limit {number} (optional)
|
|
4681
|
-
* @param offset {number} (optional)
|
|
4682
|
-
* @param updatedAfter {string} (optional)
|
|
4683
|
-
* @param updatedBefore {string} (optional)
|
|
4684
|
-
* @param includeMetadata {boolean} (optional)
|
|
4685
|
-
* @returns {Promise<FinaticResponse<FDXBrokerPosition
|
|
4896
|
+
* @param params.brokerId {string} (optional) Filter by broker ID
|
|
4897
|
+
* @param params.connectionId {string} (optional) Filter by connection ID
|
|
4898
|
+
* @param params.accountId {string} (optional) Filter by broker provided account ID
|
|
4899
|
+
* @param params.symbol {string} (optional) Filter by symbol
|
|
4900
|
+
* @param params.side {BrokerDataOrderSideEnum} (optional) Filter by position side (e.g., 'long', 'short')
|
|
4901
|
+
* @param params.assetType {BrokerDataAssetTypeEnum} (optional) Filter by asset type (e.g., 'stock', 'option', 'crypto', 'future')
|
|
4902
|
+
* @param params.positionStatus {BrokerDataPositionStatusEnum} (optional) Filter by position status: 'open' (quantity > 0) or 'closed' (quantity = 0)
|
|
4903
|
+
* @param params.limit {number} (optional) Maximum number of positions to return
|
|
4904
|
+
* @param params.offset {number} (optional) Number of positions to skip for pagination
|
|
4905
|
+
* @param params.updatedAfter {string} (optional) Filter positions updated after this timestamp
|
|
4906
|
+
* @param params.updatedBefore {string} (optional) Filter positions updated before this timestamp
|
|
4907
|
+
* @param params.includeMetadata {boolean} (optional) Include position metadata in response (excluded by default for FDX compliance)
|
|
4908
|
+
* @returns {Promise<FinaticResponse<PaginatedData<FDXBrokerPosition>>>} Standard response with success/Error/Warning structure
|
|
4686
4909
|
*
|
|
4687
4910
|
* Generated from: GET /api/v1/brokers/data/positions
|
|
4688
4911
|
* @methodId get_positions_api_v1_brokers_data_positions_get
|
|
@@ -4690,7 +4913,7 @@ declare class BrokersWrapper {
|
|
|
4690
4913
|
* @example
|
|
4691
4914
|
* ```typescript-client
|
|
4692
4915
|
* // Example with no parameters
|
|
4693
|
-
* const result = await finatic.getPositions();
|
|
4916
|
+
* const result = await finatic.getPositions({});
|
|
4694
4917
|
*
|
|
4695
4918
|
* // Access the response data
|
|
4696
4919
|
* if (result.success) {
|
|
@@ -4700,7 +4923,11 @@ declare class BrokersWrapper {
|
|
|
4700
4923
|
* @example
|
|
4701
4924
|
* ```typescript-client
|
|
4702
4925
|
* // Full example with optional parameters
|
|
4703
|
-
* const result = await finatic.getPositions(
|
|
4926
|
+
* const result = await finatic.getPositions({
|
|
4927
|
+
brokerId: 'alpaca',
|
|
4928
|
+
connectionId: '00000000-0000-0000-0000-000000000000',
|
|
4929
|
+
accountId: '123456789'
|
|
4930
|
+
* });
|
|
4704
4931
|
*
|
|
4705
4932
|
* // Handle response with warnings
|
|
4706
4933
|
* if (result.success) {
|
|
@@ -4713,7 +4940,7 @@ declare class BrokersWrapper {
|
|
|
4713
4940
|
* }
|
|
4714
4941
|
* ```
|
|
4715
4942
|
*/
|
|
4716
|
-
getPositions(
|
|
4943
|
+
getPositions(params?: GetPositionsParams): Promise<FinaticResponse$2<PaginatedData<FDXBrokerPosition>>>;
|
|
4717
4944
|
/**
|
|
4718
4945
|
* Get Balances
|
|
4719
4946
|
*
|
|
@@ -4721,16 +4948,16 @@ declare class BrokersWrapper {
|
|
|
4721
4948
|
*
|
|
4722
4949
|
* This endpoint is accessible from the portal and uses session-only authentication.
|
|
4723
4950
|
* Returns balances from connections the company has read access to.
|
|
4724
|
-
* @param brokerId {string} (optional)
|
|
4725
|
-
* @param connectionId {string} (optional)
|
|
4726
|
-
* @param accountId {string} (optional)
|
|
4727
|
-
* @param isEndOfDaySnapshot {boolean} (optional)
|
|
4728
|
-
* @param limit {number} (optional)
|
|
4729
|
-
* @param offset {number} (optional)
|
|
4730
|
-
* @param balanceCreatedAfter {string} (optional)
|
|
4731
|
-
* @param balanceCreatedBefore {string} (optional)
|
|
4732
|
-
* @param includeMetadata {boolean} (optional)
|
|
4733
|
-
* @returns {Promise<FinaticResponse<FDXBrokerBalance
|
|
4951
|
+
* @param params.brokerId {string} (optional) Filter by broker ID
|
|
4952
|
+
* @param params.connectionId {string} (optional) Filter by connection ID
|
|
4953
|
+
* @param params.accountId {string} (optional) Filter by broker provided account ID
|
|
4954
|
+
* @param params.isEndOfDaySnapshot {boolean} (optional) Filter by end-of-day snapshot status (true/false)
|
|
4955
|
+
* @param params.limit {number} (optional) Maximum number of balances to return
|
|
4956
|
+
* @param params.offset {number} (optional) Number of balances to skip for pagination
|
|
4957
|
+
* @param params.balanceCreatedAfter {string} (optional) Filter balances created after this timestamp
|
|
4958
|
+
* @param params.balanceCreatedBefore {string} (optional) Filter balances created before this timestamp
|
|
4959
|
+
* @param params.includeMetadata {boolean} (optional) Include balance metadata in response (excluded by default for FDX compliance)
|
|
4960
|
+
* @returns {Promise<FinaticResponse<PaginatedData<FDXBrokerBalance>>>} Standard response with success/Error/Warning structure
|
|
4734
4961
|
*
|
|
4735
4962
|
* Generated from: GET /api/v1/brokers/data/balances
|
|
4736
4963
|
* @methodId get_balances_api_v1_brokers_data_balances_get
|
|
@@ -4738,7 +4965,7 @@ declare class BrokersWrapper {
|
|
|
4738
4965
|
* @example
|
|
4739
4966
|
* ```typescript-client
|
|
4740
4967
|
* // Example with no parameters
|
|
4741
|
-
* const result = await finatic.getBalances();
|
|
4968
|
+
* const result = await finatic.getBalances({});
|
|
4742
4969
|
*
|
|
4743
4970
|
* // Access the response data
|
|
4744
4971
|
* if (result.success) {
|
|
@@ -4748,7 +4975,11 @@ declare class BrokersWrapper {
|
|
|
4748
4975
|
* @example
|
|
4749
4976
|
* ```typescript-client
|
|
4750
4977
|
* // Full example with optional parameters
|
|
4751
|
-
* const result = await finatic.getBalances(
|
|
4978
|
+
* const result = await finatic.getBalances({
|
|
4979
|
+
brokerId: 'alpaca',
|
|
4980
|
+
connectionId: '00000000-0000-0000-0000-000000000000',
|
|
4981
|
+
accountId: '123456789'
|
|
4982
|
+
* });
|
|
4752
4983
|
*
|
|
4753
4984
|
* // Handle response with warnings
|
|
4754
4985
|
* if (result.success) {
|
|
@@ -4761,7 +4992,7 @@ declare class BrokersWrapper {
|
|
|
4761
4992
|
* }
|
|
4762
4993
|
* ```
|
|
4763
4994
|
*/
|
|
4764
|
-
getBalances(
|
|
4995
|
+
getBalances(params?: GetBalancesParams): Promise<FinaticResponse$2<PaginatedData<FDXBrokerBalance>>>;
|
|
4765
4996
|
/**
|
|
4766
4997
|
* Get Accounts
|
|
4767
4998
|
*
|
|
@@ -4769,15 +5000,15 @@ declare class BrokersWrapper {
|
|
|
4769
5000
|
*
|
|
4770
5001
|
* This endpoint is accessible from the portal and uses session-only authentication.
|
|
4771
5002
|
* Returns accounts from connections the company has read access to.
|
|
4772
|
-
* @param brokerId {string} (optional)
|
|
4773
|
-
* @param connectionId {string} (optional)
|
|
4774
|
-
* @param accountType {BrokerDataAccountTypeEnum} (optional)
|
|
4775
|
-
* @param status {AccountStatus} (optional)
|
|
4776
|
-
* @param currency {string} (optional)
|
|
4777
|
-
* @param limit {number} (optional)
|
|
4778
|
-
* @param offset {number} (optional)
|
|
4779
|
-
* @param includeMetadata {boolean} (optional)
|
|
4780
|
-
* @returns {Promise<FinaticResponse<FDXBrokerAccount
|
|
5003
|
+
* @param params.brokerId {string} (optional) Filter by broker ID
|
|
5004
|
+
* @param params.connectionId {string} (optional) Filter by connection ID
|
|
5005
|
+
* @param params.accountType {BrokerDataAccountTypeEnum} (optional) Filter by account type (e.g., 'margin', 'cash', 'crypto_wallet', 'live', 'sim')
|
|
5006
|
+
* @param params.status {AccountStatus} (optional) Filter by account status (e.g., 'active', 'inactive')
|
|
5007
|
+
* @param params.currency {string} (optional) Filter by currency (e.g., 'USD', 'EUR')
|
|
5008
|
+
* @param params.limit {number} (optional) Maximum number of accounts to return
|
|
5009
|
+
* @param params.offset {number} (optional) Number of accounts to skip for pagination
|
|
5010
|
+
* @param params.includeMetadata {boolean} (optional) Include connection metadata in response (excluded by default for FDX compliance)
|
|
5011
|
+
* @returns {Promise<FinaticResponse<PaginatedData<FDXBrokerAccount>>>} Standard response with success/Error/Warning structure
|
|
4781
5012
|
*
|
|
4782
5013
|
* Generated from: GET /api/v1/brokers/data/accounts
|
|
4783
5014
|
* @methodId get_accounts_api_v1_brokers_data_accounts_get
|
|
@@ -4785,7 +5016,7 @@ declare class BrokersWrapper {
|
|
|
4785
5016
|
* @example
|
|
4786
5017
|
* ```typescript-client
|
|
4787
5018
|
* // Example with no parameters
|
|
4788
|
-
* const result = await finatic.getAccounts();
|
|
5019
|
+
* const result = await finatic.getAccounts({});
|
|
4789
5020
|
*
|
|
4790
5021
|
* // Access the response data
|
|
4791
5022
|
* if (result.success) {
|
|
@@ -4795,7 +5026,11 @@ declare class BrokersWrapper {
|
|
|
4795
5026
|
* @example
|
|
4796
5027
|
* ```typescript-client
|
|
4797
5028
|
* // Full example with optional parameters
|
|
4798
|
-
* const result = await finatic.getAccounts(
|
|
5029
|
+
* const result = await finatic.getAccounts({
|
|
5030
|
+
brokerId: 'alpaca',
|
|
5031
|
+
connectionId: '00000000-0000-0000-0000-000000000000',
|
|
5032
|
+
accountType: 'margin'
|
|
5033
|
+
* });
|
|
4799
5034
|
*
|
|
4800
5035
|
* // Handle response with warnings
|
|
4801
5036
|
* if (result.success) {
|
|
@@ -4808,19 +5043,19 @@ declare class BrokersWrapper {
|
|
|
4808
5043
|
* }
|
|
4809
5044
|
* ```
|
|
4810
5045
|
*/
|
|
4811
|
-
getAccounts(
|
|
5046
|
+
getAccounts(params?: GetAccountsParams): Promise<FinaticResponse$2<PaginatedData<FDXBrokerAccount>>>;
|
|
4812
5047
|
/**
|
|
4813
5048
|
* Get Order Fills
|
|
4814
5049
|
*
|
|
4815
5050
|
* Get order fills for a specific order.
|
|
4816
5051
|
*
|
|
4817
5052
|
* This endpoint returns all execution fills for the specified order.
|
|
4818
|
-
* @param orderId {string}
|
|
4819
|
-
* @param connectionId {string} (optional)
|
|
4820
|
-
* @param limit {number} (optional)
|
|
4821
|
-
* @param offset {number} (optional)
|
|
4822
|
-
* @param includeMetadata {boolean} (optional)
|
|
4823
|
-
* @returns {Promise<FinaticResponse<FDXBrokerOrderFill
|
|
5053
|
+
* @param params.orderId {string} Order ID
|
|
5054
|
+
* @param params.connectionId {string} (optional) Filter by connection ID
|
|
5055
|
+
* @param params.limit {number} (optional) Maximum number of fills to return
|
|
5056
|
+
* @param params.offset {number} (optional) Number of fills to skip for pagination
|
|
5057
|
+
* @param params.includeMetadata {boolean} (optional) Include fill metadata in response (excluded by default for FDX compliance)
|
|
5058
|
+
* @returns {Promise<FinaticResponse<PaginatedData<FDXBrokerOrderFill>>>} Standard response with success/Error/Warning structure
|
|
4824
5059
|
*
|
|
4825
5060
|
* Generated from: GET /api/v1/brokers/data/orders/{order_id}/fills
|
|
4826
5061
|
* @methodId get_order_fills_api_v1_brokers_data_orders__order_id__fills_get
|
|
@@ -4828,7 +5063,9 @@ declare class BrokersWrapper {
|
|
|
4828
5063
|
* @example
|
|
4829
5064
|
* ```typescript-client
|
|
4830
5065
|
* // Minimal example with required parameters only
|
|
4831
|
-
* const result = await finatic.getOrderFills(
|
|
5066
|
+
* const result = await finatic.getOrderFills({
|
|
5067
|
+
orderId: '00000000-0000-0000-0000-000000000000'
|
|
5068
|
+
* });
|
|
4832
5069
|
*
|
|
4833
5070
|
* // Access the response data
|
|
4834
5071
|
* if (result.success) {
|
|
@@ -4840,7 +5077,12 @@ declare class BrokersWrapper {
|
|
|
4840
5077
|
* @example
|
|
4841
5078
|
* ```typescript-client
|
|
4842
5079
|
* // Full example with optional parameters
|
|
4843
|
-
* const result = await finatic.getOrderFills(
|
|
5080
|
+
* const result = await finatic.getOrderFills({
|
|
5081
|
+
orderId: '00000000-0000-0000-0000-000000000000',
|
|
5082
|
+
connectionId: '00000000-0000-0000-0000-000000000000',
|
|
5083
|
+
limit: 100,
|
|
5084
|
+
offset: 0
|
|
5085
|
+
* });
|
|
4844
5086
|
*
|
|
4845
5087
|
* // Handle response with warnings
|
|
4846
5088
|
* if (result.success) {
|
|
@@ -4853,19 +5095,19 @@ declare class BrokersWrapper {
|
|
|
4853
5095
|
* }
|
|
4854
5096
|
* ```
|
|
4855
5097
|
*/
|
|
4856
|
-
getOrderFills(
|
|
5098
|
+
getOrderFills(params: GetOrderFillsParams): Promise<FinaticResponse$2<PaginatedData<FDXBrokerOrderFill>>>;
|
|
4857
5099
|
/**
|
|
4858
5100
|
* Get Order Events
|
|
4859
5101
|
*
|
|
4860
5102
|
* Get order events for a specific order.
|
|
4861
5103
|
*
|
|
4862
5104
|
* This endpoint returns all lifecycle events for the specified order.
|
|
4863
|
-
* @param orderId {string}
|
|
4864
|
-
* @param connectionId {string} (optional)
|
|
4865
|
-
* @param limit {number} (optional)
|
|
4866
|
-
* @param offset {number} (optional)
|
|
4867
|
-
* @param includeMetadata {boolean} (optional)
|
|
4868
|
-
* @returns {Promise<FinaticResponse<FDXBrokerOrderEvent
|
|
5105
|
+
* @param params.orderId {string} Order ID
|
|
5106
|
+
* @param params.connectionId {string} (optional) Filter by connection ID
|
|
5107
|
+
* @param params.limit {number} (optional) Maximum number of events to return
|
|
5108
|
+
* @param params.offset {number} (optional) Number of events to skip for pagination
|
|
5109
|
+
* @param params.includeMetadata {boolean} (optional) Include event metadata in response (excluded by default for FDX compliance)
|
|
5110
|
+
* @returns {Promise<FinaticResponse<PaginatedData<FDXBrokerOrderEvent>>>} Standard response with success/Error/Warning structure
|
|
4869
5111
|
*
|
|
4870
5112
|
* Generated from: GET /api/v1/brokers/data/orders/{order_id}/events
|
|
4871
5113
|
* @methodId get_order_events_api_v1_brokers_data_orders__order_id__events_get
|
|
@@ -4873,7 +5115,9 @@ declare class BrokersWrapper {
|
|
|
4873
5115
|
* @example
|
|
4874
5116
|
* ```typescript-client
|
|
4875
5117
|
* // Minimal example with required parameters only
|
|
4876
|
-
* const result = await finatic.getOrderEvents(
|
|
5118
|
+
* const result = await finatic.getOrderEvents({
|
|
5119
|
+
orderId: '00000000-0000-0000-0000-000000000000'
|
|
5120
|
+
* });
|
|
4877
5121
|
*
|
|
4878
5122
|
* // Access the response data
|
|
4879
5123
|
* if (result.success) {
|
|
@@ -4885,7 +5129,12 @@ declare class BrokersWrapper {
|
|
|
4885
5129
|
* @example
|
|
4886
5130
|
* ```typescript-client
|
|
4887
5131
|
* // Full example with optional parameters
|
|
4888
|
-
* const result = await finatic.getOrderEvents(
|
|
5132
|
+
* const result = await finatic.getOrderEvents({
|
|
5133
|
+
orderId: '00000000-0000-0000-0000-000000000000',
|
|
5134
|
+
connectionId: '00000000-0000-0000-0000-000000000000',
|
|
5135
|
+
limit: 100,
|
|
5136
|
+
offset: 0
|
|
5137
|
+
* });
|
|
4889
5138
|
*
|
|
4890
5139
|
* // Handle response with warnings
|
|
4891
5140
|
* if (result.success) {
|
|
@@ -4898,21 +5147,21 @@ declare class BrokersWrapper {
|
|
|
4898
5147
|
* }
|
|
4899
5148
|
* ```
|
|
4900
5149
|
*/
|
|
4901
|
-
getOrderEvents(
|
|
5150
|
+
getOrderEvents(params: GetOrderEventsParams): Promise<FinaticResponse$2<PaginatedData<FDXBrokerOrderEvent>>>;
|
|
4902
5151
|
/**
|
|
4903
5152
|
* Get Order Groups
|
|
4904
5153
|
*
|
|
4905
5154
|
* Get order groups.
|
|
4906
5155
|
*
|
|
4907
5156
|
* This endpoint returns order groups that contain multiple orders.
|
|
4908
|
-
* @param brokerId {string} (optional)
|
|
4909
|
-
* @param connectionId {string} (optional)
|
|
4910
|
-
* @param limit {number} (optional)
|
|
4911
|
-
* @param offset {number} (optional)
|
|
4912
|
-
* @param createdAfter {string} (optional)
|
|
4913
|
-
* @param createdBefore {string} (optional)
|
|
4914
|
-
* @param includeMetadata {boolean} (optional)
|
|
4915
|
-
* @returns {Promise<FinaticResponse<FDXBrokerOrderGroup
|
|
5157
|
+
* @param params.brokerId {string} (optional) Filter by broker ID
|
|
5158
|
+
* @param params.connectionId {string} (optional) Filter by connection ID
|
|
5159
|
+
* @param params.limit {number} (optional) Maximum number of order groups to return
|
|
5160
|
+
* @param params.offset {number} (optional) Number of order groups to skip for pagination
|
|
5161
|
+
* @param params.createdAfter {string} (optional) Filter order groups created after this timestamp
|
|
5162
|
+
* @param params.createdBefore {string} (optional) Filter order groups created before this timestamp
|
|
5163
|
+
* @param params.includeMetadata {boolean} (optional) Include group metadata in response (excluded by default for FDX compliance)
|
|
5164
|
+
* @returns {Promise<FinaticResponse<PaginatedData<FDXBrokerOrderGroup>>>} Standard response with success/Error/Warning structure
|
|
4916
5165
|
*
|
|
4917
5166
|
* Generated from: GET /api/v1/brokers/data/orders/groups
|
|
4918
5167
|
* @methodId get_order_groups_api_v1_brokers_data_orders_groups_get
|
|
@@ -4920,7 +5169,7 @@ declare class BrokersWrapper {
|
|
|
4920
5169
|
* @example
|
|
4921
5170
|
* ```typescript-client
|
|
4922
5171
|
* // Example with no parameters
|
|
4923
|
-
* const result = await finatic.getOrderGroups();
|
|
5172
|
+
* const result = await finatic.getOrderGroups({});
|
|
4924
5173
|
*
|
|
4925
5174
|
* // Access the response data
|
|
4926
5175
|
* if (result.success) {
|
|
@@ -4930,7 +5179,11 @@ declare class BrokersWrapper {
|
|
|
4930
5179
|
* @example
|
|
4931
5180
|
* ```typescript-client
|
|
4932
5181
|
* // Full example with optional parameters
|
|
4933
|
-
* const result = await finatic.getOrderGroups(
|
|
5182
|
+
* const result = await finatic.getOrderGroups({
|
|
5183
|
+
brokerId: 'alpaca',
|
|
5184
|
+
connectionId: '00000000-0000-0000-0000-000000000000',
|
|
5185
|
+
limit: 100
|
|
5186
|
+
* });
|
|
4934
5187
|
*
|
|
4935
5188
|
* // Handle response with warnings
|
|
4936
5189
|
* if (result.success) {
|
|
@@ -4943,7 +5196,7 @@ declare class BrokersWrapper {
|
|
|
4943
5196
|
* }
|
|
4944
5197
|
* ```
|
|
4945
5198
|
*/
|
|
4946
|
-
getOrderGroups(
|
|
5199
|
+
getOrderGroups(params?: GetOrderGroupsParams): Promise<FinaticResponse$2<PaginatedData<FDXBrokerOrderGroup>>>;
|
|
4947
5200
|
/**
|
|
4948
5201
|
* Get Position Lots
|
|
4949
5202
|
*
|
|
@@ -4951,14 +5204,14 @@ declare class BrokersWrapper {
|
|
|
4951
5204
|
*
|
|
4952
5205
|
* This endpoint returns tax lots for positions, which are used for tax reporting.
|
|
4953
5206
|
* Each lot tracks when a position was opened/closed and at what prices.
|
|
4954
|
-
* @param brokerId {string} (optional)
|
|
4955
|
-
* @param connectionId {string} (optional)
|
|
4956
|
-
* @param accountId {string} (optional)
|
|
4957
|
-
* @param symbol {string} (optional)
|
|
4958
|
-
* @param positionId {string} (optional)
|
|
4959
|
-
* @param limit {number} (optional)
|
|
4960
|
-
* @param offset {number} (optional)
|
|
4961
|
-
* @returns {Promise<FinaticResponse<FDXBrokerPositionLot
|
|
5207
|
+
* @param params.brokerId {string} (optional) Filter by broker ID
|
|
5208
|
+
* @param params.connectionId {string} (optional) Filter by connection ID
|
|
5209
|
+
* @param params.accountId {string} (optional) Filter by broker provided account ID
|
|
5210
|
+
* @param params.symbol {string} (optional) Filter by symbol
|
|
5211
|
+
* @param params.positionId {string} (optional) Filter by position ID
|
|
5212
|
+
* @param params.limit {number} (optional) Maximum number of position lots to return
|
|
5213
|
+
* @param params.offset {number} (optional) Number of position lots to skip for pagination
|
|
5214
|
+
* @returns {Promise<FinaticResponse<PaginatedData<FDXBrokerPositionLot>>>} Standard response with success/Error/Warning structure
|
|
4962
5215
|
*
|
|
4963
5216
|
* Generated from: GET /api/v1/brokers/data/positions/lots
|
|
4964
5217
|
* @methodId get_position_lots_api_v1_brokers_data_positions_lots_get
|
|
@@ -4966,7 +5219,7 @@ declare class BrokersWrapper {
|
|
|
4966
5219
|
* @example
|
|
4967
5220
|
* ```typescript-client
|
|
4968
5221
|
* // Example with no parameters
|
|
4969
|
-
* const result = await finatic.getPositionLots();
|
|
5222
|
+
* const result = await finatic.getPositionLots({});
|
|
4970
5223
|
*
|
|
4971
5224
|
* // Access the response data
|
|
4972
5225
|
* if (result.success) {
|
|
@@ -4976,7 +5229,11 @@ declare class BrokersWrapper {
|
|
|
4976
5229
|
* @example
|
|
4977
5230
|
* ```typescript-client
|
|
4978
5231
|
* // Full example with optional parameters
|
|
4979
|
-
* const result = await finatic.getPositionLots(
|
|
5232
|
+
* const result = await finatic.getPositionLots({
|
|
5233
|
+
brokerId: 'alpaca',
|
|
5234
|
+
connectionId: '00000000-0000-0000-0000-000000000000',
|
|
5235
|
+
accountId: '123456789'
|
|
5236
|
+
* });
|
|
4980
5237
|
*
|
|
4981
5238
|
* // Handle response with warnings
|
|
4982
5239
|
* if (result.success) {
|
|
@@ -4989,18 +5246,18 @@ declare class BrokersWrapper {
|
|
|
4989
5246
|
* }
|
|
4990
5247
|
* ```
|
|
4991
5248
|
*/
|
|
4992
|
-
getPositionLots(
|
|
5249
|
+
getPositionLots(params?: GetPositionLotsParams): Promise<FinaticResponse$2<PaginatedData<FDXBrokerPositionLot>>>;
|
|
4993
5250
|
/**
|
|
4994
5251
|
* Get Position Lot Fills
|
|
4995
5252
|
*
|
|
4996
5253
|
* Get position lot fills for a specific lot.
|
|
4997
5254
|
*
|
|
4998
5255
|
* This endpoint returns all fills associated with a specific position lot.
|
|
4999
|
-
* @param lotId {string}
|
|
5000
|
-
* @param connectionId {string} (optional)
|
|
5001
|
-
* @param limit {number} (optional)
|
|
5002
|
-
* @param offset {number} (optional)
|
|
5003
|
-
* @returns {Promise<FinaticResponse<FDXBrokerPositionLotFill
|
|
5256
|
+
* @param params.lotId {string} Position lot ID
|
|
5257
|
+
* @param params.connectionId {string} (optional) Filter by connection ID
|
|
5258
|
+
* @param params.limit {number} (optional) Maximum number of fills to return
|
|
5259
|
+
* @param params.offset {number} (optional) Number of fills to skip for pagination
|
|
5260
|
+
* @returns {Promise<FinaticResponse<PaginatedData<FDXBrokerPositionLotFill>>>} Standard response with success/Error/Warning structure
|
|
5004
5261
|
*
|
|
5005
5262
|
* Generated from: GET /api/v1/brokers/data/positions/lots/{lot_id}/fills
|
|
5006
5263
|
* @methodId get_position_lot_fills_api_v1_brokers_data_positions_lots__lot_id__fills_get
|
|
@@ -5008,7 +5265,9 @@ declare class BrokersWrapper {
|
|
|
5008
5265
|
* @example
|
|
5009
5266
|
* ```typescript-client
|
|
5010
5267
|
* // Minimal example with required parameters only
|
|
5011
|
-
* const result = await finatic.getPositionLotFills(
|
|
5268
|
+
* const result = await finatic.getPositionLotFills({
|
|
5269
|
+
lotId: '00000000-0000-0000-0000-000000000000'
|
|
5270
|
+
* });
|
|
5012
5271
|
*
|
|
5013
5272
|
* // Access the response data
|
|
5014
5273
|
* if (result.success) {
|
|
@@ -5020,7 +5279,12 @@ declare class BrokersWrapper {
|
|
|
5020
5279
|
* @example
|
|
5021
5280
|
* ```typescript-client
|
|
5022
5281
|
* // Full example with optional parameters
|
|
5023
|
-
* const result = await finatic.getPositionLotFills(
|
|
5282
|
+
* const result = await finatic.getPositionLotFills({
|
|
5283
|
+
lotId: '00000000-0000-0000-0000-000000000000',
|
|
5284
|
+
connectionId: '00000000-0000-0000-0000-000000000000',
|
|
5285
|
+
limit: 100,
|
|
5286
|
+
offset: 0
|
|
5287
|
+
* });
|
|
5024
5288
|
*
|
|
5025
5289
|
* // Handle response with warnings
|
|
5026
5290
|
* if (result.success) {
|
|
@@ -5033,7 +5297,7 @@ declare class BrokersWrapper {
|
|
|
5033
5297
|
* }
|
|
5034
5298
|
* ```
|
|
5035
5299
|
*/
|
|
5036
|
-
getPositionLotFills(
|
|
5300
|
+
getPositionLotFills(params: GetPositionLotFillsParams): Promise<FinaticResponse$2<PaginatedData<FDXBrokerPositionLotFill>>>;
|
|
5037
5301
|
}
|
|
5038
5302
|
|
|
5039
5303
|
/**
|
|
@@ -5190,6 +5454,10 @@ interface FinaticResponse$1<T> {
|
|
|
5190
5454
|
[key: string]: any;
|
|
5191
5455
|
}> | null;
|
|
5192
5456
|
}
|
|
5457
|
+
interface GetCompanyParams$1 {
|
|
5458
|
+
/** Company ID */
|
|
5459
|
+
companyId: string;
|
|
5460
|
+
}
|
|
5193
5461
|
/**
|
|
5194
5462
|
* Company wrapper functions.
|
|
5195
5463
|
* Provides simplified method names and response unwrapping.
|
|
@@ -5211,7 +5479,7 @@ declare class CompanyWrapper {
|
|
|
5211
5479
|
* Get Company
|
|
5212
5480
|
*
|
|
5213
5481
|
* Get public company details by ID (no user check, no sensitive data).
|
|
5214
|
-
* @param companyId {string}
|
|
5482
|
+
* @param params.companyId {string} Company ID
|
|
5215
5483
|
* @returns {Promise<FinaticResponse<CompanyResponse>>} Standard response with success/Error/Warning structure
|
|
5216
5484
|
*
|
|
5217
5485
|
* Generated from: GET /api/v1/company/{company_id}
|
|
@@ -5220,7 +5488,9 @@ declare class CompanyWrapper {
|
|
|
5220
5488
|
* @example
|
|
5221
5489
|
* ```typescript-client
|
|
5222
5490
|
* // Minimal example with required parameters only
|
|
5223
|
-
* const result = await finatic.getCompany(
|
|
5491
|
+
* const result = await finatic.getCompany({
|
|
5492
|
+
companyId: '00000000-0000-0000-0000-000000000000'
|
|
5493
|
+
* });
|
|
5224
5494
|
*
|
|
5225
5495
|
* // Access the response data
|
|
5226
5496
|
* if (result.success) {
|
|
@@ -5230,7 +5500,7 @@ declare class CompanyWrapper {
|
|
|
5230
5500
|
* }
|
|
5231
5501
|
* ```
|
|
5232
5502
|
*/
|
|
5233
|
-
getCompany(
|
|
5503
|
+
getCompany(params: GetCompanyParams$1): Promise<FinaticResponse$1<CompanyResponse>>;
|
|
5234
5504
|
}
|
|
5235
5505
|
|
|
5236
5506
|
/**
|
|
@@ -5265,8 +5535,8 @@ declare const SessionApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
|
5265
5535
|
/**
|
|
5266
5536
|
* Start a session with a one-time token.
|
|
5267
5537
|
* @summary Start Session
|
|
5268
|
-
* @param {string} oneTimeToken
|
|
5269
|
-
* @param {SessionStartRequest} sessionStartRequest
|
|
5538
|
+
* @param {string} oneTimeToken One-time use token obtained from init_session endpoint to authenticate and start the session
|
|
5539
|
+
* @param {SessionStartRequest} sessionStartRequest Session start request containing optional user ID to associate with the session
|
|
5270
5540
|
* @param {*} [options] Override http request option.
|
|
5271
5541
|
* @throws {RequiredError}
|
|
5272
5542
|
*/
|
|
@@ -5304,8 +5574,8 @@ declare const SessionApiFp: (configuration?: Configuration) => {
|
|
|
5304
5574
|
/**
|
|
5305
5575
|
* Start a session with a one-time token.
|
|
5306
5576
|
* @summary Start Session
|
|
5307
|
-
* @param {string} oneTimeToken
|
|
5308
|
-
* @param {SessionStartRequest} sessionStartRequest
|
|
5577
|
+
* @param {string} oneTimeToken One-time use token obtained from init_session endpoint to authenticate and start the session
|
|
5578
|
+
* @param {SessionStartRequest} sessionStartRequest Session start request containing optional user ID to associate with the session
|
|
5309
5579
|
* @param {*} [options] Override http request option.
|
|
5310
5580
|
* @throws {RequiredError}
|
|
5311
5581
|
*/
|
|
@@ -5420,7 +5690,13 @@ interface SessionApiInitSessionApiV1SessionInitPostRequest {
|
|
|
5420
5690
|
* Request parameters for startSessionApiV1SessionStartPost operation in SessionApi.
|
|
5421
5691
|
*/
|
|
5422
5692
|
interface SessionApiStartSessionApiV1SessionStartPostRequest {
|
|
5693
|
+
/**
|
|
5694
|
+
* One-time use token obtained from init_session endpoint to authenticate and start the session
|
|
5695
|
+
*/
|
|
5423
5696
|
readonly oneTimeToken: string;
|
|
5697
|
+
/**
|
|
5698
|
+
* Session start request containing optional user ID to associate with the session
|
|
5699
|
+
*/
|
|
5424
5700
|
readonly sessionStartRequest: SessionStartRequest;
|
|
5425
5701
|
}
|
|
5426
5702
|
/**
|
|
@@ -5491,6 +5767,20 @@ interface FinaticResponse<T> {
|
|
|
5491
5767
|
[key: string]: any;
|
|
5492
5768
|
}> | null;
|
|
5493
5769
|
}
|
|
5770
|
+
interface InitSessionParams {
|
|
5771
|
+
/** Company API key */
|
|
5772
|
+
xApiKey: string;
|
|
5773
|
+
}
|
|
5774
|
+
interface StartSessionParams {
|
|
5775
|
+
/** One-time use token obtained from init_session endpoint to authenticate and start the session */
|
|
5776
|
+
OneTimeToken: string;
|
|
5777
|
+
/** Session start request containing optional user ID to associate with the session */
|
|
5778
|
+
body: SessionStartRequest;
|
|
5779
|
+
}
|
|
5780
|
+
interface GetSessionUserParams {
|
|
5781
|
+
/** Session ID */
|
|
5782
|
+
sessionId: string;
|
|
5783
|
+
}
|
|
5494
5784
|
/**
|
|
5495
5785
|
* Session wrapper functions.
|
|
5496
5786
|
* Provides simplified method names and response unwrapping.
|
|
@@ -5512,7 +5802,7 @@ declare class SessionWrapper {
|
|
|
5512
5802
|
* Init Session
|
|
5513
5803
|
*
|
|
5514
5804
|
* Initialize a new session with company API key.
|
|
5515
|
-
* @param xApiKey {string}
|
|
5805
|
+
* @param params.xApiKey {string} Company API key
|
|
5516
5806
|
* @returns {Promise<FinaticResponse<TokenResponseData>>} Standard response with success/Error/Warning structure
|
|
5517
5807
|
*
|
|
5518
5808
|
* Generated from: POST /api/v1/session/init
|
|
@@ -5521,7 +5811,7 @@ declare class SessionWrapper {
|
|
|
5521
5811
|
* @example
|
|
5522
5812
|
* ```typescript-client
|
|
5523
5813
|
* // Example with no parameters
|
|
5524
|
-
* const result = await finatic.initSession();
|
|
5814
|
+
* const result = await finatic.initSession({});
|
|
5525
5815
|
*
|
|
5526
5816
|
* // Access the response data
|
|
5527
5817
|
* if (result.success) {
|
|
@@ -5529,13 +5819,13 @@ declare class SessionWrapper {
|
|
|
5529
5819
|
* }
|
|
5530
5820
|
* ```
|
|
5531
5821
|
*/
|
|
5532
|
-
initSession(
|
|
5822
|
+
initSession(params: InitSessionParams): Promise<FinaticResponse<TokenResponseData>>;
|
|
5533
5823
|
/**
|
|
5534
5824
|
* Start Session
|
|
5535
5825
|
*
|
|
5536
5826
|
* Start a session with a one-time token.
|
|
5537
|
-
* @param OneTimeToken {string}
|
|
5538
|
-
* @param body {SessionStartRequest}
|
|
5827
|
+
* @param params.OneTimeToken {string} One-time use token obtained from init_session endpoint to authenticate and start the session
|
|
5828
|
+
* @param params.body {SessionStartRequest} Session start request containing optional user ID to associate with the session
|
|
5539
5829
|
* @returns {Promise<FinaticResponse<SessionResponseData>>} Standard response with success/Error/Warning structure
|
|
5540
5830
|
*
|
|
5541
5831
|
* Generated from: POST /api/v1/session/start
|
|
@@ -5544,7 +5834,7 @@ declare class SessionWrapper {
|
|
|
5544
5834
|
* @example
|
|
5545
5835
|
* ```typescript-client
|
|
5546
5836
|
* // Example with no parameters
|
|
5547
|
-
* const result = await finatic.startSession();
|
|
5837
|
+
* const result = await finatic.startSession({});
|
|
5548
5838
|
*
|
|
5549
5839
|
* // Access the response data
|
|
5550
5840
|
* if (result.success) {
|
|
@@ -5552,7 +5842,7 @@ declare class SessionWrapper {
|
|
|
5552
5842
|
* }
|
|
5553
5843
|
* ```
|
|
5554
5844
|
*/
|
|
5555
|
-
startSession(
|
|
5845
|
+
startSession(params: StartSessionParams): Promise<FinaticResponse<SessionResponseData>>;
|
|
5556
5846
|
/**
|
|
5557
5847
|
* Get Portal Url
|
|
5558
5848
|
*
|
|
@@ -5560,7 +5850,7 @@ declare class SessionWrapper {
|
|
|
5560
5850
|
*
|
|
5561
5851
|
* The session must be in ACTIVE or AUTHENTICATING state and the request must come from the same device
|
|
5562
5852
|
* that initiated the session. Device info is automatically validated from the request.
|
|
5563
|
-
* @param No parameters required for this method
|
|
5853
|
+
* @param params No parameters required for this method
|
|
5564
5854
|
* @returns {Promise<FinaticResponse<PortalUrlResponse>>} Standard response with success/Error/Warning structure
|
|
5565
5855
|
*
|
|
5566
5856
|
* Generated from: GET /api/v1/session/portal
|
|
@@ -5569,7 +5859,7 @@ declare class SessionWrapper {
|
|
|
5569
5859
|
* @example
|
|
5570
5860
|
* ```typescript-client
|
|
5571
5861
|
* // Example with no parameters
|
|
5572
|
-
* const result = await finatic.getPortalUrl();
|
|
5862
|
+
* const result = await finatic.getPortalUrl({});
|
|
5573
5863
|
*
|
|
5574
5864
|
* // Access the response data
|
|
5575
5865
|
* if (result.success) {
|
|
@@ -5577,7 +5867,7 @@ declare class SessionWrapper {
|
|
|
5577
5867
|
* }
|
|
5578
5868
|
* ```
|
|
5579
5869
|
*/
|
|
5580
|
-
getPortalUrl(): Promise<FinaticResponse<PortalUrlResponse>>;
|
|
5870
|
+
getPortalUrl(params?: {}): Promise<FinaticResponse<PortalUrlResponse>>;
|
|
5581
5871
|
/**
|
|
5582
5872
|
* Get Session User
|
|
5583
5873
|
*
|
|
@@ -5593,7 +5883,7 @@ declare class SessionWrapper {
|
|
|
5593
5883
|
* - Generates fresh tokens (not returning stored ones)
|
|
5594
5884
|
* - Only accessible to authenticated sessions with user_id
|
|
5595
5885
|
* - Validates that header session_id matches path session_id
|
|
5596
|
-
* @param sessionId {string}
|
|
5886
|
+
* @param params.sessionId {string} Session ID
|
|
5597
5887
|
* @returns {Promise<FinaticResponse<SessionUserResponse>>} Standard response with success/Error/Warning structure
|
|
5598
5888
|
*
|
|
5599
5889
|
* Generated from: GET /api/v1/session/{session_id}/user
|
|
@@ -5602,7 +5892,9 @@ declare class SessionWrapper {
|
|
|
5602
5892
|
* @example
|
|
5603
5893
|
* ```typescript-client
|
|
5604
5894
|
* // Minimal example with required parameters only
|
|
5605
|
-
* const result = await finatic.getSessionUser(
|
|
5895
|
+
* const result = await finatic.getSessionUser({
|
|
5896
|
+
sessionId: 'sess_1234567890abcdef'
|
|
5897
|
+
* });
|
|
5606
5898
|
*
|
|
5607
5899
|
* // Access the response data
|
|
5608
5900
|
* if (result.success) {
|
|
@@ -5612,7 +5904,7 @@ declare class SessionWrapper {
|
|
|
5612
5904
|
* }
|
|
5613
5905
|
* ```
|
|
5614
5906
|
*/
|
|
5615
|
-
getSessionUser(
|
|
5907
|
+
getSessionUser(params: GetSessionUserParams): Promise<FinaticResponse<SessionUserResponse>>;
|
|
5616
5908
|
}
|
|
5617
5909
|
|
|
5618
5910
|
/**
|
|
@@ -5700,15 +5992,23 @@ declare function numberSchema(min?: number, max?: number, defaultVal?: number):
|
|
|
5700
5992
|
declare function stringSchema(min?: number, max?: number, defaultVal?: string): z.ZodString;
|
|
5701
5993
|
|
|
5702
5994
|
/**
|
|
5703
|
-
* Response caching utility with
|
|
5995
|
+
* Response caching utility with browser-compatible Map-based cache (Phase 2B).
|
|
5704
5996
|
*
|
|
5705
5997
|
* Generated - do not edit directly.
|
|
5706
5998
|
*/
|
|
5707
5999
|
|
|
6000
|
+
interface BrowserCache {
|
|
6001
|
+
get(key: string): any | undefined;
|
|
6002
|
+
set(key: string, value: any, ttl?: number): boolean;
|
|
6003
|
+
del(key: string): number;
|
|
6004
|
+
clear(): void;
|
|
6005
|
+
keys(): string[];
|
|
6006
|
+
has(key: string): boolean;
|
|
6007
|
+
}
|
|
5708
6008
|
/**
|
|
5709
6009
|
* Get or create cache instance.
|
|
5710
6010
|
*/
|
|
5711
|
-
declare function getCache(config?: SdkConfig):
|
|
6011
|
+
declare function getCache(config?: SdkConfig): BrowserCache | null;
|
|
5712
6012
|
/**
|
|
5713
6013
|
* Generate cache key from method and parameters.
|
|
5714
6014
|
*/
|
|
@@ -5919,28 +6219,34 @@ declare class FinaticConnect$1 extends EventEmitter {
|
|
|
5919
6219
|
*
|
|
5920
6220
|
* @methodId get_portal_url_api_v1_session_portal_get
|
|
5921
6221
|
* @category session
|
|
5922
|
-
* @param
|
|
5923
|
-
* @param
|
|
5924
|
-
* @param
|
|
5925
|
-
* @param
|
|
6222
|
+
* @param params - Optional parameters object
|
|
6223
|
+
* @param params.theme - Optional theme preset or custom theme object
|
|
6224
|
+
* @param params.brokers - Optional array of broker IDs to filter
|
|
6225
|
+
* @param params.email - Optional email address
|
|
6226
|
+
* @param params.mode - Optional mode ('light' or 'dark')
|
|
5926
6227
|
* @returns Portal URL string
|
|
5927
6228
|
* @example
|
|
5928
6229
|
* ```typescript-client
|
|
5929
|
-
* const url = await finatic.getPortalUrl('
|
|
6230
|
+
* const url = await finatic.getPortalUrl({ theme: 'default', brokers: ['broker-1'], email: 'user@example.com', mode: 'dark' });
|
|
5930
6231
|
* ```
|
|
5931
6232
|
* @example
|
|
5932
6233
|
* ```typescript-server
|
|
5933
|
-
* const url = await finatic.getPortalUrl('
|
|
6234
|
+
* const url = await finatic.getPortalUrl({ theme: 'default', brokers: ['broker-1'], email: 'user@example.com', mode: 'dark' });
|
|
5934
6235
|
* ```
|
|
5935
6236
|
* @example
|
|
5936
6237
|
* ```python
|
|
5937
|
-
* url = await finatic.get_portal_url('
|
|
6238
|
+
* url = await finatic.get_portal_url(theme='default', brokers=['broker-1'], email='user@example.com', mode='dark')
|
|
5938
6239
|
* ```
|
|
5939
6240
|
*/
|
|
5940
|
-
getPortalUrl(
|
|
5941
|
-
|
|
5942
|
-
|
|
5943
|
-
|
|
6241
|
+
getPortalUrl(params?: {
|
|
6242
|
+
theme?: string | {
|
|
6243
|
+
preset?: string;
|
|
6244
|
+
custom?: Record<string, unknown>;
|
|
6245
|
+
};
|
|
6246
|
+
brokers?: string[];
|
|
6247
|
+
email?: string;
|
|
6248
|
+
mode?: 'light' | 'dark';
|
|
6249
|
+
}): Promise<string>;
|
|
5944
6250
|
/**
|
|
5945
6251
|
* Open portal in iframe (Client SDK only).
|
|
5946
6252
|
* The portal handles user authentication and linking to session at the source of truth.
|
|
@@ -5948,27 +6254,38 @@ declare class FinaticConnect$1 extends EventEmitter {
|
|
|
5948
6254
|
*
|
|
5949
6255
|
* @methodId open_portal_client_sdk
|
|
5950
6256
|
* @category session
|
|
5951
|
-
* @param
|
|
5952
|
-
* @param
|
|
5953
|
-
* @param
|
|
5954
|
-
* @param
|
|
6257
|
+
* @param params - Optional parameters object
|
|
6258
|
+
* @param params.theme - Optional theme preset or custom theme object
|
|
6259
|
+
* @param params.brokers - Optional array of broker IDs to filter
|
|
6260
|
+
* @param params.email - Optional email address
|
|
6261
|
+
* @param params.mode - Optional mode ('light' or 'dark')
|
|
5955
6262
|
* @param onSuccess - Optional callback when portal authentication succeeds
|
|
5956
6263
|
* @param onError - Optional callback when portal authentication fails
|
|
5957
6264
|
* @param onClose - Optional callback when portal is closed
|
|
5958
6265
|
* @returns Promise that resolves when portal is opened
|
|
5959
6266
|
* @example
|
|
5960
6267
|
* ```typescript-client
|
|
5961
|
-
* await finatic.openPortal(
|
|
6268
|
+
* await finatic.openPortal({
|
|
6269
|
+
* theme: 'default',
|
|
6270
|
+
* brokers: ['broker-1'],
|
|
6271
|
+
* email: 'user@example.com',
|
|
6272
|
+
* mode: 'dark'
|
|
6273
|
+
* },
|
|
5962
6274
|
* (userId) => console.log('User authenticated:', userId),
|
|
5963
6275
|
* (error) => console.error('Portal error:', error),
|
|
5964
6276
|
* () => console.log('Portal closed')
|
|
5965
6277
|
* );
|
|
5966
6278
|
* ```
|
|
5967
6279
|
*/
|
|
5968
|
-
openPortal(
|
|
5969
|
-
|
|
5970
|
-
|
|
5971
|
-
|
|
6280
|
+
openPortal(params?: {
|
|
6281
|
+
theme?: string | {
|
|
6282
|
+
preset?: string;
|
|
6283
|
+
custom?: Record<string, unknown>;
|
|
6284
|
+
};
|
|
6285
|
+
brokers?: string[];
|
|
6286
|
+
email?: string;
|
|
6287
|
+
mode?: 'light' | 'dark';
|
|
6288
|
+
}, onSuccess?: (userId: string) => void, onError?: (error: Error) => void, onClose?: () => void): Promise<void>;
|
|
5972
6289
|
/**
|
|
5973
6290
|
* Get current user ID (set after portal authentication).
|
|
5974
6291
|
*
|
|
@@ -6094,7 +6411,7 @@ declare class FinaticConnect$1 extends EventEmitter {
|
|
|
6094
6411
|
* print('Error:', result.error['message'])
|
|
6095
6412
|
* ```
|
|
6096
6413
|
*/
|
|
6097
|
-
getCompany(params
|
|
6414
|
+
getCompany(params: GetCompanyParams): Promise<Awaited<ReturnType<typeof this$1.company.getCompany>>>;
|
|
6098
6415
|
/**
|
|
6099
6416
|
* Get Brokers
|
|
6100
6417
|
*
|
|
@@ -6246,7 +6563,7 @@ declare class FinaticConnect$1 extends EventEmitter {
|
|
|
6246
6563
|
* print('Error:', result.error['message'])
|
|
6247
6564
|
* ```
|
|
6248
6565
|
*/
|
|
6249
|
-
disconnectCompanyFromBroker(params
|
|
6566
|
+
disconnectCompanyFromBroker(params: DisconnectCompanyFromBrokerParams): Promise<Awaited<ReturnType<typeof this$1.brokers.disconnectCompanyFromBroker>>>;
|
|
6250
6567
|
/**
|
|
6251
6568
|
* Get Orders
|
|
6252
6569
|
*
|
|
@@ -6324,7 +6641,7 @@ declare class FinaticConnect$1 extends EventEmitter {
|
|
|
6324
6641
|
* print('Error:', result.error['message'], result.error['code'])
|
|
6325
6642
|
* ```
|
|
6326
6643
|
*/
|
|
6327
|
-
getOrders(params?:
|
|
6644
|
+
getOrders(params?: GetOrdersParams): Promise<Awaited<ReturnType<typeof this$1.brokers.getOrders>>>;
|
|
6328
6645
|
/**
|
|
6329
6646
|
* Get Positions
|
|
6330
6647
|
*
|
|
@@ -6402,7 +6719,7 @@ declare class FinaticConnect$1 extends EventEmitter {
|
|
|
6402
6719
|
* print('Error:', result.error['message'], result.error['code'])
|
|
6403
6720
|
* ```
|
|
6404
6721
|
*/
|
|
6405
|
-
getPositions(params?:
|
|
6722
|
+
getPositions(params?: GetPositionsParams): Promise<Awaited<ReturnType<typeof this$1.brokers.getPositions>>>;
|
|
6406
6723
|
/**
|
|
6407
6724
|
* Get Balances
|
|
6408
6725
|
*
|
|
@@ -6480,7 +6797,7 @@ declare class FinaticConnect$1 extends EventEmitter {
|
|
|
6480
6797
|
* print('Error:', result.error['message'], result.error['code'])
|
|
6481
6798
|
* ```
|
|
6482
6799
|
*/
|
|
6483
|
-
getBalances(params?:
|
|
6800
|
+
getBalances(params?: GetBalancesParams): Promise<Awaited<ReturnType<typeof this$1.brokers.getBalances>>>;
|
|
6484
6801
|
/**
|
|
6485
6802
|
* Get Accounts
|
|
6486
6803
|
*
|
|
@@ -6558,7 +6875,7 @@ declare class FinaticConnect$1 extends EventEmitter {
|
|
|
6558
6875
|
* print('Error:', result.error['message'], result.error['code'])
|
|
6559
6876
|
* ```
|
|
6560
6877
|
*/
|
|
6561
|
-
getAccounts(params?:
|
|
6878
|
+
getAccounts(params?: GetAccountsParams): Promise<Awaited<ReturnType<typeof this$1.brokers.getAccounts>>>;
|
|
6562
6879
|
/**
|
|
6563
6880
|
* Get Order Fills
|
|
6564
6881
|
*
|
|
@@ -6644,7 +6961,7 @@ declare class FinaticConnect$1 extends EventEmitter {
|
|
|
6644
6961
|
* print('Error:', result.error['message'], result.error['code'])
|
|
6645
6962
|
* ```
|
|
6646
6963
|
*/
|
|
6647
|
-
getOrderFills(params
|
|
6964
|
+
getOrderFills(params: GetOrderFillsParams): Promise<Awaited<ReturnType<typeof this$1.brokers.getOrderFills>>>;
|
|
6648
6965
|
/**
|
|
6649
6966
|
* Get Order Events
|
|
6650
6967
|
*
|
|
@@ -6730,7 +7047,7 @@ declare class FinaticConnect$1 extends EventEmitter {
|
|
|
6730
7047
|
* print('Error:', result.error['message'], result.error['code'])
|
|
6731
7048
|
* ```
|
|
6732
7049
|
*/
|
|
6733
|
-
getOrderEvents(params
|
|
7050
|
+
getOrderEvents(params: GetOrderEventsParams): Promise<Awaited<ReturnType<typeof this$1.brokers.getOrderEvents>>>;
|
|
6734
7051
|
/**
|
|
6735
7052
|
* Get Order Groups
|
|
6736
7053
|
*
|
|
@@ -6807,7 +7124,7 @@ declare class FinaticConnect$1 extends EventEmitter {
|
|
|
6807
7124
|
* print('Error:', result.error['message'], result.error['code'])
|
|
6808
7125
|
* ```
|
|
6809
7126
|
*/
|
|
6810
|
-
getOrderGroups(params?:
|
|
7127
|
+
getOrderGroups(params?: GetOrderGroupsParams): Promise<Awaited<ReturnType<typeof this$1.brokers.getOrderGroups>>>;
|
|
6811
7128
|
/**
|
|
6812
7129
|
* Get Position Lots
|
|
6813
7130
|
*
|
|
@@ -6885,7 +7202,7 @@ declare class FinaticConnect$1 extends EventEmitter {
|
|
|
6885
7202
|
* print('Error:', result.error['message'], result.error['code'])
|
|
6886
7203
|
* ```
|
|
6887
7204
|
*/
|
|
6888
|
-
getPositionLots(params?:
|
|
7205
|
+
getPositionLots(params?: GetPositionLotsParams): Promise<Awaited<ReturnType<typeof this$1.brokers.getPositionLots>>>;
|
|
6889
7206
|
/**
|
|
6890
7207
|
* Get Position Lot Fills
|
|
6891
7208
|
*
|
|
@@ -6971,7 +7288,7 @@ declare class FinaticConnect$1 extends EventEmitter {
|
|
|
6971
7288
|
* print('Error:', result.error['message'], result.error['code'])
|
|
6972
7289
|
* ```
|
|
6973
7290
|
*/
|
|
6974
|
-
getPositionLotFills(params
|
|
7291
|
+
getPositionLotFills(params: GetPositionLotFillsParams): Promise<Awaited<ReturnType<typeof this$1.brokers.getPositionLotFills>>>;
|
|
6975
7292
|
/**
|
|
6976
7293
|
* Get all Orders across all pages.
|
|
6977
7294
|
* Auto-generated from paginated endpoint.
|
|
@@ -7538,5 +7855,5 @@ declare class FinaticConnect extends FinaticConnect$1 {
|
|
|
7538
7855
|
static readonly __CUSTOM_CLASS__ = true;
|
|
7539
7856
|
}
|
|
7540
7857
|
|
|
7541
|
-
export { AccountStatus, ApiError, BrokerDataAccountTypeEnum, BrokerDataAssetTypeEnum, BrokerDataOrderSideEnum, BrokerDataOrderStatusEnum, 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, 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 };
|
|
7542
|
-
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, 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, 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 };
|
|
7858
|
+
export { AccountStatus, ApiError, BrokerDataAccountTypeEnum, BrokerDataAssetTypeEnum, BrokerDataOrderSideEnum, BrokerDataOrderStatusEnum, 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, 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 };
|
|
7859
|
+
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, 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 };
|