0.1.51 • Published 4 years ago
@waytrade/ib-api-service v0.1.51
ib-api-service
Implements a REST / Webhook API Server on top of https://github.com/stoqey/ib
We use this app as part of our microservice ecosystem and it is OSS so you don't need to write it again. No questions will be answered, no support will be given, no feature-request will be accepted. Use it - or fork it and roll your own :)
Preparation
$ yarn global add @openapitools/openapi-generator-cliBuild and run
$ yarn install
$ yarn build
$ yarn startPrepare for release (lint, test and validate OpenAPI)
$ yarn releaseUsage
Run the standalone docker (with IB Gateway, IBC and ib-api-service)
Create an .env file on root folder with:
- TWS_USERID (your TWS user id)
- TWS_PASSWORD (your TWS password)#
- TRADING_MODE ('paper' or 'live')
Run:
$ docker-compose up --buildGet openapi.json as a node package
$ yarn add @waytrade/ib-api-serviceand generate your client code, like:
$ openapi-generator-cli generate -i ./node_modules/@waytrade/ib-api-service/openapi.json -g typescript-axios -o ./src/apis/ib-api-serviceInclude on your docker-compose.yml:
ib-api-service:
image: waytrade/ib-api-service
restart: always
environment:
SERVER_PORT: 3002
TWS_USERID: ${TWS_USERID}
TWS_PASSWORD: ${TWS_PASSWORD}
TRADING_MODE: ${TRADING_MODE:-live}
NODE_ENV: production
ports:
- 3002:30020.1.50
4 years ago
0.1.51
4 years ago
0.1.49
4 years ago
0.1.47
4 years ago
0.1.48
4 years ago
0.1.45
4 years ago
0.1.46
4 years ago
0.1.41
4 years ago
0.1.42
4 years ago
0.1.43
4 years ago
0.1.44
4 years ago
0.1.40
4 years ago
0.1.39
4 years ago
0.1.38
4 years ago
0.1.37
4 years ago
0.1.36
4 years ago
0.1.35
4 years ago
0.1.34
4 years ago
0.1.33
4 years ago
0.1.32
4 years ago
0.1.31
4 years ago
0.1.24
4 years ago
0.1.23
4 years ago
0.1.22
4 years ago
0.1.21
4 years ago
0.1.20
4 years ago
0.1.19
4 years ago
0.1.18
4 years ago
0.1.17
4 years ago
0.1.16
5 years ago
0.1.15
5 years ago