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/stocks-response.json | 51 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 test/stocks-response.json (limited to 'test/stocks-response.json') diff --git a/test/stocks-response.json b/test/stocks-response.json new file mode 100644 index 0000000..f9d6d59 --- /dev/null +++ b/test/stocks-response.json @@ -0,0 +1,51 @@ +{ + "AAPL": [ + { + "name": "APPLE INC", + "chineseName": "苹果公司", + "assetClass": "STK", + "contracts": [ + { + "conid": 265598, + "exchange": "NASDAQ", + "isUS": true + }, + { + "conid": 38708077, + "exchange": "MEXI", + "isUS": false + }, + { + "conid": 273982664, + "exchange": "EBS", + "isUS": false + } + ] + }, + { + "name": "LS 1X AAPL", + "chineseName": null, + "assetClass": "STK", + "contracts": [ + { + "conid": 493546048, + "exchange": "LSEETF", + "isUS": false + } + ] + }, + { + "name": "APPLE INC-CDR", + "chineseName": "苹果公司", + "assetClass": "STK", + "contracts": [ + { + "conid": 532640894, + "exchange": "AEQLIT", + "isUS": false + } + ] + } + ] +} + -- cgit v1.3