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. --- scripts/start-gateway.bash | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100755 scripts/start-gateway.bash (limited to 'scripts/start-gateway.bash') diff --git a/scripts/start-gateway.bash b/scripts/start-gateway.bash new file mode 100755 index 0000000..0fd8193 --- /dev/null +++ b/scripts/start-gateway.bash @@ -0,0 +1,19 @@ +#!/usr/bin/bash + +set -e + +# create env +TMP=`mktemp -t -d ibkr-cpgw.XXXXXX` +mkdir -p $TMP +cp resources/clientportal.gw.zip $TMP +cp resources/custom.yaml $TMP + +# build env +cd $TMP +unzip clientportal.gw.zip +cp custom.yaml ./root/custom.yaml + +# run gateway +./bin/run.sh ./root/custom.yaml + +rm -rf $TMP -- cgit v1.3