summaryrefslogtreecommitdiff
path: root/test/order-status-response.json
diff options
context:
space:
mode:
authorDan Rostovtsev <dan@rostovtsev.org>2026-04-06 15:48:14 -0400
committerDan Rostovtsev <dan@rostovtsev.org>2026-04-06 15:48:14 -0400
commit0716a22d1fab76a18606ec031d33914ccbc56633 (patch)
treed63cc7ee4fd73bac935a776d09dc0ec78c8335e2 /test/order-status-response.json
parent2c6cf786c151118232533a6cfbc769ce1514aa9e (diff)
First working IBKR API implementation.HEADmain
* 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/order-status-response.json')
-rw-r--r--test/order-status-response.json44
1 files changed, 44 insertions, 0 deletions
diff --git a/test/order-status-response.json b/test/order-status-response.json
new file mode 100644
index 0000000..bfcc414
--- /dev/null
+++ b/test/order-status-response.json
@@ -0,0 +1,44 @@
+{
+ "sub_type": null,
+ "request_id": "209",
+ "server_id": "0",
+ "order_id": 1799796559,
+ "conidex": "265598",
+ "conid": 265598,
+ "symbol": "AAPL",
+ "side": "S",
+ "contract_description_1": "AAPL",
+ "listing_exchange": "NASDAQ.NMS",
+ "option_acct": "c",
+ "company_name": "APPLE INC",
+ "size": "0.0",
+ "total_size": "5.0",
+ "currency": "USD",
+ "account": "U1234567",
+ "order_type": "MARKET",
+ "cum_fill": "5.0",
+ "order_status": "Filled",
+ "order_ccp_status": "2",
+ "order_status_description": "Order Filled",
+ "tif": "DAY",
+ "fg_color": "#FFFFFF",
+ "bg_color": "#000000",
+ "order_not_editable": true,
+ "editable_fields":"",
+ "cannot_cancel_order": true,
+ "deactivate_order": false,
+ "sec_type": "STK",
+ "available_chart_periods": "#R|1",
+ "order_description": "Sold 5 Market, Day",
+ "order_description_with_contract": "Sold 5 AAPL Market, Day",
+ "alert_active": 1,
+ "child_order_type": "0",
+ "order_clearing_account": "U1234567",
+ "size_and_fills": "5",
+ "exit_strategy_display_price": "193.12",
+ "exit_strategy_chart_description": "Sold 5 @ 192.26",
+ "average_price": "192.26",
+ "exit_strategy_tool_availability": "1",
+ "allowed_duplicate_opposite": true,
+ "order_time": "231211180049"
+}