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-preview-response.json | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 test/order-preview-response.json (limited to 'test/order-preview-response.json') diff --git a/test/order-preview-response.json b/test/order-preview-response.json new file mode 100644 index 0000000..8306301 --- /dev/null +++ b/test/order-preview-response.json @@ -0,0 +1,29 @@ +{ + "amount": { + "amount": "1,977.60 USD (10 Shares)", + "commission": "1 USD", + "total": "1,978.60 USD" + }, + "equity": { + "current": "215,415,594", + "change": "-1", + "after": "215,415,593" + }, + "initial": { + "current": "116,965", + "change": "652", + "after": "117,617" + }, + "maintenance": { + "current": "106,332", + "change": "592", + "after": "106,924" + }, + "position": { + "current": "0", + "change": "10", + "after": "10" + }, + "warn": "21/You are trying to submit an order without having market data for this instrument. \nIB strongly recommends against this kind of blind trading which may result in \nerroneous or unexpected trades.", + "error": null +} -- cgit v1.3