diff options
| author | Dan Rostovtsev <dan@rostovtsev.org> | 2026-04-06 15:48:14 -0400 |
|---|---|---|
| committer | Dan Rostovtsev <dan@rostovtsev.org> | 2026-04-06 15:48:14 -0400 |
| commit | 0716a22d1fab76a18606ec031d33914ccbc56633 (patch) | |
| tree | d63cc7ee4fd73bac935a776d09dc0ec78c8335e2 /test/position-response.json | |
| parent | 2c6cf786c151118232533a6cfbc769ce1514aa9e (diff) | |
* doc/ibkr.org: Docs for using the IBKR API.
* manifest.scm: Guix Manifest of all project dependencies.
* scripts/run-gateway.bash: A script for building and deploying the
IBKR Client Gateway.
* src/ibkr/api.scm: Support for specific endpoints, and generic tools
for using the IBKR API.
* src/ibkr/types.scm: Basic types for the IBKR endpoints. Orders,
positions, securities, etc.
* test/*.json: IBKR response and request examples for testing.
* test/api.scm: Response handling and endpoint construction.
* test/types.scm: Tests JSON parsing of IBKR requests and responses.
Diffstat (limited to 'test/position-response.json')
| -rw-r--r-- | test/position-response.json | 71 |
1 files changed, 71 insertions, 0 deletions
diff --git a/test/position-response.json b/test/position-response.json new file mode 100644 index 0000000..f11e20e --- /dev/null +++ b/test/position-response.json @@ -0,0 +1,71 @@ +[ + { + "acctId": "U1234567", + "conid": 756733, + "contractDesc": "SPY", + "position": 5.0, + "marketPrice": 471.16000365, + "marketValue": 2355.8, + "currency": "USD", + "avgCost": 434.93, + "avgPrice": 434.93, + "realizedPnl": 0.0, + "unrealizedPnl": 181.15, + "exchs": null, + "expiry": null, + "putOrCall": null, + "multiplier": null, + "strike": 0.0, + "exerciseStyle": null, + "conExchMap": [], + "assetClass": "STK", + "undConid": 0, + "model": "" + }, + { + "acctId": "U1234567", + "conid": 76792991, + "contractDesc": "TSLA", + "position": 7.0, + "mktPrice": 250.73399355, + "mktValue": 1755.14, + "currency": "USD", + "avgCost": 221.67142855, + "avgPrice": 221.67142855, + "realizedPnl": 0.0, + "unrealizedPnl": 203.44, + "exchs": null, + "expiry": null, + "putOrCall": null, + "multiplier": null, + "strike": 0.0, + "exerciseStyle": null, + "conExchMap": [], + "assetClass": "STK", + "undConid": 0, + "model": "" + }, + { + "acctId": "U1234567", + "conid": 107113386, + "contractDesc": "META", + "position": 11.0, + "mktPrice": 333.1199951, + "mktValue": 3664.32, + "currency": "USD", + "avgCost": 306.6909091, + "avgPrice": 306.6909091, + "realizedPnl": 0.0, + "unrealizedPnl": 290.72, + "exchs": null, + "expiry": null, + "putOrCall": null, + "multiplier": null, + "strike": 0.0, + "exerciseStyle": null, + "conExchMap": [], + "assetClass": "STK", + "undConid": 0, + "model": "" + } +] |
