@huskly/ibkr-client 2.2.0 → 2.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +69 -22
- package/dist/ibkr/ibkrClient.d.ts +51 -1
- package/dist/ibkr/ibkrClient.d.ts.map +1 -1
- package/dist/ibkr/ibkrClient.js +138 -4
- package/dist/ibkr/ibkrClient.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js.map +1 -1
- package/dist/types.d.ts +94 -5
- package/dist/types.d.ts.map +1 -1
- package/package.json +3 -2
package/README.md
CHANGED
|
@@ -29,8 +29,11 @@ wiki setup step and are git-ignored.
|
|
|
29
29
|
|
|
30
30
|
## Setup
|
|
31
31
|
|
|
32
|
+
This project uses Yarn 4 through Corepack. Enable Corepack once, then install:
|
|
33
|
+
|
|
32
34
|
```bash
|
|
33
|
-
|
|
35
|
+
corepack enable
|
|
36
|
+
yarn install --immutable
|
|
34
37
|
```
|
|
35
38
|
|
|
36
39
|
Provide the account-specific secrets, either by copying the template:
|
|
@@ -99,6 +102,29 @@ validated at runtime. Its broker-neutral account API includes:
|
|
|
99
102
|
makes the read throw. `presentSummaryFieldNames` lists the sorted key NAMES present in the
|
|
100
103
|
summary response, names only and never values, so an operator can confirm the live schema
|
|
101
104
|
without seeing amounts. This method remains a separate read from `getAccountBalances()`.
|
|
105
|
+
- `getContractTransactionEvidence({ conids, currency, days, accountId? })` for the transaction
|
|
106
|
+
activity IBKR states about NAMED contracts. This read never consults held positions, so it
|
|
107
|
+
reaches a contract the account no longer holds - the shape an assigned, exercised, or expired
|
|
108
|
+
option leaves behind. `fetchTransactionHistory()` cannot do this: it loops over held conids only,
|
|
109
|
+
so a gone contract is unreachable through it. The caller states the currency and this read never
|
|
110
|
+
supplies a default, because IBKR converts every figure into the requested currency and a wrong
|
|
111
|
+
currency returns a converted number that looks exactly like a real one. It returns the account
|
|
112
|
+
id, one client-minted `observedAtEpochMillis`, the requested conids, currency, and window, and
|
|
113
|
+
one record for each row IBKR returned. Each record echoes `conid`, `accountId`, `date`,
|
|
114
|
+
`rawDate`, `type`, `description`, `currency`, `amount`, `quantity`, `price`, and `fxRate` exactly
|
|
115
|
+
as the broker stated them. Provider text is verbatim: `type` and `description` keep their own
|
|
116
|
+
case AND their own padding, because they are the only place IBKR names an assignment, and
|
|
117
|
+
trimming them would change what a consumer classifies. A field the broker did not state is
|
|
118
|
+
`null`, a stated zero remains `0`, and a stated whitespace-only string stays that string; a value
|
|
119
|
+
that is not a string reads `null`. `presentFieldNames` lists the sorted key NAMES the row
|
|
120
|
+
carried, names only and never values. The read refuses an empty conid list, a conid that is not a
|
|
121
|
+
positive safe integer, a blank currency, and a window outside 1 through 90 days; it also refuses
|
|
122
|
+
a response that states no transaction ARRAY, because an error envelope, an empty object, or an
|
|
123
|
+
explicit `null` is an unknown broker state and must never reach a consumer looking exactly like a
|
|
124
|
+
completed read that found nothing. A stated empty array is a real answer and is reported as one.
|
|
125
|
+
A missing field inside a row never makes it throw. It proves no event and infers nothing: an empty list
|
|
126
|
+
is not proof that nothing happened, and the CONSUMER decides whether a row states an assignment,
|
|
127
|
+
an exercise, or an expiration.
|
|
102
128
|
- `getOptionSeriesReference(conid)` for one reference read of ONE exact option contract, and
|
|
103
129
|
`getUnderlyingInstrumentReference(conid)` for the same read of an underlying contract. Both read
|
|
104
130
|
`iserver/contract/{conid}/info`. Use this endpoint, not the conid-only `iserver/secdef/info`
|
|
@@ -660,25 +686,29 @@ to guard against committed secrets.
|
|
|
660
686
|
|
|
661
687
|
`submitDerivativeOrderGraph(...)` is the bounded (one through eight member) bracket API for
|
|
662
688
|
broker-hosted derivative protection. A graph may combine atomic two-leg LIMIT combos with
|
|
663
|
-
single-option LIMIT, STOP, and MARKET members.
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
the
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
689
|
+
single-option LIMIT, STOP, and MARKET members.
|
|
690
|
+
|
|
691
|
+
Each node has a caller-stable `memberId`. `clientOrderId` is optional on each node. When you set
|
|
692
|
+
it, the value is the exact IBKR `cOID`. It must be trimmed, non-empty, and at most 64 characters.
|
|
693
|
+
The effective identity must be unique across the graph. The root node's explicit `clientOrderId`
|
|
694
|
+
must match `rootClientOrderId`. When you omit `clientOrderId`, the client keeps the fallback:
|
|
695
|
+
`rootClientOrderId` for the root, and `rootClientOrderId:memberId` for later nodes.
|
|
696
|
+
|
|
697
|
+
Explicit values flow unchanged through tickets, warning evidence, and recovery. The client keeps
|
|
698
|
+
the exact request and the exact identities it used. Accepted and fail-closed results retain each
|
|
699
|
+
node's immutable request evidence, stable depth role, parent member/broker IDs, and every broker
|
|
700
|
+
order ID. Conids remain correlation evidence only; callers still own durable semantic option
|
|
701
|
+
identity.
|
|
672
702
|
|
|
673
703
|
Warnings are never acknowledged automatically. A warning result contains a JSON-safe
|
|
674
704
|
`continuation` with the exact reply ID, full graph request, and all correlation accumulated so far;
|
|
675
705
|
persist it before calling `acknowledgeDerivativeOrderGraphWarning(...)`. Each placement or reply is
|
|
676
706
|
attempted once after revalidating the account's authentication and competing-session safety;
|
|
677
|
-
chained and unknown warnings remain pending for the caller, and mixed, partial,
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
707
|
+
chained and unknown warnings remain pending for the caller, and mixed, partial, duplicated,
|
|
708
|
+
terminal, malformed, or ambiguous acknowledgements return `recovery_required`. Broker IDs from
|
|
709
|
+
ambiguous acknowledgements are retained as uncorrelated responses rather than assigned to nodes by
|
|
710
|
+
position. Submission acknowledgements are correlated only by the echoed `local_order_id` or
|
|
711
|
+
`cOID`. Nested child acknowledgements under `children` or `childOrders` are flattened before
|
|
682
712
|
correlation, so a parent-only top-level array does not hide live child broker IDs.
|
|
683
713
|
`accepted` requires one distinct non-null broker order ID for every requested graph member. If any
|
|
684
714
|
member still has a null order ID after correlation, the result is `recovery_required` and the reason
|
|
@@ -692,8 +722,8 @@ known member broker ID, and terminal evidence keyed by the durable root client I
|
|
|
692
722
|
normal active and filtered filled, canceled, and inactive order snapshots before it uses recent
|
|
693
723
|
execution evidence. It queries an exact broker ID even if execution history is unavailable. When the
|
|
694
724
|
caller supplies a durable broker ID, the exact status read can identify only that member without a
|
|
695
|
-
client order ID. The account and broker ID must match, and the complete ticket must match exactly
|
|
696
|
-
requested node. Conflicting identity or listing evidence still fails closed.
|
|
725
|
+
client order ID. The account and broker ID must match, and the complete ticket must match exactly
|
|
726
|
+
one requested node. Conflicting identity or listing evidence still fails closed.
|
|
697
727
|
It requires complete active and filtered terminal snapshot markers, traverses both nested child
|
|
698
728
|
collection aliases, and rejects contradictory aliases within a broker response before correlation.
|
|
699
729
|
It correlates the root by the transmitted client ID and its complete ticket. It correlates each
|
|
@@ -701,13 +731,30 @@ descendant by the deterministic client order ID of its exact parent, plus the co
|
|
|
701
731
|
combo legs, order type, side, quantity, applicable signed limit or stop price, TIF, and
|
|
702
732
|
regular/overnight session. IBKR can report combo legs in a different order on each endpoint, so
|
|
703
733
|
recovery compares the complete signed `(conid, ratio)` multiset without using response order.
|
|
704
|
-
Recovery
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
prove required account, broker ID, or parent identity links.
|
|
734
|
+
Recovery accepts terminal members when the evidence is non-ambiguous and complete, preserves broker
|
|
735
|
+
terminal states for each member, and fails closed when evidence is partial, duplicated, ambiguous,
|
|
736
|
+
unknown, includes an unexpected attached order, or cannot prove required account, broker ID, or
|
|
737
|
+
parent identity links.
|
|
709
738
|
No recoveries involve writes.
|
|
710
739
|
Failed terminal snapshot lookups force `recovery_required`; trade-linked members whose exact status
|
|
711
740
|
lookup fails remain preserved as uncorrelated evidence instead of being discarded.
|
|
712
741
|
This recovery API is the safety boundary: consumers should not bypass it with the private raw request
|
|
713
742
|
client.
|
|
743
|
+
|
|
744
|
+
Build the request with every identity in place before submission:
|
|
745
|
+
|
|
746
|
+
```ts
|
|
747
|
+
const request = {
|
|
748
|
+
accountId,
|
|
749
|
+
rootClientOrderId: "hg-root",
|
|
750
|
+
nodes: [
|
|
751
|
+
{ ...entry, memberId: "entry", clientOrderId: "hg-root" },
|
|
752
|
+
{
|
|
753
|
+
...profit,
|
|
754
|
+
memberId: "profit",
|
|
755
|
+
parentMemberId: "entry",
|
|
756
|
+
clientOrderId: "hg-profit",
|
|
757
|
+
},
|
|
758
|
+
],
|
|
759
|
+
};
|
|
760
|
+
```
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { IbkrOauth1Config } from "./oauthConfig.js";
|
|
2
|
-
import type { AccountBalances, AccountSettlementEvidence, OptionSeriesReferenceEvidence, UnderlyingInstrumentReferenceEvidence, ActiveDerivativeOrder, AuthStatus, IbkrSessionEvidence, IbkrSessionLifecycleClient, BrokerAccountOrders, BrokerClient, BrokerInstrument, BrokerInstrumentSearchProjection, BrokerOrdersOptions, BrokerPosition, BrokerQuote, BrokerQuoteOptions, BrokerQuoteRequest, BrokerTransactionHistory, BrokerErrorDetail, DerivativeContract, DerivativeContractQuery, DerivativeComboExecutionRequest, DerivativeComboReconciliation, DerivativeComboReconciliationRequest, DerivativeComboPreviewRequest, DerivativeComboPreviewResult, DerivativeContingentChildOrderRequest, DerivativeContingentParentOrderRequest, DerivativeDiscoveryClient, DerivativeExecutionClient, DerivativeExecution, DerivativeExecutionQuery, DerivativeMultiOrderResult, DerivativeOrderGraphLookup, DerivativeOrderGraphRequest, DerivativeOrderGraphResult, DerivativeOrderGraphWarningContinuation, DerivativeOrderCancellationResult, DerivativeOrderCancelRequest, DerivativeOrderLifecycle, DerivativeOrderLookup, DerivativeOrderSubmissionResult, DerivativeSingleOrderRequest, DerivativePreviewClient, DerivativeExpiry, DerivativeExpiryQuery, DerivativeQuote, DerivativeReferenceQuote, OptionChainSnapshot, OptionContract, OptionDefinitionCache, OptionDiscoveryTelemetry, OptionMarketQuote, OptionStrikeRange, OptionQuoteRequest, OptionRight, PriceHistoryContractCandidate, PriceHistoryRequest, PriceHistoryResult, PriceHistoryTelemetry, TradingDiagnostics } from "../types.js";
|
|
2
|
+
import type { AccountBalances, AccountSettlementEvidence, ContractTransactionEvidence, OptionSeriesReferenceEvidence, UnderlyingInstrumentReferenceEvidence, ActiveDerivativeOrder, AuthStatus, IbkrSessionEvidence, IbkrSessionLifecycleClient, BrokerAccountOrders, BrokerClient, BrokerInstrument, BrokerInstrumentSearchProjection, BrokerOrdersOptions, BrokerPosition, BrokerQuote, BrokerQuoteOptions, BrokerQuoteRequest, BrokerTransactionHistory, BrokerErrorDetail, DerivativeContract, DerivativeContractQuery, DerivativeComboExecutionRequest, DerivativeComboReconciliation, DerivativeComboReconciliationRequest, DerivativeComboPreviewRequest, DerivativeComboPreviewResult, DerivativeContingentChildOrderRequest, DerivativeContingentParentOrderRequest, DerivativeDiscoveryClient, DerivativeExecutionClient, DerivativeExecution, DerivativeExecutionQuery, DerivativeMultiOrderResult, DerivativeOrderGraphLookup, DerivativeOrderGraphRequest, DerivativeOrderGraphResult, DerivativeOrderGraphWarningContinuation, DerivativeOrderCancellationResult, DerivativeOrderCancelRequest, DerivativeOrderLifecycle, DerivativeOrderLookup, DerivativeOrderSubmissionResult, DerivativeSingleOrderRequest, DerivativePreviewClient, DerivativeExpiry, DerivativeExpiryQuery, DerivativeQuote, DerivativeReferenceQuote, OptionChainSnapshot, OptionContract, OptionDefinitionCache, OptionDiscoveryTelemetry, OptionMarketQuote, OptionStrikeRange, OptionQuoteRequest, OptionRight, PriceHistoryContractCandidate, PriceHistoryRequest, PriceHistoryResult, PriceHistoryTelemetry, TradingDiagnostics } from "../types.js";
|
|
3
3
|
import { type IbkrRequestSchedulerOptions, type IbkrRequestTelemetry } from "./requestScheduler.js";
|
|
4
4
|
interface IbkrRequestInput {
|
|
5
5
|
path: string;
|
|
@@ -272,6 +272,56 @@ export declare class IbkrClient implements BrokerClient, IbkrSessionLifecycleCli
|
|
|
272
272
|
private fetchQuotes;
|
|
273
273
|
/** Resolve equity/ETF symbols to IBKR contracts via `trsrv/stocks`. */
|
|
274
274
|
searchInstruments(symbol: string, projection?: BrokerInstrumentSearchProjection): Promise<BrokerInstrument[]>;
|
|
275
|
+
/**
|
|
276
|
+
* Read the transaction activity IBKR states for named contracts, without ever
|
|
277
|
+
* asking which contracts the account still holds.
|
|
278
|
+
*
|
|
279
|
+
* {@link fetchTransactionHistory} loops over HELD conids, so a contract that
|
|
280
|
+
* left the account - assigned, exercised, or expired - can never be reached
|
|
281
|
+
* through it. The `pa/transactions` endpoint does not require a conid to be
|
|
282
|
+
* held: it answers for the conids it is given. This method gives it the conids
|
|
283
|
+
* the caller names, so the row of a gone contract stays reachable.
|
|
284
|
+
*
|
|
285
|
+
* The caller states the currency, and this method never supplies a default.
|
|
286
|
+
* IBKR converts every figure into the requested currency, so a wrong currency
|
|
287
|
+
* returns a converted number that looks exactly like a real one.
|
|
288
|
+
* {@link fetchTransactionHistory} reads it from the environment and falls back
|
|
289
|
+
* to `"USD"`; that habit is deliberately not repeated here.
|
|
290
|
+
*
|
|
291
|
+
* Every field is echoed as the broker stated it. A field the broker did not
|
|
292
|
+
* state reads `null`, a stated zero stays `0`, and `type` and `desc` keep
|
|
293
|
+
* their own case. A missing field never makes this method throw. Only an
|
|
294
|
+
* identity or a window this read could not ask about at all is refused.
|
|
295
|
+
*
|
|
296
|
+
* This method proves no event and infers nothing. An empty list is not proof
|
|
297
|
+
* that nothing happened. The CONSUMER, not this package, decides whether a row
|
|
298
|
+
* states an assignment, an exercise, or an expiration.
|
|
299
|
+
*/
|
|
300
|
+
getContractTransactionEvidence(input: {
|
|
301
|
+
/** The conids to ask about. They need not be held. */
|
|
302
|
+
conids: readonly number[];
|
|
303
|
+
/** The currency IBKR must report in. Never defaulted. */
|
|
304
|
+
currency: string;
|
|
305
|
+
/** The window in days back from the broker's today. IBKR serves 1 through 90. */
|
|
306
|
+
days: number;
|
|
307
|
+
/** The account to ask for. Discovered when the caller states none. */
|
|
308
|
+
accountId?: string;
|
|
309
|
+
}): Promise<ContractTransactionEvidence>;
|
|
310
|
+
/**
|
|
311
|
+
* One provider string, echoed exactly as the broker wrote it.
|
|
312
|
+
*
|
|
313
|
+
* {@link trimmedString} is deliberately NOT used here. `type` and `desc` are the only place IBKR
|
|
314
|
+
* names an assignment, an exercise, or an expiration, and the public type states they are echoed
|
|
315
|
+
* exactly. Trimming would change what a consumer classifies and what an audit comparison sees,
|
|
316
|
+
* and a stated whitespace-only string is still a statement, never silence. A value that is not a
|
|
317
|
+
* string is not text the broker stated, so it reads `null`.
|
|
318
|
+
*/
|
|
319
|
+
private verbatimString;
|
|
320
|
+
/**
|
|
321
|
+
* One `pa/transactions` row, echoed. Nothing here maps, classifies, or
|
|
322
|
+
* defaults a value; a field the broker did not state reads `null`.
|
|
323
|
+
*/
|
|
324
|
+
private contractTransactionRecord;
|
|
275
325
|
fetchTransactionHistory(startDate: Date, endDate: Date): Promise<BrokerTransactionHistory[]>;
|
|
276
326
|
fetchOrders(options: BrokerOrdersOptions): Promise<BrokerAccountOrders[]>;
|
|
277
327
|
private validateComboPreview;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ibkrClient.d.ts","sourceRoot":"","sources":["../../src/ibkr/ibkrClient.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AACzD,OAAO,KAAK,EACV,eAAe,EAEf,yBAAyB,EAGzB,6BAA6B,EAC7B,qCAAqC,EACrC,qBAAqB,EAGrB,UAAU,EACV,mBAAmB,EAEnB,0BAA0B,EAC1B,mBAAmB,EACnB,YAAY,EACZ,gBAAgB,EAChB,gCAAgC,EAGhC,mBAAmB,EACnB,cAAc,EACd,WAAW,EACX,kBAAkB,EAClB,kBAAkB,EAElB,wBAAwB,EACxB,iBAAiB,EAGjB,kBAAkB,EAClB,uBAAuB,EACvB,+BAA+B,EAC/B,6BAA6B,EAC7B,oCAAoC,EACpC,6B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U3B,OAAO,CAAC,yBAAyB;IAcjC,OAAO,CAAC,iBAAiB;IASzB,OAAO,CAAC,WAAW;CAuBpB"}
|
package/dist/ibkr/ibkrClient.js
CHANGED
|
@@ -1219,8 +1219,10 @@ export class IbkrClient {
|
|
|
1219
1219
|
const clientIdentity = this.consistentStringAliases(order.cOID, order.order_ref);
|
|
1220
1220
|
if (!parentIdentity.valid || !clientIdentity.valid)
|
|
1221
1221
|
return null;
|
|
1222
|
-
const
|
|
1223
|
-
if (
|
|
1222
|
+
const rootNode = request.nodes.find(({ parentMemberId }) => parentMemberId === undefined);
|
|
1223
|
+
if (rootNode !== undefined &&
|
|
1224
|
+
clientIdentity.value === this.graphClientOrderId(request, rootNode) &&
|
|
1225
|
+
parentIdentity.value === undefined) {
|
|
1224
1226
|
return "root";
|
|
1225
1227
|
}
|
|
1226
1228
|
if (parentIdentity.value !== undefined &&
|
|
@@ -1991,6 +1993,114 @@ export class IbkrClient {
|
|
|
1991
1993
|
});
|
|
1992
1994
|
return (response[query] ?? []).flatMap((listing) => this.normalizeStockListing(query, listing));
|
|
1993
1995
|
}
|
|
1996
|
+
/**
|
|
1997
|
+
* Read the transaction activity IBKR states for named contracts, without ever
|
|
1998
|
+
* asking which contracts the account still holds.
|
|
1999
|
+
*
|
|
2000
|
+
* {@link fetchTransactionHistory} loops over HELD conids, so a contract that
|
|
2001
|
+
* left the account - assigned, exercised, or expired - can never be reached
|
|
2002
|
+
* through it. The `pa/transactions` endpoint does not require a conid to be
|
|
2003
|
+
* held: it answers for the conids it is given. This method gives it the conids
|
|
2004
|
+
* the caller names, so the row of a gone contract stays reachable.
|
|
2005
|
+
*
|
|
2006
|
+
* The caller states the currency, and this method never supplies a default.
|
|
2007
|
+
* IBKR converts every figure into the requested currency, so a wrong currency
|
|
2008
|
+
* returns a converted number that looks exactly like a real one.
|
|
2009
|
+
* {@link fetchTransactionHistory} reads it from the environment and falls back
|
|
2010
|
+
* to `"USD"`; that habit is deliberately not repeated here.
|
|
2011
|
+
*
|
|
2012
|
+
* Every field is echoed as the broker stated it. A field the broker did not
|
|
2013
|
+
* state reads `null`, a stated zero stays `0`, and `type` and `desc` keep
|
|
2014
|
+
* their own case. A missing field never makes this method throw. Only an
|
|
2015
|
+
* identity or a window this read could not ask about at all is refused.
|
|
2016
|
+
*
|
|
2017
|
+
* This method proves no event and infers nothing. An empty list is not proof
|
|
2018
|
+
* that nothing happened. The CONSUMER, not this package, decides whether a row
|
|
2019
|
+
* states an assignment, an exercise, or an expiration.
|
|
2020
|
+
*/
|
|
2021
|
+
async getContractTransactionEvidence(input) {
|
|
2022
|
+
this.assertOpen();
|
|
2023
|
+
const currency = input.currency.trim();
|
|
2024
|
+
if (!currency) {
|
|
2025
|
+
throw new Error("Contract transaction evidence requires an explicit currency; it is never defaulted");
|
|
2026
|
+
}
|
|
2027
|
+
if (input.conids.length === 0) {
|
|
2028
|
+
throw new Error("Contract transaction evidence requires at least one conid");
|
|
2029
|
+
}
|
|
2030
|
+
for (const conid of input.conids) {
|
|
2031
|
+
if (!Number.isSafeInteger(conid) || conid <= 0) {
|
|
2032
|
+
throw new Error(`Contract transaction evidence received an unusable conid: ${String(conid)}`);
|
|
2033
|
+
}
|
|
2034
|
+
}
|
|
2035
|
+
if (!Number.isSafeInteger(input.days) || input.days < 1 || input.days > 90) {
|
|
2036
|
+
throw new Error("Contract transaction evidence days must be an integer from 1 through 90");
|
|
2037
|
+
}
|
|
2038
|
+
// Every value the evidence reports is captured BEFORE the await, so a caller that reuses and
|
|
2039
|
+
// mutates its own input object while this read is in flight can never receive evidence that
|
|
2040
|
+
// claims a window or an identity IBKR was not asked for.
|
|
2041
|
+
const conids = [...input.conids];
|
|
2042
|
+
const days = input.days;
|
|
2043
|
+
const accountId = input.accountId ?? (await this.getAccountId());
|
|
2044
|
+
// Read as `unknown`: the declared wire type describes the SUCCESS shape, and the whole point of
|
|
2045
|
+
// the guard below is that IBKR does not always send it.
|
|
2046
|
+
const response = await this.req({
|
|
2047
|
+
path: "pa/transactions",
|
|
2048
|
+
method: "POST",
|
|
2049
|
+
data: { acctIds: [accountId], conids, currency, days },
|
|
2050
|
+
});
|
|
2051
|
+
const envelope = typeof response === "object" && response !== null ? response : {};
|
|
2052
|
+
// A response that states no transaction ARRAY did not answer this question. An error envelope,
|
|
2053
|
+
// an empty object, and an explicit null are unknown broker states, and this package never
|
|
2054
|
+
// reports an unknown state as a successful empty read: the consumer of this evidence decides
|
|
2055
|
+
// whether an assignment happened, and it must not read a refusal as "no activity". A STATED
|
|
2056
|
+
// empty array is a real answer and passes through untouched.
|
|
2057
|
+
if (!Array.isArray(envelope.transactions)) {
|
|
2058
|
+
const present = Object.keys(envelope).sort();
|
|
2059
|
+
throw new Error("IBKR stated no transaction list for this contract transaction read; " +
|
|
2060
|
+
`present response keys: ${present.length === 0 ? "(none)" : present.join(", ")}`);
|
|
2061
|
+
}
|
|
2062
|
+
const rows = envelope.transactions;
|
|
2063
|
+
return {
|
|
2064
|
+
accountId,
|
|
2065
|
+
observedAtEpochMillis: this.now(),
|
|
2066
|
+
requestedConids: conids,
|
|
2067
|
+
requestedCurrency: currency,
|
|
2068
|
+
requestedDays: days,
|
|
2069
|
+
transactions: rows.map((transaction) => this.contractTransactionRecord(transaction)),
|
|
2070
|
+
};
|
|
2071
|
+
}
|
|
2072
|
+
/**
|
|
2073
|
+
* One provider string, echoed exactly as the broker wrote it.
|
|
2074
|
+
*
|
|
2075
|
+
* {@link trimmedString} is deliberately NOT used here. `type` and `desc` are the only place IBKR
|
|
2076
|
+
* names an assignment, an exercise, or an expiration, and the public type states they are echoed
|
|
2077
|
+
* exactly. Trimming would change what a consumer classifies and what an audit comparison sees,
|
|
2078
|
+
* and a stated whitespace-only string is still a statement, never silence. A value that is not a
|
|
2079
|
+
* string is not text the broker stated, so it reads `null`.
|
|
2080
|
+
*/
|
|
2081
|
+
verbatimString(value) {
|
|
2082
|
+
return typeof value === "string" ? value : null;
|
|
2083
|
+
}
|
|
2084
|
+
/**
|
|
2085
|
+
* One `pa/transactions` row, echoed. Nothing here maps, classifies, or
|
|
2086
|
+
* defaults a value; a field the broker did not state reads `null`.
|
|
2087
|
+
*/
|
|
2088
|
+
contractTransactionRecord(transaction) {
|
|
2089
|
+
return {
|
|
2090
|
+
conid: toNullableNumber(transaction.conid),
|
|
2091
|
+
accountId: this.verbatimString(transaction.acctid),
|
|
2092
|
+
date: this.verbatimString(transaction.date),
|
|
2093
|
+
rawDate: this.verbatimString(transaction.rawDate),
|
|
2094
|
+
type: this.verbatimString(transaction.type),
|
|
2095
|
+
description: this.verbatimString(transaction.desc),
|
|
2096
|
+
currency: this.verbatimString(transaction.cur),
|
|
2097
|
+
amount: toNullableNumber(transaction.amt),
|
|
2098
|
+
quantity: toNullableNumber(transaction.qty),
|
|
2099
|
+
price: toNullableNumber(transaction.pr),
|
|
2100
|
+
fxRate: toNullableNumber(transaction.fxRate),
|
|
2101
|
+
presentFieldNames: Object.keys(transaction).sort(),
|
|
2102
|
+
};
|
|
2103
|
+
}
|
|
1994
2104
|
async fetchTransactionHistory(startDate, endDate) {
|
|
1995
2105
|
this.assertOpen();
|
|
1996
2106
|
const accountId = await this.getAccountId();
|
|
@@ -2091,8 +2201,8 @@ export class IbkrClient {
|
|
|
2091
2201
|
validateOrderGraph(request) {
|
|
2092
2202
|
if (!request.accountId.trim())
|
|
2093
2203
|
throw new Error("An explicit IBKR account ID is required");
|
|
2094
|
-
if (!request.rootClientOrderId.trim() || request.rootClientOrderId.length >
|
|
2095
|
-
throw new Error("Root client order ID must contain 1 to
|
|
2204
|
+
if (!request.rootClientOrderId.trim() || request.rootClientOrderId.length > 64) {
|
|
2205
|
+
throw new Error("Root client order ID must contain 1 to 64 characters");
|
|
2096
2206
|
}
|
|
2097
2207
|
if (request.nodes.length < 1 || request.nodes.length > 8) {
|
|
2098
2208
|
throw new Error("Derivative order graphs require 1 to 8 members");
|
|
@@ -2124,6 +2234,28 @@ export class IbkrClient {
|
|
|
2124
2234
|
if (roots !== 1 || request.nodes[0]?.parentMemberId !== undefined) {
|
|
2125
2235
|
throw new Error("Derivative order graphs require exactly one root as the first member");
|
|
2126
2236
|
}
|
|
2237
|
+
for (const node of request.nodes) {
|
|
2238
|
+
if (node.clientOrderId !== undefined &&
|
|
2239
|
+
(typeof node.clientOrderId !== "string" ||
|
|
2240
|
+
node.clientOrderId.trim() !== node.clientOrderId ||
|
|
2241
|
+
node.clientOrderId.length === 0 ||
|
|
2242
|
+
node.clientOrderId.length > 64)) {
|
|
2243
|
+
throw new TypeError("Invalid graph member client order ID");
|
|
2244
|
+
}
|
|
2245
|
+
}
|
|
2246
|
+
const root = request.nodes.find(({ parentMemberId }) => parentMemberId === undefined);
|
|
2247
|
+
if (root?.clientOrderId !== undefined && root.clientOrderId !== request.rootClientOrderId) {
|
|
2248
|
+
throw new TypeError("Invalid graph root client order ID");
|
|
2249
|
+
}
|
|
2250
|
+
const effectiveIds = request.nodes.map((node) => this.graphClientOrderId(request, node));
|
|
2251
|
+
for (const clientOrderId of effectiveIds) {
|
|
2252
|
+
if (clientOrderId.length > 64) {
|
|
2253
|
+
throw new TypeError("Graph member client order ID must contain 1 to 64 characters");
|
|
2254
|
+
}
|
|
2255
|
+
}
|
|
2256
|
+
if (new Set(effectiveIds).size !== effectiveIds.length) {
|
|
2257
|
+
throw new TypeError("Duplicate graph member client order ID");
|
|
2258
|
+
}
|
|
2127
2259
|
}
|
|
2128
2260
|
validateGraphSingleNode(node) {
|
|
2129
2261
|
const orderType = node.orderType;
|
|
@@ -2163,6 +2295,8 @@ export class IbkrClient {
|
|
|
2163
2295
|
return this.firstNumber(order.stopPrice, order.stop_price, order.auxPrice, order.aux_price);
|
|
2164
2296
|
}
|
|
2165
2297
|
graphClientOrderId(request, node) {
|
|
2298
|
+
if (node.clientOrderId !== undefined)
|
|
2299
|
+
return node.clientOrderId;
|
|
2166
2300
|
return node.parentMemberId === undefined
|
|
2167
2301
|
? request.rootClientOrderId
|
|
2168
2302
|
: `${request.rootClientOrderId}:${node.memberId}`;
|