0.1.51 • Published 3 years ago

@waytrade/ib-api-service v0.1.51

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

ib-api-service

Test and Publish Language grade: JavaScript

GitHub package.json version

Test and Publish Core Coverage Test Report Language grade: JavaScript

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-cli

Build and run

$ yarn install
$ yarn build
$ yarn start

Prepare for release (lint, test and validate OpenAPI)

$ yarn release

Usage

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 --build

Get openapi.json as a node package

$ yarn add @waytrade/ib-api-service

and 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-service

Include 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:3002
0.1.50

3 years ago

0.1.51

3 years ago

0.1.49

3 years ago

0.1.47

3 years ago

0.1.48

3 years ago

0.1.45

3 years ago

0.1.46

3 years ago

0.1.41

3 years ago

0.1.42

3 years ago

0.1.43

3 years ago

0.1.44

3 years ago

0.1.40

3 years ago

0.1.39

3 years ago

0.1.38

3 years ago

0.1.37

3 years ago

0.1.36

3 years ago

0.1.35

3 years ago

0.1.34

3 years ago

0.1.33

3 years ago

0.1.32

3 years ago

0.1.31

3 years ago

0.1.24

3 years ago

0.1.23

3 years ago

0.1.22

3 years ago

0.1.21

3 years ago

0.1.20

3 years ago

0.1.19

3 years ago

0.1.18

3 years ago

0.1.17

3 years ago

0.1.16

3 years ago

0.1.15

3 years ago