@finatic/client 0.9.9 → 0.9.10
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 +374 -580
- package/dist/index.js +259 -491
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +260 -492
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1386,25 +1386,6 @@ var FinaticBrokerFactoryBrokersRobinhoodExecutorsConsumerRobinhoodOrderModifyQue
|
|
|
1386
1386
|
FinaticBrokerFactoryBrokersRobinhoodExecutorsConsumerRobinhoodOrderModifyQueryParamsRobinhoodOptionSpreadLegEffectEnum["Close"] = "close";
|
|
1387
1387
|
})(FinaticBrokerFactoryBrokersRobinhoodExecutorsConsumerRobinhoodOrderModifyQueryParamsRobinhoodOptionSpreadLegEffectEnum || (FinaticBrokerFactoryBrokersRobinhoodExecutorsConsumerRobinhoodOrderModifyQueryParamsRobinhoodOptionSpreadLegEffectEnum = {}));
|
|
1388
1388
|
|
|
1389
|
-
/* tslint:disable */
|
|
1390
|
-
/* eslint-disable */
|
|
1391
|
-
/**
|
|
1392
|
-
* Finatic FastAPI Backend
|
|
1393
|
-
* FinaticAPI REST API
|
|
1394
|
-
*
|
|
1395
|
-
* The version of the OpenAPI document: 1.0.0
|
|
1396
|
-
*
|
|
1397
|
-
*
|
|
1398
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
1399
|
-
* https://openapi-generator.tech
|
|
1400
|
-
* Do not edit the class manually.
|
|
1401
|
-
*/
|
|
1402
|
-
var FinaticBrokerFactoryBrokersRobinhoodExecutorsConsumerRobinhoodOrderPlaceQueryParamsRobinhoodOptionSpreadLegPositionEffectEnum;
|
|
1403
|
-
(function (FinaticBrokerFactoryBrokersRobinhoodExecutorsConsumerRobinhoodOrderPlaceQueryParamsRobinhoodOptionSpreadLegPositionEffectEnum) {
|
|
1404
|
-
FinaticBrokerFactoryBrokersRobinhoodExecutorsConsumerRobinhoodOrderPlaceQueryParamsRobinhoodOptionSpreadLegPositionEffectEnum["Open"] = "open";
|
|
1405
|
-
FinaticBrokerFactoryBrokersRobinhoodExecutorsConsumerRobinhoodOrderPlaceQueryParamsRobinhoodOptionSpreadLegPositionEffectEnum["Close"] = "close";
|
|
1406
|
-
})(FinaticBrokerFactoryBrokersRobinhoodExecutorsConsumerRobinhoodOrderPlaceQueryParamsRobinhoodOptionSpreadLegPositionEffectEnum || (FinaticBrokerFactoryBrokersRobinhoodExecutorsConsumerRobinhoodOrderPlaceQueryParamsRobinhoodOptionSpreadLegPositionEffectEnum = {}));
|
|
1407
|
-
|
|
1408
1389
|
/* tslint:disable */
|
|
1409
1390
|
/* eslint-disable */
|
|
1410
1391
|
/**
|
|
@@ -2309,6 +2290,25 @@ var RobinhoodOptionMarketOrderPlaceQueryParamsOptionTypeEnum;
|
|
|
2309
2290
|
RobinhoodOptionMarketOrderPlaceQueryParamsOptionTypeEnum["Both"] = "both";
|
|
2310
2291
|
})(RobinhoodOptionMarketOrderPlaceQueryParamsOptionTypeEnum || (RobinhoodOptionMarketOrderPlaceQueryParamsOptionTypeEnum = {}));
|
|
2311
2292
|
|
|
2293
|
+
/* tslint:disable */
|
|
2294
|
+
/* eslint-disable */
|
|
2295
|
+
/**
|
|
2296
|
+
* Finatic FastAPI Backend
|
|
2297
|
+
* FinaticAPI REST API
|
|
2298
|
+
*
|
|
2299
|
+
* The version of the OpenAPI document: 1.0.0
|
|
2300
|
+
*
|
|
2301
|
+
*
|
|
2302
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
2303
|
+
* https://openapi-generator.tech
|
|
2304
|
+
* Do not edit the class manually.
|
|
2305
|
+
*/
|
|
2306
|
+
var RobinhoodOptionSpreadLegPositionEffectEnum;
|
|
2307
|
+
(function (RobinhoodOptionSpreadLegPositionEffectEnum) {
|
|
2308
|
+
RobinhoodOptionSpreadLegPositionEffectEnum["Open"] = "open";
|
|
2309
|
+
RobinhoodOptionSpreadLegPositionEffectEnum["Close"] = "close";
|
|
2310
|
+
})(RobinhoodOptionSpreadLegPositionEffectEnum || (RobinhoodOptionSpreadLegPositionEffectEnum = {}));
|
|
2311
|
+
|
|
2312
2312
|
/* tslint:disable */
|
|
2313
2313
|
/* eslint-disable */
|
|
2314
2314
|
/**
|
|
@@ -3263,9 +3263,9 @@ class BrokersWrapper {
|
|
|
3263
3263
|
* ```typescript-client
|
|
3264
3264
|
* // Full example with optional parameters
|
|
3265
3265
|
* const result = await finatic.getBalances({
|
|
3266
|
-
brokerId: '
|
|
3267
|
-
connectionId: '
|
|
3268
|
-
accountId: '
|
|
3266
|
+
brokerId: 'example-id',
|
|
3267
|
+
connectionId: 'example-id',
|
|
3268
|
+
accountId: 'example-id'
|
|
3269
3269
|
* });
|
|
3270
3270
|
*
|
|
3271
3271
|
* // Handle response with warnings
|
|
@@ -3450,8 +3450,8 @@ class BrokersWrapper {
|
|
|
3450
3450
|
* ```typescript-client
|
|
3451
3451
|
* // Full example with optional parameters
|
|
3452
3452
|
* const result = await finatic.getAccounts({
|
|
3453
|
-
brokerId: '
|
|
3454
|
-
connectionId: '
|
|
3453
|
+
brokerId: 'example-id',
|
|
3454
|
+
connectionId: 'example-id',
|
|
3455
3455
|
accountType: 'margin'
|
|
3456
3456
|
* });
|
|
3457
3457
|
*
|
|
@@ -3929,7 +3929,7 @@ class BrokersWrapper {
|
|
|
3929
3929
|
* ```typescript-client
|
|
3930
3930
|
* // Minimal example with required parameters only
|
|
3931
3931
|
* const result = await finatic.disconnectCompanyFromBroker({
|
|
3932
|
-
connectionId: '
|
|
3932
|
+
connectionId: 'example-id'
|
|
3933
3933
|
* });
|
|
3934
3934
|
*
|
|
3935
3935
|
* // Access the response data
|
|
@@ -4104,9 +4104,9 @@ class BrokersWrapper {
|
|
|
4104
4104
|
* ```typescript-client
|
|
4105
4105
|
* // Full example with optional parameters
|
|
4106
4106
|
* const result = await finatic.getOrders({
|
|
4107
|
-
brokerId: '
|
|
4108
|
-
connectionId: '
|
|
4109
|
-
accountId: '
|
|
4107
|
+
brokerId: 'example-id',
|
|
4108
|
+
connectionId: 'example-id',
|
|
4109
|
+
accountId: 'example-id'
|
|
4110
4110
|
* });
|
|
4111
4111
|
*
|
|
4112
4112
|
* // Handle response with warnings
|
|
@@ -4308,9 +4308,9 @@ class BrokersWrapper {
|
|
|
4308
4308
|
* ```typescript-client
|
|
4309
4309
|
* // Full example with optional parameters
|
|
4310
4310
|
* const result = await finatic.getPositions({
|
|
4311
|
-
brokerId: '
|
|
4312
|
-
connectionId: '
|
|
4313
|
-
accountId: '
|
|
4311
|
+
brokerId: 'example-id',
|
|
4312
|
+
connectionId: 'example-id',
|
|
4313
|
+
accountId: 'example-id'
|
|
4314
4314
|
* });
|
|
4315
4315
|
*
|
|
4316
4316
|
* // Handle response with warnings
|
|
@@ -4516,9 +4516,9 @@ class BrokersWrapper {
|
|
|
4516
4516
|
* ```typescript-client
|
|
4517
4517
|
* // Full example with optional parameters
|
|
4518
4518
|
* const result = await finatic.getTransactions({
|
|
4519
|
-
brokerId: '
|
|
4520
|
-
connectionId: '
|
|
4521
|
-
accountId: '
|
|
4519
|
+
brokerId: 'example-id',
|
|
4520
|
+
connectionId: 'example-id',
|
|
4521
|
+
accountId: 'example-id'
|
|
4522
4522
|
* });
|
|
4523
4523
|
*
|
|
4524
4524
|
* // Handle response with warnings
|
|
@@ -4690,7 +4690,7 @@ class BrokersWrapper {
|
|
|
4690
4690
|
* ```typescript-client
|
|
4691
4691
|
* // Minimal example with required parameters only
|
|
4692
4692
|
* const result = await finatic.getOrderFills({
|
|
4693
|
-
orderId: '
|
|
4693
|
+
orderId: 'example-id'
|
|
4694
4694
|
* });
|
|
4695
4695
|
*
|
|
4696
4696
|
* // Access the response data
|
|
@@ -4704,9 +4704,9 @@ class BrokersWrapper {
|
|
|
4704
4704
|
* ```typescript-client
|
|
4705
4705
|
* // Full example with optional parameters
|
|
4706
4706
|
* const result = await finatic.getOrderFills({
|
|
4707
|
-
orderId: '
|
|
4708
|
-
connectionId: '
|
|
4709
|
-
limit:
|
|
4707
|
+
orderId: 'example-id',
|
|
4708
|
+
connectionId: 'example-id',
|
|
4709
|
+
limit: 0,
|
|
4710
4710
|
offset: 0
|
|
4711
4711
|
* });
|
|
4712
4712
|
*
|
|
@@ -4879,7 +4879,7 @@ class BrokersWrapper {
|
|
|
4879
4879
|
* ```typescript-client
|
|
4880
4880
|
* // Minimal example with required parameters only
|
|
4881
4881
|
* const result = await finatic.getOrderEvents({
|
|
4882
|
-
orderId: '
|
|
4882
|
+
orderId: 'example-id'
|
|
4883
4883
|
* });
|
|
4884
4884
|
*
|
|
4885
4885
|
* // Access the response data
|
|
@@ -4893,9 +4893,9 @@ class BrokersWrapper {
|
|
|
4893
4893
|
* ```typescript-client
|
|
4894
4894
|
* // Full example with optional parameters
|
|
4895
4895
|
* const result = await finatic.getOrderEvents({
|
|
4896
|
-
orderId: '
|
|
4897
|
-
connectionId: '
|
|
4898
|
-
limit:
|
|
4896
|
+
orderId: 'example-id',
|
|
4897
|
+
connectionId: 'example-id',
|
|
4898
|
+
limit: 0,
|
|
4899
4899
|
offset: 0
|
|
4900
4900
|
* });
|
|
4901
4901
|
*
|
|
@@ -5080,9 +5080,9 @@ class BrokersWrapper {
|
|
|
5080
5080
|
* ```typescript-client
|
|
5081
5081
|
* // Full example with optional parameters
|
|
5082
5082
|
* const result = await finatic.getOrderGroups({
|
|
5083
|
-
brokerId: '
|
|
5084
|
-
connectionId: '
|
|
5085
|
-
limit:
|
|
5083
|
+
brokerId: 'example-id',
|
|
5084
|
+
connectionId: 'example-id',
|
|
5085
|
+
limit: 0
|
|
5086
5086
|
* });
|
|
5087
5087
|
*
|
|
5088
5088
|
* // Handle response with warnings
|
|
@@ -5267,9 +5267,9 @@ class BrokersWrapper {
|
|
|
5267
5267
|
* ```typescript-client
|
|
5268
5268
|
* // Full example with optional parameters
|
|
5269
5269
|
* const result = await finatic.getPositionLots({
|
|
5270
|
-
brokerId: '
|
|
5271
|
-
connectionId: '
|
|
5272
|
-
accountId: '
|
|
5270
|
+
brokerId: 'example-id',
|
|
5271
|
+
connectionId: 'example-id',
|
|
5272
|
+
accountId: 'example-id'
|
|
5273
5273
|
* });
|
|
5274
5274
|
*
|
|
5275
5275
|
* // Handle response with warnings
|
|
@@ -5440,7 +5440,7 @@ class BrokersWrapper {
|
|
|
5440
5440
|
* ```typescript-client
|
|
5441
5441
|
* // Minimal example with required parameters only
|
|
5442
5442
|
* const result = await finatic.getPositionLotFills({
|
|
5443
|
-
lotId: '
|
|
5443
|
+
lotId: 'example-id'
|
|
5444
5444
|
* });
|
|
5445
5445
|
*
|
|
5446
5446
|
* // Access the response data
|
|
@@ -5454,9 +5454,9 @@ class BrokersWrapper {
|
|
|
5454
5454
|
* ```typescript-client
|
|
5455
5455
|
* // Full example with optional parameters
|
|
5456
5456
|
* const result = await finatic.getPositionLotFills({
|
|
5457
|
-
lotId: '
|
|
5458
|
-
connectionId: '
|
|
5459
|
-
limit:
|
|
5457
|
+
lotId: 'example-id',
|
|
5458
|
+
connectionId: 'example-id',
|
|
5459
|
+
limit: 0,
|
|
5460
5460
|
offset: 0
|
|
5461
5461
|
* });
|
|
5462
5462
|
*
|
|
@@ -5612,62 +5612,24 @@ class BrokersWrapper {
|
|
|
5612
5612
|
/**
|
|
5613
5613
|
* Place Order
|
|
5614
5614
|
*
|
|
5615
|
-
*
|
|
5616
|
-
*
|
|
5617
|
-
*
|
|
5618
|
-
*
|
|
5619
|
-
*
|
|
5620
|
-
*
|
|
5621
|
-
*
|
|
5622
|
-
*
|
|
5623
|
-
*
|
|
5624
|
-
*
|
|
5625
|
-
*
|
|
5626
|
-
*
|
|
5627
|
-
*
|
|
5628
|
-
*
|
|
5629
|
-
*
|
|
5630
|
-
*
|
|
5631
|
-
*
|
|
5632
|
-
*
|
|
5633
|
-
* - ``order_qty``
|
|
5634
|
-
*
|
|
5635
|
-
* They are surfaced as *query* parameters **only to make the accepted fields
|
|
5636
|
-
* obvious in the interactive docs**. In production usage you should send these
|
|
5637
|
-
* fields inside the JSON body (see ``order_request``) so that the entire order
|
|
5638
|
-
* specification travels in one payload. (Nothing will break if you send both, but there is no need to do so.)
|
|
5639
|
-
*
|
|
5640
|
-
* Body payload & broker-specific extras
|
|
5641
|
-
* -------------------------------------
|
|
5642
|
-
*
|
|
5643
|
-
* Put the standard parameters plus any broker-specific extensions under the
|
|
5644
|
-
* ``order`` key of the body. Refer to the bundled OpenAPI examples below to
|
|
5645
|
-
* see complete payloads for common order types (market, limit, spreads, etc.)
|
|
5646
|
-
* across supported brokers.
|
|
5647
|
-
*
|
|
5648
|
-
* For a formal reference of broker-specific extensions inspect the
|
|
5649
|
-
* ``BrokerOrderPlaceExtras`` schema.
|
|
5650
|
-
*
|
|
5651
|
-
* The endpoint resolves the active ``user_broker_connection`` by calling the
|
|
5652
|
-
* ``get_user_broker_connection_ids_for_broker`` RPC in Supabase. If no active
|
|
5653
|
-
* connection exists it returns a list of *available* brokers so your client
|
|
5654
|
-
* can guide the user accordingly.
|
|
5655
|
-
*
|
|
5656
|
-
* Broker Notes
|
|
5657
|
-
* ------------
|
|
5658
|
-
* - The responses that you get back from the broker are not always the same.
|
|
5659
|
-
* The response models are validated for each broker, but we do not standardize the repsonses.
|
|
5660
|
-
*
|
|
5661
|
-
* - Tasty Trade: If you want to trade options for a particular stock, first fetch the full
|
|
5662
|
-
* option chain via the GET https://api.tastyworks.com/option-chains/{stock_symbol}/nested endpoint.
|
|
5663
|
-
* This endpoint returns all available expirations that tastytrade offers for that equity symbol.
|
|
5664
|
-
* Each expiration contains a list of strikes, where each strike has a call and put field representing
|
|
5665
|
-
* the call symbol and put symbol respectively.
|
|
5666
|
-
*
|
|
5667
|
-
* We are planning to add a new endpoint to fetch the option chain for a particular stock and
|
|
5668
|
-
* handle this logic for you, but for now you need to fetch the option chain manually.
|
|
5669
|
-
* @param params.body {PlaceOrderApiBetaBrokersOrdersPostRequest} (optional) Broker-specific extra parameters object. This is used to pass in broker-specific fields if you want to send a reqeust to a broker API with the parameters that EXTEND our standardized query parameters.
|
|
5670
|
-
* @param params.connectionId {string} (optional) Temporary bypass for testing: specify connection ID directly
|
|
5615
|
+
* Place a new order through the specified broker.
|
|
5616
|
+
*
|
|
5617
|
+
* Creates an order using the broker connection associated with your account.
|
|
5618
|
+
* The order structure includes common fields (symbol, quantity, order type, etc.)
|
|
5619
|
+
* shared across all brokers, plus broker-specific fields that vary by broker.
|
|
5620
|
+
*
|
|
5621
|
+
* Common order fields include: broker, accountNumber, orderType, assetType,
|
|
5622
|
+
* action, timeInForce, symbol, and orderQty. Additional broker-specific fields
|
|
5623
|
+
* can be included in the order object - see the broker-specific tabs in the
|
|
5624
|
+
* parameters section for details.
|
|
5625
|
+
* @param params.broker {string} Broker identifier (robinhood, tasty_trade, ninja_trader)
|
|
5626
|
+
* @param params.accountNumber {number} Account number for the order
|
|
5627
|
+
* @param params.order.orderType {string} Type of order (market, limit, etc.)
|
|
5628
|
+
* @param params.order.assetType {string} Type of asset (equity, equity_option, crypto, forex)
|
|
5629
|
+
* @param params.order.action {string} Order action (buy, sell)
|
|
5630
|
+
* @param params.order.timeInForce {string} Time in force for the order
|
|
5631
|
+
* @param params.order.symbol {string} Trading symbol
|
|
5632
|
+
* @param params.order.orderQty {number} Order quantity
|
|
5671
5633
|
* @returns {Promise<FinaticResponse<OrderActionResult>>} Standard response with success/Error/Warning structure
|
|
5672
5634
|
*
|
|
5673
5635
|
* Generated from: POST /api/beta/brokers/orders
|
|
@@ -5675,35 +5637,30 @@ class BrokersWrapper {
|
|
|
5675
5637
|
* @category brokers
|
|
5676
5638
|
* @example
|
|
5677
5639
|
* ```typescript-client
|
|
5678
|
-
* //
|
|
5679
|
-
* const result = await finatic.placeOrder({});
|
|
5680
|
-
*
|
|
5681
|
-
* // Access the response data
|
|
5682
|
-
* if (result.success) {
|
|
5683
|
-
* console.log('Data:', result.success.data);
|
|
5684
|
-
* }
|
|
5685
|
-
* ```
|
|
5686
|
-
* @example
|
|
5687
|
-
* ```typescript-client
|
|
5688
|
-
* // Full example with optional parameters
|
|
5640
|
+
* // This method requires broker and order with required fields:
|
|
5689
5641
|
* const result = await finatic.placeOrder({
|
|
5690
|
-
|
|
5642
|
+
broker: 'robinhood',
|
|
5643
|
+
order: {
|
|
5644
|
+
orderType: 'market',
|
|
5645
|
+
assetType: 'equity',
|
|
5646
|
+
action: 'buy',
|
|
5647
|
+
timeInForce: 'day',
|
|
5648
|
+
symbol: 'AAPL',
|
|
5649
|
+
orderQty: 10
|
|
5650
|
+
}
|
|
5691
5651
|
* });
|
|
5692
5652
|
*
|
|
5693
|
-
* //
|
|
5653
|
+
* // Access the response data
|
|
5694
5654
|
* if (result.success) {
|
|
5695
5655
|
* console.log('Data:', result.success.data);
|
|
5696
|
-
* if (result.warning && result.warning.length > 0) {
|
|
5697
|
-
* console.warn('Warnings:', result.warning);
|
|
5698
|
-
* }
|
|
5699
5656
|
* } else if (result.error) {
|
|
5700
|
-
* console.error('Error:', result.error.message
|
|
5657
|
+
* console.error('Error:', result.error.message);
|
|
5701
5658
|
* }
|
|
5702
5659
|
* ```
|
|
5703
5660
|
*/
|
|
5704
5661
|
async placeOrder(params) {
|
|
5705
|
-
// Use params object (
|
|
5706
|
-
const resolvedParams = params
|
|
5662
|
+
// Use params object (required parameters present)
|
|
5663
|
+
const resolvedParams = params; // Authentication check
|
|
5707
5664
|
if (!this.sessionId || !this.companyId) {
|
|
5708
5665
|
throw new Error('Session not initialized. Call startSession() first.');
|
|
5709
5666
|
}
|
|
@@ -5732,7 +5689,7 @@ class BrokersWrapper {
|
|
|
5732
5689
|
});
|
|
5733
5690
|
try {
|
|
5734
5691
|
const response = await retryApiCall(async () => {
|
|
5735
|
-
const apiResponse = await this.api.placeOrderApiBetaBrokersOrdersPost({ ...(resolvedParams.
|
|
5692
|
+
const apiResponse = await this.api.placeOrderApiBetaBrokersOrdersPost({ placeOrderApiBetaBrokersOrdersPostRequest: { broker: resolvedParams.broker, order: { accountNumber: resolvedParams.accountNumber, ...resolvedParams.order, ...(resolvedParams.order.timeInForce !== undefined && typeof resolvedParams.order.timeInForce === 'string' ? { timeInForce: { timeInForce: resolvedParams.order.timeInForce } } : resolvedParams.order.timeInForce !== undefined ? { timeInForce: resolvedParams.order.timeInForce } : {}) } } }, { headers: { 'x-request-id': requestId, ...(this.sessionId && this.companyId ? { 'x-session-id': this.sessionId, 'x-company-id': this.companyId, ...(this.csrfToken ? { 'x-csrf-token': this.csrfToken } : {}) } : {}) } });
|
|
5736
5693
|
return await applyResponseInterceptors(apiResponse, this.sdkConfig);
|
|
5737
5694
|
}, {}, this.sdkConfig);
|
|
5738
5695
|
// Unwrap axios response immediately - get FinaticResponse object
|
|
@@ -5832,11 +5789,8 @@ class BrokersWrapper {
|
|
|
5832
5789
|
*
|
|
5833
5790
|
* Cancel an existing order.
|
|
5834
5791
|
*
|
|
5835
|
-
*
|
|
5836
|
-
*
|
|
5837
|
-
*
|
|
5838
|
-
* The order_id is used to identify the order and automatically resolve the
|
|
5839
|
-
* broker connection from the orders table.
|
|
5792
|
+
* Cancels an order by its order ID. The broker connection is automatically
|
|
5793
|
+
* resolved from the order record.
|
|
5840
5794
|
* @param params.orderId {string} Order ID
|
|
5841
5795
|
* @returns {Promise<FinaticResponse<OrderActionResult>>} Standard response with success/Error/Warning structure
|
|
5842
5796
|
*
|
|
@@ -5847,7 +5801,7 @@ class BrokersWrapper {
|
|
|
5847
5801
|
* ```typescript-client
|
|
5848
5802
|
* // Minimal example with required parameters only
|
|
5849
5803
|
* const result = await finatic.cancelOrder({
|
|
5850
|
-
orderId: '
|
|
5804
|
+
orderId: 'example-id'
|
|
5851
5805
|
* });
|
|
5852
5806
|
*
|
|
5853
5807
|
* // Access the response data
|
|
@@ -5989,12 +5943,18 @@ class BrokersWrapper {
|
|
|
5989
5943
|
*
|
|
5990
5944
|
* Modify an existing order.
|
|
5991
5945
|
*
|
|
5992
|
-
*
|
|
5993
|
-
*
|
|
5946
|
+
* Updates an order's parameters (price, quantity, etc.) by order ID.
|
|
5947
|
+
* The order structure follows the same pattern as placing orders, with common
|
|
5948
|
+
* fields shared across brokers and broker-specific fields available per broker.
|
|
5994
5949
|
* @param params.orderId {string} Order ID
|
|
5995
|
-
* @param params.
|
|
5996
|
-
* @param params.accountNumber {
|
|
5997
|
-
* @param params.
|
|
5950
|
+
* @param params.broker {string} Broker identifier (robinhood, tasty_trade, ninja_trader)
|
|
5951
|
+
* @param params.accountNumber {number} Account number for the order
|
|
5952
|
+
* @param params.order.orderType {string} Type of order (market, limit, etc.)
|
|
5953
|
+
* @param params.order.assetType {string} Type of asset (equity, equity_option, crypto, forex)
|
|
5954
|
+
* @param params.order.action {string} Order action (buy, sell)
|
|
5955
|
+
* @param params.order.timeInForce {string} Time in force for the order
|
|
5956
|
+
* @param params.order.symbol {string} Trading symbol
|
|
5957
|
+
* @param params.order.orderQty {number} Order quantity
|
|
5998
5958
|
* @returns {Promise<FinaticResponse<OrderActionResult>>} Standard response with success/Error/Warning structure
|
|
5999
5959
|
*
|
|
6000
5960
|
* Generated from: PATCH /api/beta/brokers/orders/{order_id}
|
|
@@ -6004,7 +5964,7 @@ class BrokersWrapper {
|
|
|
6004
5964
|
* ```typescript-client
|
|
6005
5965
|
* // Minimal example with required parameters only
|
|
6006
5966
|
* const result = await finatic.modifyOrder({
|
|
6007
|
-
orderId: '
|
|
5967
|
+
orderId: 'example-id'
|
|
6008
5968
|
* });
|
|
6009
5969
|
*
|
|
6010
5970
|
* // Access the response data
|
|
@@ -6014,25 +5974,6 @@ class BrokersWrapper {
|
|
|
6014
5974
|
* console.error('Error:', result.error.message);
|
|
6015
5975
|
* }
|
|
6016
5976
|
* ```
|
|
6017
|
-
* @example
|
|
6018
|
-
* ```typescript-client
|
|
6019
|
-
* // Full example with optional parameters
|
|
6020
|
-
* const result = await finatic.modifyOrder({
|
|
6021
|
-
orderId: 'order_1234567890abcdef',
|
|
6022
|
-
accountNumber: '123456789',
|
|
6023
|
-
connectionId: '00000000-0000-0000-0000-000000000000'
|
|
6024
|
-
* });
|
|
6025
|
-
*
|
|
6026
|
-
* // Handle response with warnings
|
|
6027
|
-
* if (result.success) {
|
|
6028
|
-
* console.log('Data:', result.success.data);
|
|
6029
|
-
* if (result.warning && result.warning.length > 0) {
|
|
6030
|
-
* console.warn('Warnings:', result.warning);
|
|
6031
|
-
* }
|
|
6032
|
-
* } else if (result.error) {
|
|
6033
|
-
* console.error('Error:', result.error.message, result.error.code);
|
|
6034
|
-
* }
|
|
6035
|
-
* ```
|
|
6036
5977
|
*/
|
|
6037
5978
|
async modifyOrder(params) {
|
|
6038
5979
|
// Use params object (required parameters present)
|
|
@@ -6065,7 +6006,7 @@ class BrokersWrapper {
|
|
|
6065
6006
|
});
|
|
6066
6007
|
try {
|
|
6067
6008
|
const response = await retryApiCall(async () => {
|
|
6068
|
-
const apiResponse = await this.api.modifyOrderApiBetaBrokersOrdersOrderIdPatch({
|
|
6009
|
+
const apiResponse = await this.api.modifyOrderApiBetaBrokersOrdersOrderIdPatch({ placeOrderApiBetaBrokersOrdersPostRequest: { broker: resolvedParams.broker, order: { accountNumber: resolvedParams.accountNumber, ...resolvedParams.order, ...(resolvedParams.order.timeInForce !== undefined && typeof resolvedParams.order.timeInForce === 'string' ? { timeInForce: { timeInForce: resolvedParams.order.timeInForce } } : resolvedParams.order.timeInForce !== undefined ? { timeInForce: resolvedParams.order.timeInForce } : {}) } } }, { headers: { 'x-request-id': requestId, ...(this.sessionId && this.companyId ? { 'x-session-id': this.sessionId, 'x-company-id': this.companyId, ...(this.csrfToken ? { 'x-csrf-token': this.csrfToken } : {}) } : {}) } });
|
|
6069
6010
|
return await applyResponseInterceptors(apiResponse, this.sdkConfig);
|
|
6070
6011
|
}, {}, this.sdkConfig);
|
|
6071
6012
|
// Unwrap axios response immediately - get FinaticResponse object
|
|
@@ -6213,7 +6154,7 @@ class CompanyWrapper {
|
|
|
6213
6154
|
* ```typescript-client
|
|
6214
6155
|
* // Minimal example with required parameters only
|
|
6215
6156
|
* const result = await finatic.getCompany({
|
|
6216
|
-
companyId: '
|
|
6157
|
+
companyId: 'example-id'
|
|
6217
6158
|
* });
|
|
6218
6159
|
*
|
|
6219
6160
|
* // Access the response data
|
|
@@ -6390,7 +6331,7 @@ class SessionWrapper {
|
|
|
6390
6331
|
*
|
|
6391
6332
|
* Initialize a new session with company API key.
|
|
6392
6333
|
* @param params.xApiKey {string} Company API key
|
|
6393
|
-
* @returns {Promise<FinaticResponse<
|
|
6334
|
+
* @returns {Promise<FinaticResponse<TokenResponseData>>} Standard response with success/Error/Warning structure
|
|
6394
6335
|
*
|
|
6395
6336
|
* Generated from: POST /api/beta/session/init
|
|
6396
6337
|
* @methodId init_session_api_beta_session_init_post
|
|
@@ -6534,21 +6475,12 @@ class SessionWrapper {
|
|
|
6534
6475
|
* Start a session with a one-time token.
|
|
6535
6476
|
* @param params.OneTimeToken {string} One-time use token obtained from init_session endpoint to authenticate and start the session
|
|
6536
6477
|
* @param params.body {SessionStartRequest} Session start request containing optional user ID to associate with the session
|
|
6537
|
-
* @returns {Promise<FinaticResponse<
|
|
6478
|
+
* @returns {Promise<FinaticResponse<SessionResponseData>>} Standard response with success/Error/Warning structure
|
|
6538
6479
|
*
|
|
6539
6480
|
* Generated from: POST /api/beta/session/start
|
|
6540
6481
|
* @methodId start_session_api_beta_session_start_post
|
|
6541
6482
|
* @category session
|
|
6542
|
-
|
|
6543
|
-
* ```typescript-client
|
|
6544
|
-
* // Example with no parameters
|
|
6545
|
-
* const result = await finatic.startSession({});
|
|
6546
|
-
*
|
|
6547
|
-
* // Access the response data
|
|
6548
|
-
* if (result.success) {
|
|
6549
|
-
* console.log('Data:', result.success.data);
|
|
6550
|
-
* }
|
|
6551
|
-
* ```
|
|
6483
|
+
|
|
6552
6484
|
*/
|
|
6553
6485
|
async startSession(params) {
|
|
6554
6486
|
// Use params object (required parameters present)
|
|
@@ -6680,7 +6612,7 @@ class SessionWrapper {
|
|
|
6680
6612
|
* The session must be in ACTIVE or AUTHENTICATING state and the request must come from the same device
|
|
6681
6613
|
* that initiated the session. Device info is automatically validated from the request.
|
|
6682
6614
|
* @param params No parameters required for this method
|
|
6683
|
-
* @returns {Promise<FinaticResponse<
|
|
6615
|
+
* @returns {Promise<FinaticResponse<PortalUrlResponse>>} Standard response with success/Error/Warning structure
|
|
6684
6616
|
*
|
|
6685
6617
|
* Generated from: GET /api/beta/session/portal
|
|
6686
6618
|
* @methodId get_portal_url_api_beta_session_portal_get
|
|
@@ -6837,7 +6769,7 @@ class SessionWrapper {
|
|
|
6837
6769
|
* - Only accessible to authenticated sessions with user_id
|
|
6838
6770
|
* - Validates that header session_id matches path session_id
|
|
6839
6771
|
* @param params.sessionId {string} Session ID
|
|
6840
|
-
* @returns {Promise<FinaticResponse<
|
|
6772
|
+
* @returns {Promise<FinaticResponse<SessionUserResponse>>} Standard response with success/Error/Warning structure
|
|
6841
6773
|
*
|
|
6842
6774
|
* Generated from: GET /api/beta/session/{session_id}/user
|
|
6843
6775
|
* @methodId get_session_user_api_beta_session__session_id__user_get
|
|
@@ -6846,7 +6778,7 @@ class SessionWrapper {
|
|
|
6846
6778
|
* ```typescript-client
|
|
6847
6779
|
* // Minimal example with required parameters only
|
|
6848
6780
|
* const result = await finatic.getSessionUser({
|
|
6849
|
-
sessionId: '
|
|
6781
|
+
sessionId: 'example-id'
|
|
6850
6782
|
* });
|
|
6851
6783
|
*
|
|
6852
6784
|
* // Access the response data
|
|
@@ -10718,7 +10650,7 @@ class SessionApi extends BaseAPI {
|
|
|
10718
10650
|
const BrokersApiAxiosParamCreator = function (configuration) {
|
|
10719
10651
|
return {
|
|
10720
10652
|
/**
|
|
10721
|
-
* Cancel an existing order.
|
|
10653
|
+
* Cancel an existing order. Cancels an order by its order ID. The broker connection is automatically resolved from the order record.
|
|
10722
10654
|
* @summary Cancel Order
|
|
10723
10655
|
* @param {string} orderId Order ID
|
|
10724
10656
|
* @param {*} [options] Override http request option.
|
|
@@ -11414,7 +11346,7 @@ const BrokersApiAxiosParamCreator = function (configuration) {
|
|
|
11414
11346
|
};
|
|
11415
11347
|
},
|
|
11416
11348
|
/**
|
|
11417
|
-
* Modify an existing order.
|
|
11349
|
+
* Modify an existing order. Updates an order\'s parameters (price, quantity, etc.) by order ID. The order structure follows the same pattern as placing orders, with common fields shared across brokers and broker-specific fields available per broker.
|
|
11418
11350
|
* @summary Modify Order
|
|
11419
11351
|
* @param {string} orderId Order ID
|
|
11420
11352
|
* @param {string | null} [accountNumber] Account number owning the order
|
|
@@ -11455,7 +11387,7 @@ const BrokersApiAxiosParamCreator = function (configuration) {
|
|
|
11455
11387
|
};
|
|
11456
11388
|
},
|
|
11457
11389
|
/**
|
|
11458
|
-
*
|
|
11390
|
+
* Place a new order through the specified broker. Creates an order using the broker connection associated with your account. The order structure includes common fields (symbol, quantity, order type, etc.) shared across all brokers, plus broker-specific fields that vary by broker. Common order fields include: broker, accountNumber, orderType, assetType, action, timeInForce, symbol, and orderQty. Additional broker-specific fields can be included in the order object - see the broker-specific tabs in the parameters section for details.
|
|
11459
11391
|
* @summary Place Order
|
|
11460
11392
|
* @param {string | null} [connectionId] Temporary bypass for testing: specify connection ID directly
|
|
11461
11393
|
* @param {PlaceOrderApiBetaBrokersOrdersPostRequest | null} [placeOrderApiBetaBrokersOrdersPostRequest]
|
|
@@ -11496,7 +11428,7 @@ const BrokersApiFp = function (configuration) {
|
|
|
11496
11428
|
const localVarAxiosParamCreator = BrokersApiAxiosParamCreator(configuration);
|
|
11497
11429
|
return {
|
|
11498
11430
|
/**
|
|
11499
|
-
* Cancel an existing order.
|
|
11431
|
+
* Cancel an existing order. Cancels an order by its order ID. The broker connection is automatically resolved from the order record.
|
|
11500
11432
|
* @summary Cancel Order
|
|
11501
11433
|
* @param {string} orderId Order ID
|
|
11502
11434
|
* @param {*} [options] Override http request option.
|
|
@@ -11743,7 +11675,7 @@ const BrokersApiFp = function (configuration) {
|
|
|
11743
11675
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
11744
11676
|
},
|
|
11745
11677
|
/**
|
|
11746
|
-
* Modify an existing order.
|
|
11678
|
+
* Modify an existing order. Updates an order\'s parameters (price, quantity, etc.) by order ID. The order structure follows the same pattern as placing orders, with common fields shared across brokers and broker-specific fields available per broker.
|
|
11747
11679
|
* @summary Modify Order
|
|
11748
11680
|
* @param {string} orderId Order ID
|
|
11749
11681
|
* @param {string | null} [accountNumber] Account number owning the order
|
|
@@ -11759,7 +11691,7 @@ const BrokersApiFp = function (configuration) {
|
|
|
11759
11691
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
11760
11692
|
},
|
|
11761
11693
|
/**
|
|
11762
|
-
*
|
|
11694
|
+
* Place a new order through the specified broker. Creates an order using the broker connection associated with your account. The order structure includes common fields (symbol, quantity, order type, etc.) shared across all brokers, plus broker-specific fields that vary by broker. Common order fields include: broker, accountNumber, orderType, assetType, action, timeInForce, symbol, and orderQty. Additional broker-specific fields can be included in the order object - see the broker-specific tabs in the parameters section for details.
|
|
11763
11695
|
* @summary Place Order
|
|
11764
11696
|
* @param {string | null} [connectionId] Temporary bypass for testing: specify connection ID directly
|
|
11765
11697
|
* @param {PlaceOrderApiBetaBrokersOrdersPostRequest | null} [placeOrderApiBetaBrokersOrdersPostRequest]
|
|
@@ -11779,7 +11711,7 @@ const BrokersApiFp = function (configuration) {
|
|
|
11779
11711
|
*/
|
|
11780
11712
|
class BrokersApi extends BaseAPI {
|
|
11781
11713
|
/**
|
|
11782
|
-
* Cancel an existing order.
|
|
11714
|
+
* Cancel an existing order. Cancels an order by its order ID. The broker connection is automatically resolved from the order record.
|
|
11783
11715
|
* @summary Cancel Order
|
|
11784
11716
|
* @param {BrokersApiCancelOrderApiBetaBrokersOrdersOrderIdDeleteRequest} requestParameters Request parameters.
|
|
11785
11717
|
* @param {*} [options] Override http request option.
|
|
@@ -11917,7 +11849,7 @@ class BrokersApi extends BaseAPI {
|
|
|
11917
11849
|
return BrokersApiFp(this.configuration).listBrokerConnectionsApiBetaBrokersConnectionsGet(options).then((request) => request(this.axios, this.basePath));
|
|
11918
11850
|
}
|
|
11919
11851
|
/**
|
|
11920
|
-
* Modify an existing order.
|
|
11852
|
+
* Modify an existing order. Updates an order\'s parameters (price, quantity, etc.) by order ID. The order structure follows the same pattern as placing orders, with common fields shared across brokers and broker-specific fields available per broker.
|
|
11921
11853
|
* @summary Modify Order
|
|
11922
11854
|
* @param {BrokersApiModifyOrderApiBetaBrokersOrdersOrderIdPatchRequest} requestParameters Request parameters.
|
|
11923
11855
|
* @param {*} [options] Override http request option.
|
|
@@ -11927,7 +11859,7 @@ class BrokersApi extends BaseAPI {
|
|
|
11927
11859
|
return BrokersApiFp(this.configuration).modifyOrderApiBetaBrokersOrdersOrderIdPatch(requestParameters.orderId, requestParameters.accountNumber, requestParameters.connectionId, requestParameters.modifyOrderApiBetaBrokersOrdersOrderIdPatchRequest, options).then((request) => request(this.axios, this.basePath));
|
|
11928
11860
|
}
|
|
11929
11861
|
/**
|
|
11930
|
-
*
|
|
11862
|
+
* Place a new order through the specified broker. Creates an order using the broker connection associated with your account. The order structure includes common fields (symbol, quantity, order type, etc.) shared across all brokers, plus broker-specific fields that vary by broker. Common order fields include: broker, accountNumber, orderType, assetType, action, timeInForce, symbol, and orderQty. Additional broker-specific fields can be included in the order object - see the broker-specific tabs in the parameters section for details.
|
|
11931
11863
|
* @summary Place Order
|
|
11932
11864
|
* @param {BrokersApiPlaceOrderApiBetaBrokersOrdersPostRequest} requestParameters Request parameters.
|
|
11933
11865
|
* @param {*} [options] Override http request option.
|
|
@@ -12476,7 +12408,9 @@ let FinaticConnect$1 = class FinaticConnect extends EventEmitter {
|
|
|
12476
12408
|
const data = response?.success?.data;
|
|
12477
12409
|
return {
|
|
12478
12410
|
user_id: data?.user_id || '',
|
|
12479
|
-
|
|
12411
|
+
// The 'getSessionUser' endpoint currently returns 'SessionUserResponse' which contains 'user_id'.
|
|
12412
|
+
// Company context is tracked from 'startSession' and stored on the instance.
|
|
12413
|
+
company_id: this.companyId || '',
|
|
12480
12414
|
};
|
|
12481
12415
|
}
|
|
12482
12416
|
/**
|
|
@@ -12507,18 +12441,12 @@ let FinaticConnect$1 = class FinaticConnect extends EventEmitter {
|
|
|
12507
12441
|
* Get Company
|
|
12508
12442
|
*
|
|
12509
12443
|
* Get public company details by ID (no user check, no sensitive data).
|
|
12510
|
-
*
|
|
12511
|
-
* Convenience method that delegates to company wrapper.
|
|
12512
|
-
*
|
|
12513
|
-
* @param params - Optional parameters object. Only include the fields you want to use.
|
|
12514
|
-
* Example: getCompany({ accountId: "123", limit: 10, offset: 0 })
|
|
12515
|
-
* @returns FinaticResponse with success, error, and warning fields
|
|
12516
12444
|
* @methodId get_company_api_beta_company__company_id__get
|
|
12517
12445
|
* @category company
|
|
12518
12446
|
* @example
|
|
12519
12447
|
* ```typescript-client
|
|
12520
12448
|
* // Minimal example with required parameters only
|
|
12521
|
-
* const result = await finatic.getCompany({ companyId: '
|
|
12449
|
+
* const result = await finatic.getCompany({ companyId: 'example-id' });
|
|
12522
12450
|
*
|
|
12523
12451
|
* // Access the response data
|
|
12524
12452
|
* if (result.success) {
|
|
@@ -12530,7 +12458,7 @@ let FinaticConnect$1 = class FinaticConnect extends EventEmitter {
|
|
|
12530
12458
|
* @example
|
|
12531
12459
|
* ```typescript-server
|
|
12532
12460
|
* // Minimal example with required parameters only
|
|
12533
|
-
* const result = await finatic.getCompany({ companyId: '
|
|
12461
|
+
* const result = await finatic.getCompany({ companyId: 'example-id' });
|
|
12534
12462
|
*
|
|
12535
12463
|
* // Access the response data
|
|
12536
12464
|
* if (result.success) {
|
|
@@ -12543,7 +12471,7 @@ let FinaticConnect$1 = class FinaticConnect extends EventEmitter {
|
|
|
12543
12471
|
* ```python
|
|
12544
12472
|
* # Minimal example with required parameters only
|
|
12545
12473
|
* result = await finatic.get_company(
|
|
12546
|
-
* company_id='
|
|
12474
|
+
* company_id='example'
|
|
12547
12475
|
* )
|
|
12548
12476
|
*
|
|
12549
12477
|
* # Access the response data
|
|
@@ -12564,12 +12492,6 @@ let FinaticConnect$1 = class FinaticConnect extends EventEmitter {
|
|
|
12564
12492
|
* Returns array of current balances (one per unit_code per account).
|
|
12565
12493
|
* This endpoint is accessible from the portal and uses session-only authentication.
|
|
12566
12494
|
* Returns balances from connections the company has read access to.
|
|
12567
|
-
*
|
|
12568
|
-
* Convenience method that delegates to brokers wrapper.
|
|
12569
|
-
*
|
|
12570
|
-
* @param params - Optional parameters object. Only include the fields you want to use.
|
|
12571
|
-
* Example: getBalances({ accountId: "123", limit: 10, offset: 0 })
|
|
12572
|
-
* @returns FinaticResponse with success, error, and warning fields
|
|
12573
12495
|
* @methodId get_balances_api_beta_brokers_data_balances_get
|
|
12574
12496
|
* @category brokers
|
|
12575
12497
|
* @example
|
|
@@ -12585,7 +12507,7 @@ let FinaticConnect$1 = class FinaticConnect extends EventEmitter {
|
|
|
12585
12507
|
* @example
|
|
12586
12508
|
* ```typescript-client
|
|
12587
12509
|
* // Full example with optional parameters
|
|
12588
|
-
* const result = await finatic.getBalances({ brokerId: '
|
|
12510
|
+
* const result = await finatic.getBalances({ brokerId: 'example-id', connectionId: 'example-id', accountId: 'example-id' });
|
|
12589
12511
|
*
|
|
12590
12512
|
* // Handle response with warnings
|
|
12591
12513
|
* if (result.success) {
|
|
@@ -12620,9 +12542,9 @@ let FinaticConnect$1 = class FinaticConnect extends EventEmitter {
|
|
|
12620
12542
|
* ```python
|
|
12621
12543
|
* # Full example with optional parameters
|
|
12622
12544
|
* result = await finatic.get_balances(
|
|
12623
|
-
* broker_id='
|
|
12624
|
-
connection_id='
|
|
12625
|
-
account_id='
|
|
12545
|
+
* broker_id='example',
|
|
12546
|
+
connection_id='example',
|
|
12547
|
+
account_id='example'
|
|
12626
12548
|
* )
|
|
12627
12549
|
*
|
|
12628
12550
|
* # Handle response with warnings
|
|
@@ -12644,12 +12566,6 @@ let FinaticConnect$1 = class FinaticConnect extends EventEmitter {
|
|
|
12644
12566
|
*
|
|
12645
12567
|
* This endpoint is accessible from the portal and uses session-only authentication.
|
|
12646
12568
|
* Returns accounts from connections the company has read access to.
|
|
12647
|
-
*
|
|
12648
|
-
* Convenience method that delegates to brokers wrapper.
|
|
12649
|
-
*
|
|
12650
|
-
* @param params - Optional parameters object. Only include the fields you want to use.
|
|
12651
|
-
* Example: getAccounts({ accountId: "123", limit: 10, offset: 0 })
|
|
12652
|
-
* @returns FinaticResponse with success, error, and warning fields
|
|
12653
12569
|
* @methodId get_accounts_api_beta_brokers_data_accounts_get
|
|
12654
12570
|
* @category brokers
|
|
12655
12571
|
* @example
|
|
@@ -12665,7 +12581,7 @@ let FinaticConnect$1 = class FinaticConnect extends EventEmitter {
|
|
|
12665
12581
|
* @example
|
|
12666
12582
|
* ```typescript-client
|
|
12667
12583
|
* // Full example with optional parameters
|
|
12668
|
-
* const result = await finatic.getAccounts({ brokerId: '
|
|
12584
|
+
* const result = await finatic.getAccounts({ brokerId: 'example-id', connectionId: 'example-id', accountType: 'margin' });
|
|
12669
12585
|
*
|
|
12670
12586
|
* // Handle response with warnings
|
|
12671
12587
|
* if (result.success) {
|
|
@@ -12700,8 +12616,8 @@ let FinaticConnect$1 = class FinaticConnect extends EventEmitter {
|
|
|
12700
12616
|
* ```python
|
|
12701
12617
|
* # Full example with optional parameters
|
|
12702
12618
|
* result = await finatic.get_accounts(
|
|
12703
|
-
* broker_id='
|
|
12704
|
-
connection_id='
|
|
12619
|
+
* broker_id='example',
|
|
12620
|
+
connection_id='example',
|
|
12705
12621
|
account_type='margin'
|
|
12706
12622
|
* )
|
|
12707
12623
|
*
|
|
@@ -12729,12 +12645,6 @@ let FinaticConnect$1 = class FinaticConnect extends EventEmitter {
|
|
|
12729
12645
|
* -------
|
|
12730
12646
|
* FinaticResponse[list[BrokerInfo]]
|
|
12731
12647
|
* list of available brokers with their metadata.
|
|
12732
|
-
*
|
|
12733
|
-
* Convenience method that delegates to brokers wrapper.
|
|
12734
|
-
*
|
|
12735
|
-
* @param params - Optional parameters object. Only include the fields you want to use.
|
|
12736
|
-
* Example: getBrokers({ accountId: "123", limit: 10, offset: 0 })
|
|
12737
|
-
* @returns FinaticResponse with success, error, and warning fields
|
|
12738
12648
|
* @methodId get_brokers_api_beta_brokers__get
|
|
12739
12649
|
* @category brokers
|
|
12740
12650
|
* @example
|
|
@@ -12778,12 +12688,6 @@ let FinaticConnect$1 = class FinaticConnect extends EventEmitter {
|
|
|
12778
12688
|
* This endpoint is accessible from the portal and uses session-only authentication.
|
|
12779
12689
|
* Returns connections that the user has any permissions for, including the current
|
|
12780
12690
|
* company's permissions (read/write) for each connection.
|
|
12781
|
-
*
|
|
12782
|
-
* Convenience method that delegates to brokers wrapper.
|
|
12783
|
-
*
|
|
12784
|
-
* @param params - Optional parameters object. Only include the fields you want to use.
|
|
12785
|
-
* Example: getBrokerConnections({ accountId: "123", limit: 10, offset: 0 })
|
|
12786
|
-
* @returns FinaticResponse with success, error, and warning fields
|
|
12787
12691
|
* @methodId list_broker_connections_api_beta_brokers_connections_get
|
|
12788
12692
|
* @category brokers
|
|
12789
12693
|
* @example
|
|
@@ -12826,18 +12730,12 @@ let FinaticConnect$1 = class FinaticConnect extends EventEmitter {
|
|
|
12826
12730
|
*
|
|
12827
12731
|
* If the company is the only one with access, the entire connection is deleted.
|
|
12828
12732
|
* If other companies have access, only the company's access is removed.
|
|
12829
|
-
*
|
|
12830
|
-
* Convenience method that delegates to brokers wrapper.
|
|
12831
|
-
*
|
|
12832
|
-
* @param params - Optional parameters object. Only include the fields you want to use.
|
|
12833
|
-
* Example: disconnectCompanyFromBroker({ accountId: "123", limit: 10, offset: 0 })
|
|
12834
|
-
* @returns FinaticResponse with success, error, and warning fields
|
|
12835
12733
|
* @methodId disconnect_company_from_broker_api_beta_brokers_disconnect_company__connection_id__delete
|
|
12836
12734
|
* @category brokers
|
|
12837
12735
|
* @example
|
|
12838
12736
|
* ```typescript-client
|
|
12839
12737
|
* // Minimal example with required parameters only
|
|
12840
|
-
* const result = await finatic.disconnectCompanyFromBroker({ connectionId: '
|
|
12738
|
+
* const result = await finatic.disconnectCompanyFromBroker({ connectionId: 'example-id' });
|
|
12841
12739
|
*
|
|
12842
12740
|
* // Access the response data
|
|
12843
12741
|
* if (result.success) {
|
|
@@ -12849,7 +12747,7 @@ let FinaticConnect$1 = class FinaticConnect extends EventEmitter {
|
|
|
12849
12747
|
* @example
|
|
12850
12748
|
* ```typescript-server
|
|
12851
12749
|
* // Minimal example with required parameters only
|
|
12852
|
-
* const result = await finatic.disconnectCompanyFromBroker({ connectionId: '
|
|
12750
|
+
* const result = await finatic.disconnectCompanyFromBroker({ connectionId: 'example-id' });
|
|
12853
12751
|
*
|
|
12854
12752
|
* // Access the response data
|
|
12855
12753
|
* if (result.success) {
|
|
@@ -12862,7 +12760,7 @@ let FinaticConnect$1 = class FinaticConnect extends EventEmitter {
|
|
|
12862
12760
|
* ```python
|
|
12863
12761
|
* # Minimal example with required parameters only
|
|
12864
12762
|
* result = await finatic.disconnect_company_from_broker(
|
|
12865
|
-
* connection_id='
|
|
12763
|
+
* connection_id='example'
|
|
12866
12764
|
* )
|
|
12867
12765
|
*
|
|
12868
12766
|
* # Access the response data
|
|
@@ -12882,12 +12780,6 @@ let FinaticConnect$1 = class FinaticConnect extends EventEmitter {
|
|
|
12882
12780
|
*
|
|
12883
12781
|
* This endpoint is accessible from the portal and uses session-only authentication.
|
|
12884
12782
|
* Returns orders from connections the company has read access to.
|
|
12885
|
-
*
|
|
12886
|
-
* Convenience method that delegates to brokers wrapper.
|
|
12887
|
-
*
|
|
12888
|
-
* @param params - Optional parameters object. Only include the fields you want to use.
|
|
12889
|
-
* Example: getOrders({ accountId: "123", limit: 10, offset: 0 })
|
|
12890
|
-
* @returns FinaticResponse with success, error, and warning fields
|
|
12891
12783
|
* @methodId get_orders_api_beta_brokers_data_orders_get
|
|
12892
12784
|
* @category brokers
|
|
12893
12785
|
* @example
|
|
@@ -12903,7 +12795,7 @@ let FinaticConnect$1 = class FinaticConnect extends EventEmitter {
|
|
|
12903
12795
|
* @example
|
|
12904
12796
|
* ```typescript-client
|
|
12905
12797
|
* // Full example with optional parameters
|
|
12906
|
-
* const result = await finatic.getOrders({ brokerId: '
|
|
12798
|
+
* const result = await finatic.getOrders({ brokerId: 'example-id', connectionId: 'example-id', accountId: 'example-id' });
|
|
12907
12799
|
*
|
|
12908
12800
|
* // Handle response with warnings
|
|
12909
12801
|
* if (result.success) {
|
|
@@ -12938,9 +12830,9 @@ let FinaticConnect$1 = class FinaticConnect extends EventEmitter {
|
|
|
12938
12830
|
* ```python
|
|
12939
12831
|
* # Full example with optional parameters
|
|
12940
12832
|
* result = await finatic.get_orders(
|
|
12941
|
-
* broker_id='
|
|
12942
|
-
connection_id='
|
|
12943
|
-
account_id='
|
|
12833
|
+
* broker_id='example',
|
|
12834
|
+
connection_id='example',
|
|
12835
|
+
account_id='example'
|
|
12944
12836
|
* )
|
|
12945
12837
|
*
|
|
12946
12838
|
* # Handle response with warnings
|
|
@@ -12962,12 +12854,6 @@ let FinaticConnect$1 = class FinaticConnect extends EventEmitter {
|
|
|
12962
12854
|
*
|
|
12963
12855
|
* This endpoint is accessible from the portal and uses session-only authentication.
|
|
12964
12856
|
* Returns positions from connections the company has read access to.
|
|
12965
|
-
*
|
|
12966
|
-
* Convenience method that delegates to brokers wrapper.
|
|
12967
|
-
*
|
|
12968
|
-
* @param params - Optional parameters object. Only include the fields you want to use.
|
|
12969
|
-
* Example: getPositions({ accountId: "123", limit: 10, offset: 0 })
|
|
12970
|
-
* @returns FinaticResponse with success, error, and warning fields
|
|
12971
12857
|
* @methodId get_positions_api_beta_brokers_data_positions_get
|
|
12972
12858
|
* @category brokers
|
|
12973
12859
|
* @example
|
|
@@ -12983,7 +12869,7 @@ let FinaticConnect$1 = class FinaticConnect extends EventEmitter {
|
|
|
12983
12869
|
* @example
|
|
12984
12870
|
* ```typescript-client
|
|
12985
12871
|
* // Full example with optional parameters
|
|
12986
|
-
* const result = await finatic.getPositions({ brokerId: '
|
|
12872
|
+
* const result = await finatic.getPositions({ brokerId: 'example-id', connectionId: 'example-id', accountId: 'example-id' });
|
|
12987
12873
|
*
|
|
12988
12874
|
* // Handle response with warnings
|
|
12989
12875
|
* if (result.success) {
|
|
@@ -13018,9 +12904,9 @@ let FinaticConnect$1 = class FinaticConnect extends EventEmitter {
|
|
|
13018
12904
|
* ```python
|
|
13019
12905
|
* # Full example with optional parameters
|
|
13020
12906
|
* result = await finatic.get_positions(
|
|
13021
|
-
* broker_id='
|
|
13022
|
-
connection_id='
|
|
13023
|
-
account_id='
|
|
12907
|
+
* broker_id='example',
|
|
12908
|
+
connection_id='example',
|
|
12909
|
+
account_id='example'
|
|
13024
12910
|
* )
|
|
13025
12911
|
*
|
|
13026
12912
|
* # Handle response with warnings
|
|
@@ -13042,12 +12928,6 @@ let FinaticConnect$1 = class FinaticConnect extends EventEmitter {
|
|
|
13042
12928
|
*
|
|
13043
12929
|
* Returns transactions from connections the company has read access to.
|
|
13044
12930
|
* This endpoint is accessible from the portal and uses session-only authentication.
|
|
13045
|
-
*
|
|
13046
|
-
* Convenience method that delegates to brokers wrapper.
|
|
13047
|
-
*
|
|
13048
|
-
* @param params - Optional parameters object. Only include the fields you want to use.
|
|
13049
|
-
* Example: getTransactions({ accountId: "123", limit: 10, offset: 0 })
|
|
13050
|
-
* @returns FinaticResponse with success, error, and warning fields
|
|
13051
12931
|
* @methodId get_transactions_api_beta_brokers_data_transactions_get
|
|
13052
12932
|
* @category brokers
|
|
13053
12933
|
* @example
|
|
@@ -13063,7 +12943,7 @@ let FinaticConnect$1 = class FinaticConnect extends EventEmitter {
|
|
|
13063
12943
|
* @example
|
|
13064
12944
|
* ```typescript-client
|
|
13065
12945
|
* // Full example with optional parameters
|
|
13066
|
-
* const result = await finatic.getTransactions({ brokerId: '
|
|
12946
|
+
* const result = await finatic.getTransactions({ brokerId: 'example-id', connectionId: 'example-id', accountId: 'example-id' });
|
|
13067
12947
|
*
|
|
13068
12948
|
* // Handle response with warnings
|
|
13069
12949
|
* if (result.success) {
|
|
@@ -13098,9 +12978,9 @@ let FinaticConnect$1 = class FinaticConnect extends EventEmitter {
|
|
|
13098
12978
|
* ```python
|
|
13099
12979
|
* # Full example with optional parameters
|
|
13100
12980
|
* result = await finatic.get_transactions(
|
|
13101
|
-
* broker_id='
|
|
13102
|
-
connection_id='
|
|
13103
|
-
account_id='
|
|
12981
|
+
* broker_id='example',
|
|
12982
|
+
connection_id='example',
|
|
12983
|
+
account_id='example'
|
|
13104
12984
|
* )
|
|
13105
12985
|
*
|
|
13106
12986
|
* # Handle response with warnings
|
|
@@ -13121,18 +13001,12 @@ let FinaticConnect$1 = class FinaticConnect extends EventEmitter {
|
|
|
13121
13001
|
* Get order fills for a specific order.
|
|
13122
13002
|
*
|
|
13123
13003
|
* This endpoint returns all execution fills for the specified order.
|
|
13124
|
-
*
|
|
13125
|
-
* Convenience method that delegates to brokers wrapper.
|
|
13126
|
-
*
|
|
13127
|
-
* @param params - Optional parameters object. Only include the fields you want to use.
|
|
13128
|
-
* Example: getOrderFills({ accountId: "123", limit: 10, offset: 0 })
|
|
13129
|
-
* @returns FinaticResponse with success, error, and warning fields
|
|
13130
13004
|
* @methodId get_order_fills_api_beta_brokers_data_orders__order_id__fills_get
|
|
13131
13005
|
* @category brokers
|
|
13132
13006
|
* @example
|
|
13133
13007
|
* ```typescript-client
|
|
13134
13008
|
* // Minimal example with required parameters only
|
|
13135
|
-
* const result = await finatic.getOrderFills({ orderId: '
|
|
13009
|
+
* const result = await finatic.getOrderFills({ orderId: 'example-id' });
|
|
13136
13010
|
*
|
|
13137
13011
|
* // Access the response data
|
|
13138
13012
|
* if (result.success) {
|
|
@@ -13144,7 +13018,7 @@ let FinaticConnect$1 = class FinaticConnect extends EventEmitter {
|
|
|
13144
13018
|
* @example
|
|
13145
13019
|
* ```typescript-client
|
|
13146
13020
|
* // Full example with optional parameters
|
|
13147
|
-
* const result = await finatic.getOrderFills({ orderId: '
|
|
13021
|
+
* const result = await finatic.getOrderFills({ orderId: 'example-id', connectionId: 'example-id', limit: 0, offset: 0 });
|
|
13148
13022
|
*
|
|
13149
13023
|
* // Handle response with warnings
|
|
13150
13024
|
* if (result.success) {
|
|
@@ -13159,7 +13033,7 @@ let FinaticConnect$1 = class FinaticConnect extends EventEmitter {
|
|
|
13159
13033
|
* @example
|
|
13160
13034
|
* ```typescript-server
|
|
13161
13035
|
* // Minimal example with required parameters only
|
|
13162
|
-
* const result = await finatic.getOrderFills({ orderId: '
|
|
13036
|
+
* const result = await finatic.getOrderFills({ orderId: 'example-id' });
|
|
13163
13037
|
*
|
|
13164
13038
|
* // Access the response data
|
|
13165
13039
|
* if (result.success) {
|
|
@@ -13172,7 +13046,7 @@ let FinaticConnect$1 = class FinaticConnect extends EventEmitter {
|
|
|
13172
13046
|
* ```python
|
|
13173
13047
|
* # Minimal example with required parameters only
|
|
13174
13048
|
* result = await finatic.get_order_fills(
|
|
13175
|
-
* order_id='
|
|
13049
|
+
* order_id='example'
|
|
13176
13050
|
* )
|
|
13177
13051
|
*
|
|
13178
13052
|
* # Access the response data
|
|
@@ -13185,10 +13059,10 @@ let FinaticConnect$1 = class FinaticConnect extends EventEmitter {
|
|
|
13185
13059
|
* ```python
|
|
13186
13060
|
* # Full example with optional parameters
|
|
13187
13061
|
* result = await finatic.get_order_fills(
|
|
13188
|
-
* order_id='
|
|
13189
|
-
connection_id='
|
|
13190
|
-
limit=
|
|
13191
|
-
offset=
|
|
13062
|
+
* order_id='example',
|
|
13063
|
+
connection_id='example',
|
|
13064
|
+
limit='example',
|
|
13065
|
+
offset='example'
|
|
13192
13066
|
* )
|
|
13193
13067
|
*
|
|
13194
13068
|
* # Handle response with warnings
|
|
@@ -13209,18 +13083,12 @@ let FinaticConnect$1 = class FinaticConnect extends EventEmitter {
|
|
|
13209
13083
|
* Get order events for a specific order.
|
|
13210
13084
|
*
|
|
13211
13085
|
* This endpoint returns all lifecycle events for the specified order.
|
|
13212
|
-
*
|
|
13213
|
-
* Convenience method that delegates to brokers wrapper.
|
|
13214
|
-
*
|
|
13215
|
-
* @param params - Optional parameters object. Only include the fields you want to use.
|
|
13216
|
-
* Example: getOrderEvents({ accountId: "123", limit: 10, offset: 0 })
|
|
13217
|
-
* @returns FinaticResponse with success, error, and warning fields
|
|
13218
13086
|
* @methodId get_order_events_api_beta_brokers_data_orders__order_id__events_get
|
|
13219
13087
|
* @category brokers
|
|
13220
13088
|
* @example
|
|
13221
13089
|
* ```typescript-client
|
|
13222
13090
|
* // Minimal example with required parameters only
|
|
13223
|
-
* const result = await finatic.getOrderEvents({ orderId: '
|
|
13091
|
+
* const result = await finatic.getOrderEvents({ orderId: 'example-id' });
|
|
13224
13092
|
*
|
|
13225
13093
|
* // Access the response data
|
|
13226
13094
|
* if (result.success) {
|
|
@@ -13232,7 +13100,7 @@ let FinaticConnect$1 = class FinaticConnect extends EventEmitter {
|
|
|
13232
13100
|
* @example
|
|
13233
13101
|
* ```typescript-client
|
|
13234
13102
|
* // Full example with optional parameters
|
|
13235
|
-
* const result = await finatic.getOrderEvents({ orderId: '
|
|
13103
|
+
* const result = await finatic.getOrderEvents({ orderId: 'example-id', connectionId: 'example-id', limit: 0, offset: 0 });
|
|
13236
13104
|
*
|
|
13237
13105
|
* // Handle response with warnings
|
|
13238
13106
|
* if (result.success) {
|
|
@@ -13247,7 +13115,7 @@ let FinaticConnect$1 = class FinaticConnect extends EventEmitter {
|
|
|
13247
13115
|
* @example
|
|
13248
13116
|
* ```typescript-server
|
|
13249
13117
|
* // Minimal example with required parameters only
|
|
13250
|
-
* const result = await finatic.getOrderEvents({ orderId: '
|
|
13118
|
+
* const result = await finatic.getOrderEvents({ orderId: 'example-id' });
|
|
13251
13119
|
*
|
|
13252
13120
|
* // Access the response data
|
|
13253
13121
|
* if (result.success) {
|
|
@@ -13260,7 +13128,7 @@ let FinaticConnect$1 = class FinaticConnect extends EventEmitter {
|
|
|
13260
13128
|
* ```python
|
|
13261
13129
|
* # Minimal example with required parameters only
|
|
13262
13130
|
* result = await finatic.get_order_events(
|
|
13263
|
-
* order_id='
|
|
13131
|
+
* order_id='example'
|
|
13264
13132
|
* )
|
|
13265
13133
|
*
|
|
13266
13134
|
* # Access the response data
|
|
@@ -13273,10 +13141,10 @@ let FinaticConnect$1 = class FinaticConnect extends EventEmitter {
|
|
|
13273
13141
|
* ```python
|
|
13274
13142
|
* # Full example with optional parameters
|
|
13275
13143
|
* result = await finatic.get_order_events(
|
|
13276
|
-
* order_id='
|
|
13277
|
-
connection_id='
|
|
13278
|
-
limit=
|
|
13279
|
-
offset=
|
|
13144
|
+
* order_id='example',
|
|
13145
|
+
connection_id='example',
|
|
13146
|
+
limit='example',
|
|
13147
|
+
offset='example'
|
|
13280
13148
|
* )
|
|
13281
13149
|
*
|
|
13282
13150
|
* # Handle response with warnings
|
|
@@ -13297,12 +13165,6 @@ let FinaticConnect$1 = class FinaticConnect extends EventEmitter {
|
|
|
13297
13165
|
* Get order groups.
|
|
13298
13166
|
*
|
|
13299
13167
|
* This endpoint returns order groups that contain multiple orders.
|
|
13300
|
-
*
|
|
13301
|
-
* Convenience method that delegates to brokers wrapper.
|
|
13302
|
-
*
|
|
13303
|
-
* @param params - Optional parameters object. Only include the fields you want to use.
|
|
13304
|
-
* Example: getOrderGroups({ accountId: "123", limit: 10, offset: 0 })
|
|
13305
|
-
* @returns FinaticResponse with success, error, and warning fields
|
|
13306
13168
|
* @methodId get_order_groups_api_beta_brokers_data_orders_groups_get
|
|
13307
13169
|
* @category brokers
|
|
13308
13170
|
* @example
|
|
@@ -13318,7 +13180,7 @@ let FinaticConnect$1 = class FinaticConnect extends EventEmitter {
|
|
|
13318
13180
|
* @example
|
|
13319
13181
|
* ```typescript-client
|
|
13320
13182
|
* // Full example with optional parameters
|
|
13321
|
-
* const result = await finatic.getOrderGroups({ brokerId: '
|
|
13183
|
+
* const result = await finatic.getOrderGroups({ brokerId: 'example-id', connectionId: 'example-id', limit: 0 });
|
|
13322
13184
|
*
|
|
13323
13185
|
* // Handle response with warnings
|
|
13324
13186
|
* if (result.success) {
|
|
@@ -13353,9 +13215,9 @@ let FinaticConnect$1 = class FinaticConnect extends EventEmitter {
|
|
|
13353
13215
|
* ```python
|
|
13354
13216
|
* # Full example with optional parameters
|
|
13355
13217
|
* result = await finatic.get_order_groups(
|
|
13356
|
-
* broker_id='
|
|
13357
|
-
connection_id='
|
|
13358
|
-
limit=
|
|
13218
|
+
* broker_id='example',
|
|
13219
|
+
connection_id='example',
|
|
13220
|
+
limit='example'
|
|
13359
13221
|
* )
|
|
13360
13222
|
*
|
|
13361
13223
|
* # Handle response with warnings
|
|
@@ -13377,12 +13239,6 @@ let FinaticConnect$1 = class FinaticConnect extends EventEmitter {
|
|
|
13377
13239
|
*
|
|
13378
13240
|
* This endpoint returns tax lots for positions, which are used for tax reporting.
|
|
13379
13241
|
* Each lot tracks when a position was opened/closed and at what prices.
|
|
13380
|
-
*
|
|
13381
|
-
* Convenience method that delegates to brokers wrapper.
|
|
13382
|
-
*
|
|
13383
|
-
* @param params - Optional parameters object. Only include the fields you want to use.
|
|
13384
|
-
* Example: getPositionLots({ accountId: "123", limit: 10, offset: 0 })
|
|
13385
|
-
* @returns FinaticResponse with success, error, and warning fields
|
|
13386
13242
|
* @methodId get_position_lots_api_beta_brokers_data_positions_lots_get
|
|
13387
13243
|
* @category brokers
|
|
13388
13244
|
* @example
|
|
@@ -13398,7 +13254,7 @@ let FinaticConnect$1 = class FinaticConnect extends EventEmitter {
|
|
|
13398
13254
|
* @example
|
|
13399
13255
|
* ```typescript-client
|
|
13400
13256
|
* // Full example with optional parameters
|
|
13401
|
-
* const result = await finatic.getPositionLots({ brokerId: '
|
|
13257
|
+
* const result = await finatic.getPositionLots({ brokerId: 'example-id', connectionId: 'example-id', accountId: 'example-id' });
|
|
13402
13258
|
*
|
|
13403
13259
|
* // Handle response with warnings
|
|
13404
13260
|
* if (result.success) {
|
|
@@ -13433,9 +13289,9 @@ let FinaticConnect$1 = class FinaticConnect extends EventEmitter {
|
|
|
13433
13289
|
* ```python
|
|
13434
13290
|
* # Full example with optional parameters
|
|
13435
13291
|
* result = await finatic.get_position_lots(
|
|
13436
|
-
* broker_id='
|
|
13437
|
-
connection_id='
|
|
13438
|
-
account_id='
|
|
13292
|
+
* broker_id='example',
|
|
13293
|
+
connection_id='example',
|
|
13294
|
+
account_id='example'
|
|
13439
13295
|
* )
|
|
13440
13296
|
*
|
|
13441
13297
|
* # Handle response with warnings
|
|
@@ -13456,18 +13312,12 @@ let FinaticConnect$1 = class FinaticConnect extends EventEmitter {
|
|
|
13456
13312
|
* Get position lot fills for a specific lot.
|
|
13457
13313
|
*
|
|
13458
13314
|
* This endpoint returns all fills associated with a specific position lot.
|
|
13459
|
-
*
|
|
13460
|
-
* Convenience method that delegates to brokers wrapper.
|
|
13461
|
-
*
|
|
13462
|
-
* @param params - Optional parameters object. Only include the fields you want to use.
|
|
13463
|
-
* Example: getPositionLotFills({ accountId: "123", limit: 10, offset: 0 })
|
|
13464
|
-
* @returns FinaticResponse with success, error, and warning fields
|
|
13465
13315
|
* @methodId get_position_lot_fills_api_beta_brokers_data_positions_lots__lot_id__fills_get
|
|
13466
13316
|
* @category brokers
|
|
13467
13317
|
* @example
|
|
13468
13318
|
* ```typescript-client
|
|
13469
13319
|
* // Minimal example with required parameters only
|
|
13470
|
-
* const result = await finatic.getPositionLotFills({ lotId: '
|
|
13320
|
+
* const result = await finatic.getPositionLotFills({ lotId: 'example-id' });
|
|
13471
13321
|
*
|
|
13472
13322
|
* // Access the response data
|
|
13473
13323
|
* if (result.success) {
|
|
@@ -13479,7 +13329,7 @@ let FinaticConnect$1 = class FinaticConnect extends EventEmitter {
|
|
|
13479
13329
|
* @example
|
|
13480
13330
|
* ```typescript-client
|
|
13481
13331
|
* // Full example with optional parameters
|
|
13482
|
-
* const result = await finatic.getPositionLotFills({ lotId: '
|
|
13332
|
+
* const result = await finatic.getPositionLotFills({ lotId: 'example-id', connectionId: 'example-id', limit: 0, offset: 0 });
|
|
13483
13333
|
*
|
|
13484
13334
|
* // Handle response with warnings
|
|
13485
13335
|
* if (result.success) {
|
|
@@ -13494,7 +13344,7 @@ let FinaticConnect$1 = class FinaticConnect extends EventEmitter {
|
|
|
13494
13344
|
* @example
|
|
13495
13345
|
* ```typescript-server
|
|
13496
13346
|
* // Minimal example with required parameters only
|
|
13497
|
-
* const result = await finatic.getPositionLotFills({ lotId: '
|
|
13347
|
+
* const result = await finatic.getPositionLotFills({ lotId: 'example-id' });
|
|
13498
13348
|
*
|
|
13499
13349
|
* // Access the response data
|
|
13500
13350
|
* if (result.success) {
|
|
@@ -13507,7 +13357,7 @@ let FinaticConnect$1 = class FinaticConnect extends EventEmitter {
|
|
|
13507
13357
|
* ```python
|
|
13508
13358
|
* # Minimal example with required parameters only
|
|
13509
13359
|
* result = await finatic.get_position_lot_fills(
|
|
13510
|
-
* lot_id='
|
|
13360
|
+
* lot_id='example'
|
|
13511
13361
|
* )
|
|
13512
13362
|
*
|
|
13513
13363
|
* # Access the response data
|
|
@@ -13520,10 +13370,10 @@ let FinaticConnect$1 = class FinaticConnect extends EventEmitter {
|
|
|
13520
13370
|
* ```python
|
|
13521
13371
|
* # Full example with optional parameters
|
|
13522
13372
|
* result = await finatic.get_position_lot_fills(
|
|
13523
|
-
* lot_id='
|
|
13524
|
-
connection_id='
|
|
13525
|
-
limit=
|
|
13526
|
-
offset=
|
|
13373
|
+
* lot_id='example',
|
|
13374
|
+
connection_id='example',
|
|
13375
|
+
limit='example',
|
|
13376
|
+
offset='example'
|
|
13527
13377
|
* )
|
|
13528
13378
|
*
|
|
13529
13379
|
* # Handle response with warnings
|
|
@@ -13541,91 +13391,38 @@ let FinaticConnect$1 = class FinaticConnect extends EventEmitter {
|
|
|
13541
13391
|
/**
|
|
13542
13392
|
* Place Order
|
|
13543
13393
|
*
|
|
13544
|
-
*
|
|
13394
|
+
* Place a new order through the specified broker.
|
|
13545
13395
|
*
|
|
13546
|
-
*
|
|
13547
|
-
*
|
|
13548
|
-
*
|
|
13549
|
-
*
|
|
13550
|
-
*
|
|
13551
|
-
*
|
|
13552
|
-
*
|
|
13553
|
-
*
|
|
13554
|
-
*
|
|
13555
|
-
* - ``broker``
|
|
13556
|
-
* - ``account_number``
|
|
13557
|
-
* - ``order_type``
|
|
13558
|
-
* - ``asset_type``
|
|
13559
|
-
* - ``action``
|
|
13560
|
-
* - ``time_in_force``
|
|
13561
|
-
* - ``symbol``
|
|
13562
|
-
* - ``order_qty``
|
|
13563
|
-
*
|
|
13564
|
-
* They are surfaced as *query* parameters **only to make the accepted fields
|
|
13565
|
-
* obvious in the interactive docs**. In production usage you should send these
|
|
13566
|
-
* fields inside the JSON body (see ``order_request``) so that the entire order
|
|
13567
|
-
* specification travels in one payload. (Nothing will break if you send both, but there is no need to do so.)
|
|
13568
|
-
*
|
|
13569
|
-
* Body payload & broker-specific extras
|
|
13570
|
-
* -------------------------------------
|
|
13571
|
-
*
|
|
13572
|
-
* Put the standard parameters plus any broker-specific extensions under the
|
|
13573
|
-
* ``order`` key of the body. Refer to the bundled OpenAPI examples below to
|
|
13574
|
-
* see complete payloads for common order types (market, limit, spreads, etc.)
|
|
13575
|
-
* across supported brokers.
|
|
13576
|
-
*
|
|
13577
|
-
* For a formal reference of broker-specific extensions inspect the
|
|
13578
|
-
* ``BrokerOrderPlaceExtras`` schema.
|
|
13579
|
-
*
|
|
13580
|
-
* The endpoint resolves the active ``user_broker_connection`` by calling the
|
|
13581
|
-
* ``get_user_broker_connection_ids_for_broker`` RPC in Supabase. If no active
|
|
13582
|
-
* connection exists it returns a list of *available* brokers so your client
|
|
13583
|
-
* can guide the user accordingly.
|
|
13584
|
-
*
|
|
13585
|
-
* Broker Notes
|
|
13586
|
-
* ------------
|
|
13587
|
-
* - The responses that you get back from the broker are not always the same.
|
|
13588
|
-
* The response models are validated for each broker, but we do not standardize the repsonses.
|
|
13589
|
-
*
|
|
13590
|
-
* - Tasty Trade: If you want to trade options for a particular stock, first fetch the full
|
|
13591
|
-
* option chain via the GET https://api.tastyworks.com/option-chains/{stock_symbol}/nested endpoint.
|
|
13592
|
-
* This endpoint returns all available expirations that tastytrade offers for that equity symbol.
|
|
13593
|
-
* Each expiration contains a list of strikes, where each strike has a call and put field representing
|
|
13594
|
-
* the call symbol and put symbol respectively.
|
|
13595
|
-
*
|
|
13596
|
-
* We are planning to add a new endpoint to fetch the option chain for a particular stock and
|
|
13597
|
-
* handle this logic for you, but for now you need to fetch the option chain manually.
|
|
13598
|
-
*
|
|
13599
|
-
* Convenience method that delegates to brokers wrapper.
|
|
13600
|
-
*
|
|
13601
|
-
* @param params - Optional parameters object. Only include the fields you want to use.
|
|
13602
|
-
* Example: placeOrder({ accountId: "123", limit: 10, offset: 0 })
|
|
13603
|
-
* @returns FinaticResponse with success, error, and warning fields
|
|
13396
|
+
* Creates an order using the broker connection associated with your account.
|
|
13397
|
+
* The order structure includes common fields (symbol, quantity, order type, etc.)
|
|
13398
|
+
* shared across all brokers, plus broker-specific fields that vary by broker.
|
|
13399
|
+
*
|
|
13400
|
+
* Common order fields include: broker, accountNumber, orderType, assetType,
|
|
13401
|
+
* action, timeInForce, symbol, and orderQty. Additional broker-specific fields
|
|
13402
|
+
* can be included in the order object - see the broker-specific tabs in the
|
|
13403
|
+
* parameters section for details.
|
|
13604
13404
|
* @methodId place_order_api_beta_brokers_orders_post
|
|
13605
13405
|
* @category brokers
|
|
13606
13406
|
* @example
|
|
13607
13407
|
* ```typescript-client
|
|
13608
|
-
* //
|
|
13609
|
-
* const result = await finatic.placeOrder(
|
|
13408
|
+
* // This method requires the following required fields:
|
|
13409
|
+
* const result = await finatic.placeOrder({
|
|
13410
|
+
broker: 'robinhood',
|
|
13411
|
+
order: {
|
|
13412
|
+
orderType: 'market',
|
|
13413
|
+
assetType: 'equity',
|
|
13414
|
+
action: 'buy',
|
|
13415
|
+
timeInForce: 'day',
|
|
13416
|
+
symbol: 'AAPL',
|
|
13417
|
+
orderQty: 10
|
|
13418
|
+
}
|
|
13419
|
+
* });
|
|
13610
13420
|
*
|
|
13611
13421
|
* // Access the response data
|
|
13612
13422
|
* if (result.success) {
|
|
13613
13423
|
* console.log('Data:', result.success.data);
|
|
13614
|
-
* }
|
|
13615
|
-
* ```
|
|
13616
|
-
* @example
|
|
13617
|
-
* ```typescript-client
|
|
13618
|
-
* // Full example with optional parameters
|
|
13619
|
-
* const result = await finatic.placeOrder({ connectionId: '00000000-0000-0000-0000-000000000000' });
|
|
13620
|
-
*
|
|
13621
|
-
* // Handle response with warnings
|
|
13622
|
-
* if (result.success) {
|
|
13623
|
-
* console.log('Data:', result.success.data);
|
|
13624
|
-
* if (result.warning && result.warning.length > 0) {
|
|
13625
|
-
* console.warn('Warnings:', result.warning);
|
|
13626
|
-
* }
|
|
13627
13424
|
* } else if (result.error) {
|
|
13628
|
-
* console.error('Error:', result.error.message
|
|
13425
|
+
* console.error('Error:', result.error.message);
|
|
13629
13426
|
* }
|
|
13630
13427
|
* ```
|
|
13631
13428
|
* @example
|
|
@@ -13651,7 +13448,7 @@ let FinaticConnect$1 = class FinaticConnect extends EventEmitter {
|
|
|
13651
13448
|
* ```python
|
|
13652
13449
|
* # Full example with optional parameters
|
|
13653
13450
|
* result = await finatic.place_order(
|
|
13654
|
-
* connection_id='
|
|
13451
|
+
* connection_id='example'
|
|
13655
13452
|
* )
|
|
13656
13453
|
*
|
|
13657
13454
|
* # Handle response with warnings
|
|
@@ -13671,23 +13468,14 @@ let FinaticConnect$1 = class FinaticConnect extends EventEmitter {
|
|
|
13671
13468
|
*
|
|
13672
13469
|
* Cancel an existing order.
|
|
13673
13470
|
*
|
|
13674
|
-
*
|
|
13675
|
-
*
|
|
13676
|
-
*
|
|
13677
|
-
* The order_id is used to identify the order and automatically resolve the
|
|
13678
|
-
* broker connection from the orders table.
|
|
13679
|
-
*
|
|
13680
|
-
* Convenience method that delegates to brokers wrapper.
|
|
13681
|
-
*
|
|
13682
|
-
* @param params - Optional parameters object. Only include the fields you want to use.
|
|
13683
|
-
* Example: cancelOrder({ accountId: "123", limit: 10, offset: 0 })
|
|
13684
|
-
* @returns FinaticResponse with success, error, and warning fields
|
|
13471
|
+
* Cancels an order by its order ID. The broker connection is automatically
|
|
13472
|
+
* resolved from the order record.
|
|
13685
13473
|
* @methodId cancel_order_api_beta_brokers_orders__order_id__delete
|
|
13686
13474
|
* @category brokers
|
|
13687
13475
|
* @example
|
|
13688
13476
|
* ```typescript-client
|
|
13689
13477
|
* // Minimal example with required parameters only
|
|
13690
|
-
* const result = await finatic.cancelOrder({ orderId: '
|
|
13478
|
+
* const result = await finatic.cancelOrder({ orderId: 'example-id' });
|
|
13691
13479
|
*
|
|
13692
13480
|
* // Access the response data
|
|
13693
13481
|
* if (result.success) {
|
|
@@ -13699,7 +13487,7 @@ let FinaticConnect$1 = class FinaticConnect extends EventEmitter {
|
|
|
13699
13487
|
* @example
|
|
13700
13488
|
* ```typescript-server
|
|
13701
13489
|
* // Minimal example with required parameters only
|
|
13702
|
-
* const result = await finatic.cancelOrder({ orderId: '
|
|
13490
|
+
* const result = await finatic.cancelOrder({ orderId: 'example-id' });
|
|
13703
13491
|
*
|
|
13704
13492
|
* // Access the response data
|
|
13705
13493
|
* if (result.success) {
|
|
@@ -13712,7 +13500,7 @@ let FinaticConnect$1 = class FinaticConnect extends EventEmitter {
|
|
|
13712
13500
|
* ```python
|
|
13713
13501
|
* # Minimal example with required parameters only
|
|
13714
13502
|
* result = await finatic.cancel_order(
|
|
13715
|
-
* order_id='
|
|
13503
|
+
* order_id='example'
|
|
13716
13504
|
* )
|
|
13717
13505
|
*
|
|
13718
13506
|
* # Access the response data
|
|
@@ -13730,20 +13518,15 @@ let FinaticConnect$1 = class FinaticConnect extends EventEmitter {
|
|
|
13730
13518
|
*
|
|
13731
13519
|
* Modify an existing order.
|
|
13732
13520
|
*
|
|
13733
|
-
*
|
|
13734
|
-
*
|
|
13735
|
-
*
|
|
13736
|
-
* Convenience method that delegates to brokers wrapper.
|
|
13737
|
-
*
|
|
13738
|
-
* @param params - Optional parameters object. Only include the fields you want to use.
|
|
13739
|
-
* Example: modifyOrder({ accountId: "123", limit: 10, offset: 0 })
|
|
13740
|
-
* @returns FinaticResponse with success, error, and warning fields
|
|
13521
|
+
* Updates an order's parameters (price, quantity, etc.) by order ID.
|
|
13522
|
+
* The order structure follows the same pattern as placing orders, with common
|
|
13523
|
+
* fields shared across brokers and broker-specific fields available per broker.
|
|
13741
13524
|
* @methodId modify_order_api_beta_brokers_orders__order_id__patch
|
|
13742
13525
|
* @category brokers
|
|
13743
13526
|
* @example
|
|
13744
13527
|
* ```typescript-client
|
|
13745
13528
|
* // Minimal example with required parameters only
|
|
13746
|
-
* const result = await finatic.modifyOrder({ orderId: '
|
|
13529
|
+
* const result = await finatic.modifyOrder({ orderId: 'example-id' });
|
|
13747
13530
|
*
|
|
13748
13531
|
* // Access the response data
|
|
13749
13532
|
* if (result.success) {
|
|
@@ -13753,24 +13536,9 @@ let FinaticConnect$1 = class FinaticConnect extends EventEmitter {
|
|
|
13753
13536
|
* }
|
|
13754
13537
|
* ```
|
|
13755
13538
|
* @example
|
|
13756
|
-
* ```typescript-client
|
|
13757
|
-
* // Full example with optional parameters
|
|
13758
|
-
* const result = await finatic.modifyOrder({ orderId: 'order_1234567890abcdef', accountNumber: '123456789', connectionId: '00000000-0000-0000-0000-000000000000' });
|
|
13759
|
-
*
|
|
13760
|
-
* // Handle response with warnings
|
|
13761
|
-
* if (result.success) {
|
|
13762
|
-
* console.log('Data:', result.success.data);
|
|
13763
|
-
* if (result.warning && result.warning.length > 0) {
|
|
13764
|
-
* console.warn('Warnings:', result.warning);
|
|
13765
|
-
* }
|
|
13766
|
-
* } else if (result.error) {
|
|
13767
|
-
* console.error('Error:', result.error.message, result.error.code);
|
|
13768
|
-
* }
|
|
13769
|
-
* ```
|
|
13770
|
-
* @example
|
|
13771
13539
|
* ```typescript-server
|
|
13772
13540
|
* // Minimal example with required parameters only
|
|
13773
|
-
* const result = await finatic.modifyOrder({ orderId: '
|
|
13541
|
+
* const result = await finatic.modifyOrder({ orderId: 'example-id' });
|
|
13774
13542
|
*
|
|
13775
13543
|
* // Access the response data
|
|
13776
13544
|
* if (result.success) {
|
|
@@ -13783,7 +13551,7 @@ let FinaticConnect$1 = class FinaticConnect extends EventEmitter {
|
|
|
13783
13551
|
* ```python
|
|
13784
13552
|
* # Minimal example with required parameters only
|
|
13785
13553
|
* result = await finatic.modify_order(
|
|
13786
|
-
* order_id='
|
|
13554
|
+
* order_id='example'
|
|
13787
13555
|
* )
|
|
13788
13556
|
*
|
|
13789
13557
|
* # Access the response data
|
|
@@ -13796,9 +13564,9 @@ let FinaticConnect$1 = class FinaticConnect extends EventEmitter {
|
|
|
13796
13564
|
* ```python
|
|
13797
13565
|
* # Full example with optional parameters
|
|
13798
13566
|
* result = await finatic.modify_order(
|
|
13799
|
-
* order_id='
|
|
13800
|
-
account_number='
|
|
13801
|
-
connection_id='
|
|
13567
|
+
* order_id='example',
|
|
13568
|
+
account_number='example',
|
|
13569
|
+
connection_id='example'
|
|
13802
13570
|
* )
|
|
13803
13571
|
*
|
|
13804
13572
|
* # Handle response with warnings
|
|
@@ -13828,7 +13596,7 @@ let FinaticConnect$1 = class FinaticConnect extends EventEmitter {
|
|
|
13828
13596
|
* @example
|
|
13829
13597
|
* ```typescript-server
|
|
13830
13598
|
* // Get all items with optional filters
|
|
13831
|
-
* const result = await finatic.getAllBalances({ brokerId: '
|
|
13599
|
+
* const result = await finatic.getAllBalances({ brokerId: 'example-id', connectionId: 'example-id', accountId: 'example-id' });
|
|
13832
13600
|
*
|
|
13833
13601
|
* // Access the response data
|
|
13834
13602
|
* if (result.success) {
|
|
@@ -13843,7 +13611,7 @@ let FinaticConnect$1 = class FinaticConnect extends EventEmitter {
|
|
|
13843
13611
|
* @example
|
|
13844
13612
|
* ```typescript-client
|
|
13845
13613
|
* // Get all items with optional filters
|
|
13846
|
-
* const result = await finatic.getAllBalances({ brokerId: '
|
|
13614
|
+
* const result = await finatic.getAllBalances({ brokerId: 'example-id', connectionId: 'example-id', accountId: 'example-id' });
|
|
13847
13615
|
*
|
|
13848
13616
|
* // Access the response data
|
|
13849
13617
|
* if (result.success) {
|
|
@@ -13859,9 +13627,9 @@ let FinaticConnect$1 = class FinaticConnect extends EventEmitter {
|
|
|
13859
13627
|
* ```python
|
|
13860
13628
|
* # Get all items with optional filters
|
|
13861
13629
|
* result = await finatic.get_all_balances(
|
|
13862
|
-
* broker_id='
|
|
13863
|
-
connection_id='
|
|
13864
|
-
account_id='
|
|
13630
|
+
* broker_id='example',
|
|
13631
|
+
connection_id='example',
|
|
13632
|
+
account_id='example'
|
|
13865
13633
|
* )
|
|
13866
13634
|
*
|
|
13867
13635
|
* # Access the response data
|
|
@@ -13939,7 +13707,7 @@ let FinaticConnect$1 = class FinaticConnect extends EventEmitter {
|
|
|
13939
13707
|
* @example
|
|
13940
13708
|
* ```typescript-server
|
|
13941
13709
|
* // Get all items with optional filters
|
|
13942
|
-
* const result = await finatic.getAllAccounts({ brokerId: '
|
|
13710
|
+
* const result = await finatic.getAllAccounts({ brokerId: 'example-id', connectionId: 'example-id', accountType: 'margin' });
|
|
13943
13711
|
*
|
|
13944
13712
|
* // Access the response data
|
|
13945
13713
|
* if (result.success) {
|
|
@@ -13954,7 +13722,7 @@ let FinaticConnect$1 = class FinaticConnect extends EventEmitter {
|
|
|
13954
13722
|
* @example
|
|
13955
13723
|
* ```typescript-client
|
|
13956
13724
|
* // Get all items with optional filters
|
|
13957
|
-
* const result = await finatic.getAllAccounts({ brokerId: '
|
|
13725
|
+
* const result = await finatic.getAllAccounts({ brokerId: 'example-id', connectionId: 'example-id', accountType: 'margin' });
|
|
13958
13726
|
*
|
|
13959
13727
|
* // Access the response data
|
|
13960
13728
|
* if (result.success) {
|
|
@@ -13970,8 +13738,8 @@ let FinaticConnect$1 = class FinaticConnect extends EventEmitter {
|
|
|
13970
13738
|
* ```python
|
|
13971
13739
|
* # Get all items with optional filters
|
|
13972
13740
|
* result = await finatic.get_all_accounts(
|
|
13973
|
-
* broker_id='
|
|
13974
|
-
connection_id='
|
|
13741
|
+
* broker_id='example',
|
|
13742
|
+
connection_id='example',
|
|
13975
13743
|
account_type='margin'
|
|
13976
13744
|
* )
|
|
13977
13745
|
*
|
|
@@ -14050,7 +13818,7 @@ let FinaticConnect$1 = class FinaticConnect extends EventEmitter {
|
|
|
14050
13818
|
* @example
|
|
14051
13819
|
* ```typescript-server
|
|
14052
13820
|
* // Get all items with optional filters
|
|
14053
|
-
* const result = await finatic.getAllOrders({ brokerId: '
|
|
13821
|
+
* const result = await finatic.getAllOrders({ brokerId: 'example-id', connectionId: 'example-id', accountId: 'example-id' });
|
|
14054
13822
|
*
|
|
14055
13823
|
* // Access the response data
|
|
14056
13824
|
* if (result.success) {
|
|
@@ -14065,7 +13833,7 @@ let FinaticConnect$1 = class FinaticConnect extends EventEmitter {
|
|
|
14065
13833
|
* @example
|
|
14066
13834
|
* ```typescript-client
|
|
14067
13835
|
* // Get all items with optional filters
|
|
14068
|
-
* const result = await finatic.getAllOrders({ brokerId: '
|
|
13836
|
+
* const result = await finatic.getAllOrders({ brokerId: 'example-id', connectionId: 'example-id', accountId: 'example-id' });
|
|
14069
13837
|
*
|
|
14070
13838
|
* // Access the response data
|
|
14071
13839
|
* if (result.success) {
|
|
@@ -14081,9 +13849,9 @@ let FinaticConnect$1 = class FinaticConnect extends EventEmitter {
|
|
|
14081
13849
|
* ```python
|
|
14082
13850
|
* # Get all items with optional filters
|
|
14083
13851
|
* result = await finatic.get_all_orders(
|
|
14084
|
-
* broker_id='
|
|
14085
|
-
connection_id='
|
|
14086
|
-
account_id='
|
|
13852
|
+
* broker_id='example',
|
|
13853
|
+
connection_id='example',
|
|
13854
|
+
account_id='example'
|
|
14087
13855
|
* )
|
|
14088
13856
|
*
|
|
14089
13857
|
* # Access the response data
|
|
@@ -14161,7 +13929,7 @@ let FinaticConnect$1 = class FinaticConnect extends EventEmitter {
|
|
|
14161
13929
|
* @example
|
|
14162
13930
|
* ```typescript-server
|
|
14163
13931
|
* // Get all items with optional filters
|
|
14164
|
-
* const result = await finatic.getAllPositions({ brokerId: '
|
|
13932
|
+
* const result = await finatic.getAllPositions({ brokerId: 'example-id', connectionId: 'example-id', accountId: 'example-id' });
|
|
14165
13933
|
*
|
|
14166
13934
|
* // Access the response data
|
|
14167
13935
|
* if (result.success) {
|
|
@@ -14176,7 +13944,7 @@ let FinaticConnect$1 = class FinaticConnect extends EventEmitter {
|
|
|
14176
13944
|
* @example
|
|
14177
13945
|
* ```typescript-client
|
|
14178
13946
|
* // Get all items with optional filters
|
|
14179
|
-
* const result = await finatic.getAllPositions({ brokerId: '
|
|
13947
|
+
* const result = await finatic.getAllPositions({ brokerId: 'example-id', connectionId: 'example-id', accountId: 'example-id' });
|
|
14180
13948
|
*
|
|
14181
13949
|
* // Access the response data
|
|
14182
13950
|
* if (result.success) {
|
|
@@ -14192,9 +13960,9 @@ let FinaticConnect$1 = class FinaticConnect extends EventEmitter {
|
|
|
14192
13960
|
* ```python
|
|
14193
13961
|
* # Get all items with optional filters
|
|
14194
13962
|
* result = await finatic.get_all_positions(
|
|
14195
|
-
* broker_id='
|
|
14196
|
-
connection_id='
|
|
14197
|
-
account_id='
|
|
13963
|
+
* broker_id='example',
|
|
13964
|
+
connection_id='example',
|
|
13965
|
+
account_id='example'
|
|
14198
13966
|
* )
|
|
14199
13967
|
*
|
|
14200
13968
|
* # Access the response data
|
|
@@ -14272,7 +14040,7 @@ let FinaticConnect$1 = class FinaticConnect extends EventEmitter {
|
|
|
14272
14040
|
* @example
|
|
14273
14041
|
* ```typescript-server
|
|
14274
14042
|
* // Get all items with optional filters
|
|
14275
|
-
* const result = await finatic.getAllTransactions({ brokerId: '
|
|
14043
|
+
* const result = await finatic.getAllTransactions({ brokerId: 'example-id', connectionId: 'example-id', accountId: 'example-id' });
|
|
14276
14044
|
*
|
|
14277
14045
|
* // Access the response data
|
|
14278
14046
|
* if (result.success) {
|
|
@@ -14287,7 +14055,7 @@ let FinaticConnect$1 = class FinaticConnect extends EventEmitter {
|
|
|
14287
14055
|
* @example
|
|
14288
14056
|
* ```typescript-client
|
|
14289
14057
|
* // Get all items with optional filters
|
|
14290
|
-
* const result = await finatic.getAllTransactions({ brokerId: '
|
|
14058
|
+
* const result = await finatic.getAllTransactions({ brokerId: 'example-id', connectionId: 'example-id', accountId: 'example-id' });
|
|
14291
14059
|
*
|
|
14292
14060
|
* // Access the response data
|
|
14293
14061
|
* if (result.success) {
|
|
@@ -14303,9 +14071,9 @@ let FinaticConnect$1 = class FinaticConnect extends EventEmitter {
|
|
|
14303
14071
|
* ```python
|
|
14304
14072
|
* # Get all items with optional filters
|
|
14305
14073
|
* result = await finatic.get_all_transactions(
|
|
14306
|
-
* broker_id='
|
|
14307
|
-
connection_id='
|
|
14308
|
-
account_id='
|
|
14074
|
+
* broker_id='example',
|
|
14075
|
+
connection_id='example',
|
|
14076
|
+
account_id='example'
|
|
14309
14077
|
* )
|
|
14310
14078
|
*
|
|
14311
14079
|
* # Access the response data
|
|
@@ -14383,7 +14151,7 @@ let FinaticConnect$1 = class FinaticConnect extends EventEmitter {
|
|
|
14383
14151
|
* @example
|
|
14384
14152
|
* ```typescript-server
|
|
14385
14153
|
* // Get all items with optional filters
|
|
14386
|
-
* const result = await finatic.getAllOrderFills({ connectionId: '
|
|
14154
|
+
* const result = await finatic.getAllOrderFills({ connectionId: 'example-id', includeMetadata: true });
|
|
14387
14155
|
*
|
|
14388
14156
|
* // Access the response data
|
|
14389
14157
|
* if (result.success) {
|
|
@@ -14398,7 +14166,7 @@ let FinaticConnect$1 = class FinaticConnect extends EventEmitter {
|
|
|
14398
14166
|
* @example
|
|
14399
14167
|
* ```typescript-client
|
|
14400
14168
|
* // Get all items with optional filters
|
|
14401
|
-
* const result = await finatic.getAllOrderFills({ connectionId: '
|
|
14169
|
+
* const result = await finatic.getAllOrderFills({ connectionId: 'example-id', includeMetadata: true });
|
|
14402
14170
|
*
|
|
14403
14171
|
* // Access the response data
|
|
14404
14172
|
* if (result.success) {
|
|
@@ -14414,8 +14182,8 @@ let FinaticConnect$1 = class FinaticConnect extends EventEmitter {
|
|
|
14414
14182
|
* ```python
|
|
14415
14183
|
* # Get all items with optional filters
|
|
14416
14184
|
* result = await finatic.get_all_order_fills(
|
|
14417
|
-
* connection_id='
|
|
14418
|
-
include_metadata=
|
|
14185
|
+
* connection_id='example',
|
|
14186
|
+
include_metadata='example'
|
|
14419
14187
|
* )
|
|
14420
14188
|
*
|
|
14421
14189
|
* # Access the response data
|
|
@@ -14493,7 +14261,7 @@ let FinaticConnect$1 = class FinaticConnect extends EventEmitter {
|
|
|
14493
14261
|
* @example
|
|
14494
14262
|
* ```typescript-server
|
|
14495
14263
|
* // Get all items with optional filters
|
|
14496
|
-
* const result = await finatic.getAllOrderEvents({ connectionId: '
|
|
14264
|
+
* const result = await finatic.getAllOrderEvents({ connectionId: 'example-id', includeMetadata: true });
|
|
14497
14265
|
*
|
|
14498
14266
|
* // Access the response data
|
|
14499
14267
|
* if (result.success) {
|
|
@@ -14508,7 +14276,7 @@ let FinaticConnect$1 = class FinaticConnect extends EventEmitter {
|
|
|
14508
14276
|
* @example
|
|
14509
14277
|
* ```typescript-client
|
|
14510
14278
|
* // Get all items with optional filters
|
|
14511
|
-
* const result = await finatic.getAllOrderEvents({ connectionId: '
|
|
14279
|
+
* const result = await finatic.getAllOrderEvents({ connectionId: 'example-id', includeMetadata: true });
|
|
14512
14280
|
*
|
|
14513
14281
|
* // Access the response data
|
|
14514
14282
|
* if (result.success) {
|
|
@@ -14524,8 +14292,8 @@ let FinaticConnect$1 = class FinaticConnect extends EventEmitter {
|
|
|
14524
14292
|
* ```python
|
|
14525
14293
|
* # Get all items with optional filters
|
|
14526
14294
|
* result = await finatic.get_all_order_events(
|
|
14527
|
-
* connection_id='
|
|
14528
|
-
include_metadata=
|
|
14295
|
+
* connection_id='example',
|
|
14296
|
+
include_metadata='example'
|
|
14529
14297
|
* )
|
|
14530
14298
|
*
|
|
14531
14299
|
* # Access the response data
|
|
@@ -14603,7 +14371,7 @@ let FinaticConnect$1 = class FinaticConnect extends EventEmitter {
|
|
|
14603
14371
|
* @example
|
|
14604
14372
|
* ```typescript-server
|
|
14605
14373
|
* // Get all items with optional filters
|
|
14606
|
-
* const result = await finatic.getAllOrderGroups({ brokerId: '
|
|
14374
|
+
* const result = await finatic.getAllOrderGroups({ brokerId: 'example-id', connectionId: 'example-id', createdAfter: 'example' });
|
|
14607
14375
|
*
|
|
14608
14376
|
* // Access the response data
|
|
14609
14377
|
* if (result.success) {
|
|
@@ -14618,7 +14386,7 @@ let FinaticConnect$1 = class FinaticConnect extends EventEmitter {
|
|
|
14618
14386
|
* @example
|
|
14619
14387
|
* ```typescript-client
|
|
14620
14388
|
* // Get all items with optional filters
|
|
14621
|
-
* const result = await finatic.getAllOrderGroups({ brokerId: '
|
|
14389
|
+
* const result = await finatic.getAllOrderGroups({ brokerId: 'example-id', connectionId: 'example-id', createdAfter: 'example' });
|
|
14622
14390
|
*
|
|
14623
14391
|
* // Access the response data
|
|
14624
14392
|
* if (result.success) {
|
|
@@ -14634,9 +14402,9 @@ let FinaticConnect$1 = class FinaticConnect extends EventEmitter {
|
|
|
14634
14402
|
* ```python
|
|
14635
14403
|
* # Get all items with optional filters
|
|
14636
14404
|
* result = await finatic.get_all_order_groups(
|
|
14637
|
-
* broker_id='
|
|
14638
|
-
connection_id='
|
|
14639
|
-
created_after='
|
|
14405
|
+
* broker_id='example',
|
|
14406
|
+
connection_id='example',
|
|
14407
|
+
created_after='example'
|
|
14640
14408
|
* )
|
|
14641
14409
|
*
|
|
14642
14410
|
* # Access the response data
|
|
@@ -14714,7 +14482,7 @@ let FinaticConnect$1 = class FinaticConnect extends EventEmitter {
|
|
|
14714
14482
|
* @example
|
|
14715
14483
|
* ```typescript-server
|
|
14716
14484
|
* // Get all items with optional filters
|
|
14717
|
-
* const result = await finatic.getAllPositionLots({ brokerId: '
|
|
14485
|
+
* const result = await finatic.getAllPositionLots({ brokerId: 'example-id', connectionId: 'example-id', accountId: 'example-id' });
|
|
14718
14486
|
*
|
|
14719
14487
|
* // Access the response data
|
|
14720
14488
|
* if (result.success) {
|
|
@@ -14729,7 +14497,7 @@ let FinaticConnect$1 = class FinaticConnect extends EventEmitter {
|
|
|
14729
14497
|
* @example
|
|
14730
14498
|
* ```typescript-client
|
|
14731
14499
|
* // Get all items with optional filters
|
|
14732
|
-
* const result = await finatic.getAllPositionLots({ brokerId: '
|
|
14500
|
+
* const result = await finatic.getAllPositionLots({ brokerId: 'example-id', connectionId: 'example-id', accountId: 'example-id' });
|
|
14733
14501
|
*
|
|
14734
14502
|
* // Access the response data
|
|
14735
14503
|
* if (result.success) {
|
|
@@ -14745,9 +14513,9 @@ let FinaticConnect$1 = class FinaticConnect extends EventEmitter {
|
|
|
14745
14513
|
* ```python
|
|
14746
14514
|
* # Get all items with optional filters
|
|
14747
14515
|
* result = await finatic.get_all_position_lots(
|
|
14748
|
-
* broker_id='
|
|
14749
|
-
connection_id='
|
|
14750
|
-
account_id='
|
|
14516
|
+
* broker_id='example',
|
|
14517
|
+
connection_id='example',
|
|
14518
|
+
account_id='example'
|
|
14751
14519
|
* )
|
|
14752
14520
|
*
|
|
14753
14521
|
* # Access the response data
|
|
@@ -14825,7 +14593,7 @@ let FinaticConnect$1 = class FinaticConnect extends EventEmitter {
|
|
|
14825
14593
|
* @example
|
|
14826
14594
|
* ```typescript-server
|
|
14827
14595
|
* // Get all items with optional filters
|
|
14828
|
-
* const result = await finatic.getAllPositionLotFills({ connectionId: '
|
|
14596
|
+
* const result = await finatic.getAllPositionLotFills({ connectionId: 'example-id' });
|
|
14829
14597
|
*
|
|
14830
14598
|
* // Access the response data
|
|
14831
14599
|
* if (result.success) {
|
|
@@ -14840,7 +14608,7 @@ let FinaticConnect$1 = class FinaticConnect extends EventEmitter {
|
|
|
14840
14608
|
* @example
|
|
14841
14609
|
* ```typescript-client
|
|
14842
14610
|
* // Get all items with optional filters
|
|
14843
|
-
* const result = await finatic.getAllPositionLotFills({ connectionId: '
|
|
14611
|
+
* const result = await finatic.getAllPositionLotFills({ connectionId: 'example-id' });
|
|
14844
14612
|
*
|
|
14845
14613
|
* // Access the response data
|
|
14846
14614
|
* if (result.success) {
|
|
@@ -14856,7 +14624,7 @@ let FinaticConnect$1 = class FinaticConnect extends EventEmitter {
|
|
|
14856
14624
|
* ```python
|
|
14857
14625
|
* # Get all items with optional filters
|
|
14858
14626
|
* result = await finatic.get_all_position_lot_fills(
|
|
14859
|
-
* connection_id='
|
|
14627
|
+
* connection_id='example'
|
|
14860
14628
|
* )
|
|
14861
14629
|
*
|
|
14862
14630
|
* # Access the response data
|
|
@@ -14941,5 +14709,5 @@ class FinaticConnect extends FinaticConnect$1 {
|
|
|
14941
14709
|
// Marker to verify custom class is being used
|
|
14942
14710
|
FinaticConnect.__CUSTOM_CLASS__ = true;
|
|
14943
14711
|
|
|
14944
|
-
export { ApiError, BrokerDataAccountTypeEnum, BrokerDataAssetTypeEnum, BrokerDataOptionTypeEnum, BrokerDataOrderSideEnum, BrokerDataPositionStatusEnum, BrokersWrapper, CompanyWrapper, Configuration, DayTIFTimeInForceEnum, EventEmitter, FDXAssetType, FDXOrderClass, FDXOrderEventType, FDXOrderGroupType, FDXOrderSide, FDXOrderStatus, FDXOrderType, FDXPositionSide, FDXPositionStatus, FDXSecurityIdType, FDXTimeInForce, FOKTIFTimeInForceEnum, FinaticBrokerFactoryBrokersRobinhoodExecutorsConsumerRobinhoodOrderModifyQueryParamsRobinhoodOptionSpreadLegEffectEnum, FinaticBrokerFactoryBrokersRobinhoodExecutorsConsumerRobinhoodOrderPlaceQueryParamsRobinhoodOptionSpreadLegPositionEffectEnum, FinaticConnect, FinaticError, GTCTIFTimeInForceEnum, GTDTIFTimeInForceEnum, IOCTIFTimeInForceEnum, NinjaTraderLimitOrderModifyQueryParamsAssetTypeEnum, NinjaTraderLimitOrderModifyQueryParamsOrderTypeEnum, NinjaTraderLimitOrderPlaceQueryParamsActionEnum, NinjaTraderLimitOrderPlaceQueryParamsAssetTypeEnum, NinjaTraderLimitOrderPlaceQueryParamsOrderTypeEnum, NinjaTraderMarketOrderModifyQueryParamsAssetTypeEnum, NinjaTraderMarketOrderModifyQueryParamsOrderTypeEnum, NinjaTraderMarketOrderPlaceQueryParamsActionEnum, NinjaTraderMarketOrderPlaceQueryParamsAssetTypeEnum, NinjaTraderMarketOrderPlaceQueryParamsOrderTypeEnum, NinjaTraderOrderModifyRequestBrokerEnum, NinjaTraderOrderPlaceRequestBrokerEnum, NinjaTraderStopOrderModifyQueryParamsAssetTypeEnum, NinjaTraderStopOrderModifyQueryParamsOrderTypeEnum, NinjaTraderStopOrderPlaceQueryParamsActionEnum, NinjaTraderStopOrderPlaceQueryParamsAssetTypeEnum, NinjaTraderStopOrderPlaceQueryParamsOrderTypeEnum, NinjaTraderTrailingStopOrderModifyQueryParamsAssetTypeEnum, NinjaTraderTrailingStopOrderModifyQueryParamsOrderTypeEnum, NinjaTraderTrailingStopOrderPlaceQueryParamsActionEnum, NinjaTraderTrailingStopOrderPlaceQueryParamsAssetTypeEnum, NinjaTraderTrailingStopOrderPlaceQueryParamsOrderTypeEnum, Order1ActionEnum, Order1AmountInEnum, Order1AssetTypeEnum, Order1CreditOrDebitEnum, Order1DirectionEnum, Order1MarketHoursEnum, Order1OptionTypeEnum, Order1OrderTypeEnum, Order1PositionEffectEnum, PaginatedData, RobinhoodCryptoLimitOrderPlaceQueryParamsActionEnum, RobinhoodCryptoLimitOrderPlaceQueryParamsAmountInEnum, RobinhoodCryptoLimitOrderPlaceQueryParamsAssetTypeEnum, RobinhoodCryptoLimitOrderPlaceQueryParamsOrderTypeEnum, RobinhoodCryptoMarketOrderPlaceQueryParamsActionEnum, RobinhoodCryptoMarketOrderPlaceQueryParamsAmountInEnum, RobinhoodCryptoMarketOrderPlaceQueryParamsAssetTypeEnum, RobinhoodCryptoMarketOrderPlaceQueryParamsOrderTypeEnum, RobinhoodCryptoStopLimitOrderPlaceQueryParamsActionEnum, RobinhoodCryptoStopLimitOrderPlaceQueryParamsAmountInEnum, RobinhoodCryptoStopLimitOrderPlaceQueryParamsAssetTypeEnum, RobinhoodCryptoStopLimitOrderPlaceQueryParamsOrderTypeEnum, RobinhoodCryptoStopOrderPlaceQueryParamsActionEnum, RobinhoodCryptoStopOrderPlaceQueryParamsAmountInEnum, RobinhoodCryptoStopOrderPlaceQueryParamsAssetTypeEnum, RobinhoodCryptoStopOrderPlaceQueryParamsOrderTypeEnum, RobinhoodCryptoTrailingStopOrderPlaceQueryParamsActionEnum, RobinhoodCryptoTrailingStopOrderPlaceQueryParamsAmountInEnum, RobinhoodCryptoTrailingStopOrderPlaceQueryParamsAssetTypeEnum, RobinhoodCryptoTrailingStopOrderPlaceQueryParamsOrderTypeEnum, RobinhoodEquityLimitOrderPlaceQueryParamsActionEnum, RobinhoodEquityLimitOrderPlaceQueryParamsAssetTypeEnum, RobinhoodEquityLimitOrderPlaceQueryParamsMarketHoursEnum, RobinhoodEquityLimitOrderPlaceQueryParamsOrderTypeEnum, RobinhoodEquityMarketOrderPlaceQueryParamsActionEnum, RobinhoodEquityMarketOrderPlaceQueryParamsAssetTypeEnum, RobinhoodEquityMarketOrderPlaceQueryParamsMarketHoursEnum, RobinhoodEquityMarketOrderPlaceQueryParamsOrderTypeEnum, RobinhoodEquityStopLimitOrderPlaceQueryParamsActionEnum, RobinhoodEquityStopLimitOrderPlaceQueryParamsAssetTypeEnum, RobinhoodEquityStopLimitOrderPlaceQueryParamsMarketHoursEnum, RobinhoodEquityStopLimitOrderPlaceQueryParamsOrderTypeEnum, RobinhoodEquityStopOrderPlaceQueryParamsActionEnum, RobinhoodEquityStopOrderPlaceQueryParamsAssetTypeEnum, RobinhoodEquityStopOrderPlaceQueryParamsMarketHoursEnum, RobinhoodEquityStopOrderPlaceQueryParamsOrderTypeEnum, RobinhoodEquityTrailingStopOrderPlaceQueryParamsActionEnum, RobinhoodEquityTrailingStopOrderPlaceQueryParamsAssetTypeEnum, RobinhoodEquityTrailingStopOrderPlaceQueryParamsMarketHoursEnum, RobinhoodEquityTrailingStopOrderPlaceQueryParamsOrderTypeEnum, RobinhoodLimitOrderModifyQueryParamsAmountInEnum, RobinhoodLimitOrderModifyQueryParamsAssetTypeEnum, RobinhoodLimitOrderModifyQueryParamsCreditOrDebitEnum, RobinhoodLimitOrderModifyQueryParamsDirectionEnum, RobinhoodLimitOrderModifyQueryParamsMarketHoursEnum, RobinhoodLimitOrderModifyQueryParamsOptionTypeEnum, RobinhoodLimitOrderModifyQueryParamsOrderTypeEnum, RobinhoodLimitOrderModifyQueryParamsPositionEffectEnum, RobinhoodMarketOrderModifyQueryParamsAmountInEnum, RobinhoodMarketOrderModifyQueryParamsAssetTypeEnum, RobinhoodMarketOrderModifyQueryParamsCreditOrDebitEnum, RobinhoodMarketOrderModifyQueryParamsDirectionEnum, RobinhoodMarketOrderModifyQueryParamsMarketHoursEnum, RobinhoodMarketOrderModifyQueryParamsOptionTypeEnum, RobinhoodMarketOrderModifyQueryParamsOrderTypeEnum, RobinhoodMarketOrderModifyQueryParamsPositionEffectEnum, RobinhoodOptionLimitOrderPlaceQueryParamsActionEnum, RobinhoodOptionLimitOrderPlaceQueryParamsAssetTypeEnum, RobinhoodOptionLimitOrderPlaceQueryParamsCreditOrDebitEnum, RobinhoodOptionLimitOrderPlaceQueryParamsDirectionEnum, RobinhoodOptionLimitOrderPlaceQueryParamsOptionTypeEnum, RobinhoodOptionLimitOrderPlaceQueryParamsOrderTypeEnum, RobinhoodOptionLimitOrderPlaceQueryParamsPositionEffectEnum, RobinhoodOptionMarketOrderPlaceQueryParamsActionEnum, RobinhoodOptionMarketOrderPlaceQueryParamsAssetTypeEnum, RobinhoodOptionMarketOrderPlaceQueryParamsCreditOrDebitEnum, RobinhoodOptionMarketOrderPlaceQueryParamsDirectionEnum, RobinhoodOptionMarketOrderPlaceQueryParamsOptionTypeEnum, RobinhoodOptionMarketOrderPlaceQueryParamsOrderTypeEnum, RobinhoodOptionMarketOrderPlaceQueryParamsPositionEffectEnum, RobinhoodOptionStopLimitOrderPlaceQueryParamsActionEnum, RobinhoodOptionStopLimitOrderPlaceQueryParamsAssetTypeEnum, RobinhoodOptionStopLimitOrderPlaceQueryParamsCreditOrDebitEnum, RobinhoodOptionStopLimitOrderPlaceQueryParamsDirectionEnum, RobinhoodOptionStopLimitOrderPlaceQueryParamsOptionTypeEnum, RobinhoodOptionStopLimitOrderPlaceQueryParamsOrderTypeEnum, RobinhoodOptionStopLimitOrderPlaceQueryParamsPositionEffectEnum, RobinhoodOptionStopOrderPlaceQueryParamsActionEnum, RobinhoodOptionStopOrderPlaceQueryParamsAssetTypeEnum, RobinhoodOptionStopOrderPlaceQueryParamsCreditOrDebitEnum, RobinhoodOptionStopOrderPlaceQueryParamsDirectionEnum, RobinhoodOptionStopOrderPlaceQueryParamsOptionTypeEnum, RobinhoodOptionStopOrderPlaceQueryParamsOrderTypeEnum, RobinhoodOptionStopOrderPlaceQueryParamsPositionEffectEnum, RobinhoodOptionTrailingStopOrderPlaceQueryParamsActionEnum, RobinhoodOptionTrailingStopOrderPlaceQueryParamsAssetTypeEnum, RobinhoodOptionTrailingStopOrderPlaceQueryParamsCreditOrDebitEnum, RobinhoodOptionTrailingStopOrderPlaceQueryParamsDirectionEnum, RobinhoodOptionTrailingStopOrderPlaceQueryParamsOptionTypeEnum, RobinhoodOptionTrailingStopOrderPlaceQueryParamsOrderTypeEnum, RobinhoodOptionTrailingStopOrderPlaceQueryParamsPositionEffectEnum, RobinhoodOrderModifyRequestBrokerEnum, RobinhoodOrderPlaceRequestBrokerEnum, RobinhoodStopOrderModifyQueryParamsAmountInEnum, RobinhoodStopOrderModifyQueryParamsAssetTypeEnum, RobinhoodStopOrderModifyQueryParamsCreditOrDebitEnum, RobinhoodStopOrderModifyQueryParamsDirectionEnum, RobinhoodStopOrderModifyQueryParamsMarketHoursEnum, RobinhoodStopOrderModifyQueryParamsOptionTypeEnum, RobinhoodStopOrderModifyQueryParamsOrderTypeEnum, RobinhoodStopOrderModifyQueryParamsPositionEffectEnum, RobinhoodTrailingStopOrderModifyQueryParamsAmountInEnum, RobinhoodTrailingStopOrderModifyQueryParamsAssetTypeEnum, RobinhoodTrailingStopOrderModifyQueryParamsCreditOrDebitEnum, RobinhoodTrailingStopOrderModifyQueryParamsDirectionEnum, RobinhoodTrailingStopOrderModifyQueryParamsMarketHoursEnum, RobinhoodTrailingStopOrderModifyQueryParamsOptionTypeEnum, RobinhoodTrailingStopOrderModifyQueryParamsOrderTypeEnum, RobinhoodTrailingStopOrderModifyQueryParamsPositionEffectEnum, SessionStatus, SessionWrapper, TastyTradeLimitOrderModifyQueryParamsAssetTypeEnum, TastyTradeLimitOrderModifyQueryParamsOrderTypeEnum, TastyTradeLimitOrderPlaceQueryParamsActionEnum, TastyTradeLimitOrderPlaceQueryParamsAssetTypeEnum, TastyTradeLimitOrderPlaceQueryParamsOrderTypeEnum, TastyTradeLimitOrderPlaceQueryParamsPriceEffectEnum, TastyTradeLimitOrderPlaceQueryParamsValueEffectEnum, TastyTradeMarketOrderModifyQueryParamsAssetTypeEnum, TastyTradeMarketOrderModifyQueryParamsOrderTypeEnum, TastyTradeMarketOrderPlaceQueryParamsActionEnum, TastyTradeMarketOrderPlaceQueryParamsAssetTypeEnum, TastyTradeMarketOrderPlaceQueryParamsOrderTypeEnum, TastyTradeMarketOrderPlaceQueryParamsPriceEffectEnum, TastyTradeMarketOrderPlaceQueryParamsValueEffectEnum, TastyTradeOrderModifyRequestBrokerEnum, TastyTradeOrderPlaceRequestBrokerEnum, TastyTradeStopOrderModifyQueryParamsAssetTypeEnum, TastyTradeStopOrderModifyQueryParamsOrderTypeEnum, TastyTradeStopOrderPlaceQueryParamsActionEnum, TastyTradeStopOrderPlaceQueryParamsAssetTypeEnum, TastyTradeStopOrderPlaceQueryParamsOrderTypeEnum, TastyTradeStopOrderPlaceQueryParamsPriceEffectEnum, TastyTradeStopOrderPlaceQueryParamsValueEffectEnum, TastyTradeTrailingStopOrderModifyQueryParamsAssetTypeEnum, TastyTradeTrailingStopOrderModifyQueryParamsOrderTypeEnum, TastyTradeTrailingStopOrderPlaceQueryParamsActionEnum, TastyTradeTrailingStopOrderPlaceQueryParamsAssetTypeEnum, TastyTradeTrailingStopOrderPlaceQueryParamsOrderTypeEnum, TastyTradeTrailingStopOrderPlaceQueryParamsPriceEffectEnum, TastyTradeTrailingStopOrderPlaceQueryParamsValueEffectEnum, ValidationError, addErrorInterceptor, addRequestInterceptor, addResponseInterceptor, appendBrokerFilterToURL, appendThemeToURL, applyErrorInterceptors, applyRequestInterceptors, applyResponseInterceptors, coerceEnumValue, convertToPlainObject, defaultConfig, generateCacheKey, generateRequestId, getCache, getConfig, getLogger, handleError, numberSchema, retryApiCall, stringSchema, unwrapAxiosResponse, validateParams };
|
|
14712
|
+
export { ApiError, BrokerDataAccountTypeEnum, BrokerDataAssetTypeEnum, BrokerDataOptionTypeEnum, BrokerDataOrderSideEnum, BrokerDataPositionStatusEnum, BrokersWrapper, CompanyWrapper, Configuration, DayTIFTimeInForceEnum, EventEmitter, FDXAssetType, FDXOrderClass, FDXOrderEventType, FDXOrderGroupType, FDXOrderSide, FDXOrderStatus, FDXOrderType, FDXPositionSide, FDXPositionStatus, FDXSecurityIdType, FDXTimeInForce, FOKTIFTimeInForceEnum, FinaticBrokerFactoryBrokersRobinhoodExecutorsConsumerRobinhoodOrderModifyQueryParamsRobinhoodOptionSpreadLegEffectEnum, FinaticConnect, FinaticError, GTCTIFTimeInForceEnum, GTDTIFTimeInForceEnum, IOCTIFTimeInForceEnum, NinjaTraderLimitOrderModifyQueryParamsAssetTypeEnum, NinjaTraderLimitOrderModifyQueryParamsOrderTypeEnum, NinjaTraderLimitOrderPlaceQueryParamsActionEnum, NinjaTraderLimitOrderPlaceQueryParamsAssetTypeEnum, NinjaTraderLimitOrderPlaceQueryParamsOrderTypeEnum, NinjaTraderMarketOrderModifyQueryParamsAssetTypeEnum, NinjaTraderMarketOrderModifyQueryParamsOrderTypeEnum, NinjaTraderMarketOrderPlaceQueryParamsActionEnum, NinjaTraderMarketOrderPlaceQueryParamsAssetTypeEnum, NinjaTraderMarketOrderPlaceQueryParamsOrderTypeEnum, NinjaTraderOrderModifyRequestBrokerEnum, NinjaTraderOrderPlaceRequestBrokerEnum, NinjaTraderStopOrderModifyQueryParamsAssetTypeEnum, NinjaTraderStopOrderModifyQueryParamsOrderTypeEnum, NinjaTraderStopOrderPlaceQueryParamsActionEnum, NinjaTraderStopOrderPlaceQueryParamsAssetTypeEnum, NinjaTraderStopOrderPlaceQueryParamsOrderTypeEnum, NinjaTraderTrailingStopOrderModifyQueryParamsAssetTypeEnum, NinjaTraderTrailingStopOrderModifyQueryParamsOrderTypeEnum, NinjaTraderTrailingStopOrderPlaceQueryParamsActionEnum, NinjaTraderTrailingStopOrderPlaceQueryParamsAssetTypeEnum, NinjaTraderTrailingStopOrderPlaceQueryParamsOrderTypeEnum, Order1ActionEnum, Order1AmountInEnum, Order1AssetTypeEnum, Order1CreditOrDebitEnum, Order1DirectionEnum, Order1MarketHoursEnum, Order1OptionTypeEnum, Order1OrderTypeEnum, Order1PositionEffectEnum, PaginatedData, RobinhoodCryptoLimitOrderPlaceQueryParamsActionEnum, RobinhoodCryptoLimitOrderPlaceQueryParamsAmountInEnum, RobinhoodCryptoLimitOrderPlaceQueryParamsAssetTypeEnum, RobinhoodCryptoLimitOrderPlaceQueryParamsOrderTypeEnum, RobinhoodCryptoMarketOrderPlaceQueryParamsActionEnum, RobinhoodCryptoMarketOrderPlaceQueryParamsAmountInEnum, RobinhoodCryptoMarketOrderPlaceQueryParamsAssetTypeEnum, RobinhoodCryptoMarketOrderPlaceQueryParamsOrderTypeEnum, RobinhoodCryptoStopLimitOrderPlaceQueryParamsActionEnum, RobinhoodCryptoStopLimitOrderPlaceQueryParamsAmountInEnum, RobinhoodCryptoStopLimitOrderPlaceQueryParamsAssetTypeEnum, RobinhoodCryptoStopLimitOrderPlaceQueryParamsOrderTypeEnum, RobinhoodCryptoStopOrderPlaceQueryParamsActionEnum, RobinhoodCryptoStopOrderPlaceQueryParamsAmountInEnum, RobinhoodCryptoStopOrderPlaceQueryParamsAssetTypeEnum, RobinhoodCryptoStopOrderPlaceQueryParamsOrderTypeEnum, RobinhoodCryptoTrailingStopOrderPlaceQueryParamsActionEnum, RobinhoodCryptoTrailingStopOrderPlaceQueryParamsAmountInEnum, RobinhoodCryptoTrailingStopOrderPlaceQueryParamsAssetTypeEnum, RobinhoodCryptoTrailingStopOrderPlaceQueryParamsOrderTypeEnum, RobinhoodEquityLimitOrderPlaceQueryParamsActionEnum, RobinhoodEquityLimitOrderPlaceQueryParamsAssetTypeEnum, RobinhoodEquityLimitOrderPlaceQueryParamsMarketHoursEnum, RobinhoodEquityLimitOrderPlaceQueryParamsOrderTypeEnum, RobinhoodEquityMarketOrderPlaceQueryParamsActionEnum, RobinhoodEquityMarketOrderPlaceQueryParamsAssetTypeEnum, RobinhoodEquityMarketOrderPlaceQueryParamsMarketHoursEnum, RobinhoodEquityMarketOrderPlaceQueryParamsOrderTypeEnum, RobinhoodEquityStopLimitOrderPlaceQueryParamsActionEnum, RobinhoodEquityStopLimitOrderPlaceQueryParamsAssetTypeEnum, RobinhoodEquityStopLimitOrderPlaceQueryParamsMarketHoursEnum, RobinhoodEquityStopLimitOrderPlaceQueryParamsOrderTypeEnum, RobinhoodEquityStopOrderPlaceQueryParamsActionEnum, RobinhoodEquityStopOrderPlaceQueryParamsAssetTypeEnum, RobinhoodEquityStopOrderPlaceQueryParamsMarketHoursEnum, RobinhoodEquityStopOrderPlaceQueryParamsOrderTypeEnum, RobinhoodEquityTrailingStopOrderPlaceQueryParamsActionEnum, RobinhoodEquityTrailingStopOrderPlaceQueryParamsAssetTypeEnum, RobinhoodEquityTrailingStopOrderPlaceQueryParamsMarketHoursEnum, RobinhoodEquityTrailingStopOrderPlaceQueryParamsOrderTypeEnum, RobinhoodLimitOrderModifyQueryParamsAmountInEnum, RobinhoodLimitOrderModifyQueryParamsAssetTypeEnum, RobinhoodLimitOrderModifyQueryParamsCreditOrDebitEnum, RobinhoodLimitOrderModifyQueryParamsDirectionEnum, RobinhoodLimitOrderModifyQueryParamsMarketHoursEnum, RobinhoodLimitOrderModifyQueryParamsOptionTypeEnum, RobinhoodLimitOrderModifyQueryParamsOrderTypeEnum, RobinhoodLimitOrderModifyQueryParamsPositionEffectEnum, RobinhoodMarketOrderModifyQueryParamsAmountInEnum, RobinhoodMarketOrderModifyQueryParamsAssetTypeEnum, RobinhoodMarketOrderModifyQueryParamsCreditOrDebitEnum, RobinhoodMarketOrderModifyQueryParamsDirectionEnum, RobinhoodMarketOrderModifyQueryParamsMarketHoursEnum, RobinhoodMarketOrderModifyQueryParamsOptionTypeEnum, RobinhoodMarketOrderModifyQueryParamsOrderTypeEnum, RobinhoodMarketOrderModifyQueryParamsPositionEffectEnum, RobinhoodOptionLimitOrderPlaceQueryParamsActionEnum, RobinhoodOptionLimitOrderPlaceQueryParamsAssetTypeEnum, RobinhoodOptionLimitOrderPlaceQueryParamsCreditOrDebitEnum, RobinhoodOptionLimitOrderPlaceQueryParamsDirectionEnum, RobinhoodOptionLimitOrderPlaceQueryParamsOptionTypeEnum, RobinhoodOptionLimitOrderPlaceQueryParamsOrderTypeEnum, RobinhoodOptionLimitOrderPlaceQueryParamsPositionEffectEnum, RobinhoodOptionMarketOrderPlaceQueryParamsActionEnum, RobinhoodOptionMarketOrderPlaceQueryParamsAssetTypeEnum, RobinhoodOptionMarketOrderPlaceQueryParamsCreditOrDebitEnum, RobinhoodOptionMarketOrderPlaceQueryParamsDirectionEnum, RobinhoodOptionMarketOrderPlaceQueryParamsOptionTypeEnum, RobinhoodOptionMarketOrderPlaceQueryParamsOrderTypeEnum, RobinhoodOptionMarketOrderPlaceQueryParamsPositionEffectEnum, RobinhoodOptionSpreadLegPositionEffectEnum, RobinhoodOptionStopLimitOrderPlaceQueryParamsActionEnum, RobinhoodOptionStopLimitOrderPlaceQueryParamsAssetTypeEnum, RobinhoodOptionStopLimitOrderPlaceQueryParamsCreditOrDebitEnum, RobinhoodOptionStopLimitOrderPlaceQueryParamsDirectionEnum, RobinhoodOptionStopLimitOrderPlaceQueryParamsOptionTypeEnum, RobinhoodOptionStopLimitOrderPlaceQueryParamsOrderTypeEnum, RobinhoodOptionStopLimitOrderPlaceQueryParamsPositionEffectEnum, RobinhoodOptionStopOrderPlaceQueryParamsActionEnum, RobinhoodOptionStopOrderPlaceQueryParamsAssetTypeEnum, RobinhoodOptionStopOrderPlaceQueryParamsCreditOrDebitEnum, RobinhoodOptionStopOrderPlaceQueryParamsDirectionEnum, RobinhoodOptionStopOrderPlaceQueryParamsOptionTypeEnum, RobinhoodOptionStopOrderPlaceQueryParamsOrderTypeEnum, RobinhoodOptionStopOrderPlaceQueryParamsPositionEffectEnum, RobinhoodOptionTrailingStopOrderPlaceQueryParamsActionEnum, RobinhoodOptionTrailingStopOrderPlaceQueryParamsAssetTypeEnum, RobinhoodOptionTrailingStopOrderPlaceQueryParamsCreditOrDebitEnum, RobinhoodOptionTrailingStopOrderPlaceQueryParamsDirectionEnum, RobinhoodOptionTrailingStopOrderPlaceQueryParamsOptionTypeEnum, RobinhoodOptionTrailingStopOrderPlaceQueryParamsOrderTypeEnum, RobinhoodOptionTrailingStopOrderPlaceQueryParamsPositionEffectEnum, RobinhoodOrderModifyRequestBrokerEnum, RobinhoodOrderPlaceRequestBrokerEnum, RobinhoodStopOrderModifyQueryParamsAmountInEnum, RobinhoodStopOrderModifyQueryParamsAssetTypeEnum, RobinhoodStopOrderModifyQueryParamsCreditOrDebitEnum, RobinhoodStopOrderModifyQueryParamsDirectionEnum, RobinhoodStopOrderModifyQueryParamsMarketHoursEnum, RobinhoodStopOrderModifyQueryParamsOptionTypeEnum, RobinhoodStopOrderModifyQueryParamsOrderTypeEnum, RobinhoodStopOrderModifyQueryParamsPositionEffectEnum, RobinhoodTrailingStopOrderModifyQueryParamsAmountInEnum, RobinhoodTrailingStopOrderModifyQueryParamsAssetTypeEnum, RobinhoodTrailingStopOrderModifyQueryParamsCreditOrDebitEnum, RobinhoodTrailingStopOrderModifyQueryParamsDirectionEnum, RobinhoodTrailingStopOrderModifyQueryParamsMarketHoursEnum, RobinhoodTrailingStopOrderModifyQueryParamsOptionTypeEnum, RobinhoodTrailingStopOrderModifyQueryParamsOrderTypeEnum, RobinhoodTrailingStopOrderModifyQueryParamsPositionEffectEnum, SessionStatus, SessionWrapper, TastyTradeLimitOrderModifyQueryParamsAssetTypeEnum, TastyTradeLimitOrderModifyQueryParamsOrderTypeEnum, TastyTradeLimitOrderPlaceQueryParamsActionEnum, TastyTradeLimitOrderPlaceQueryParamsAssetTypeEnum, TastyTradeLimitOrderPlaceQueryParamsOrderTypeEnum, TastyTradeLimitOrderPlaceQueryParamsPriceEffectEnum, TastyTradeLimitOrderPlaceQueryParamsValueEffectEnum, TastyTradeMarketOrderModifyQueryParamsAssetTypeEnum, TastyTradeMarketOrderModifyQueryParamsOrderTypeEnum, TastyTradeMarketOrderPlaceQueryParamsActionEnum, TastyTradeMarketOrderPlaceQueryParamsAssetTypeEnum, TastyTradeMarketOrderPlaceQueryParamsOrderTypeEnum, TastyTradeMarketOrderPlaceQueryParamsPriceEffectEnum, TastyTradeMarketOrderPlaceQueryParamsValueEffectEnum, TastyTradeOrderModifyRequestBrokerEnum, TastyTradeOrderPlaceRequestBrokerEnum, TastyTradeStopOrderModifyQueryParamsAssetTypeEnum, TastyTradeStopOrderModifyQueryParamsOrderTypeEnum, TastyTradeStopOrderPlaceQueryParamsActionEnum, TastyTradeStopOrderPlaceQueryParamsAssetTypeEnum, TastyTradeStopOrderPlaceQueryParamsOrderTypeEnum, TastyTradeStopOrderPlaceQueryParamsPriceEffectEnum, TastyTradeStopOrderPlaceQueryParamsValueEffectEnum, TastyTradeTrailingStopOrderModifyQueryParamsAssetTypeEnum, TastyTradeTrailingStopOrderModifyQueryParamsOrderTypeEnum, TastyTradeTrailingStopOrderPlaceQueryParamsActionEnum, TastyTradeTrailingStopOrderPlaceQueryParamsAssetTypeEnum, TastyTradeTrailingStopOrderPlaceQueryParamsOrderTypeEnum, TastyTradeTrailingStopOrderPlaceQueryParamsPriceEffectEnum, TastyTradeTrailingStopOrderPlaceQueryParamsValueEffectEnum, ValidationError, addErrorInterceptor, addRequestInterceptor, addResponseInterceptor, appendBrokerFilterToURL, appendThemeToURL, applyErrorInterceptors, applyRequestInterceptors, applyResponseInterceptors, coerceEnumValue, convertToPlainObject, defaultConfig, generateCacheKey, generateRequestId, getCache, getConfig, getLogger, handleError, numberSchema, retryApiCall, stringSchema, unwrapAxiosResponse, validateParams };
|
|
14945
14713
|
//# sourceMappingURL=index.mjs.map
|