From 0716a22d1fab76a18606ec031d33914ccbc56633 Mon Sep 17 00:00:00 2001 From: Dan Rostovtsev Date: Mon, 6 Apr 2026 15:48:14 -0400 Subject: First working IBKR API implementation. * 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. --- test/order-example.json | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 test/order-example.json (limited to 'test/order-example.json') diff --git a/test/order-example.json b/test/order-example.json new file mode 100644 index 0000000..43f5a02 --- /dev/null +++ b/test/order-example.json @@ -0,0 +1,32 @@ +{ + "acctId": "U1234567", + "conid": 265598, + "conidex": "265598@SMART", + "manualIndicator": true, + "extOperator":"person1234", + "secType": "265598@STK", + "cOID": "AAPL-BUY-100", + "parentId": "None", + "orderType": "TRAILLMT", + "listingExchange": "NASDAQ", + "isSingleGroup": false, + "outsideRTH": true, + "price": 185.50, + "auxPrice": 183, + "side": "BUY", + "ticker": "AAPL", + "tif": "GTC", + "trailingAmt": 1.00, + "trailingType": "amt", + "referrer": "QuickTrade", + "quantity": 100, + "useAdaptive": false, + "isCcyConv": false, + "strategy": "Vwap", + "strategyParameters": { + "MaxPctVol":"0.1", + "StartTime":"14:00:00 EST", + "EndTime":"15:00:00 EST", + "AllowPastEndTime":true + } +} -- cgit v1.3