Introduction
Repacked version of fubon-sdk-nodejs.
convenience for quick setup js project use, without manually override the local file & typescript intelligence support
(upstream) SDK Version
official SDK
Install
npm i @jimmyolo/node-fubon-sdk
Changes
- add
index.d.ts
- fix the inner SDK version coupled with the npm package version after re-packed
- fixup typescript declarations
TpslWrapper
typo
Response<Array<xxx>>
invalid syntax
JsAccount
JsFutOptOrder
unknown types
const enum
-> enum
- details: patch.diff
npm run download [sdk version]
npm run unpack [sdk version]
# copy the changes
cp index.d.ts build/sdk/
# override the import path
sed -i "s/.\\/sdk\\//.\\//g" build/sdk/index.d.ts
## create patch
diff -ruN node_modules/fubon-neo/ build/sdk/ > patches.diff
## apply patch
cd build
patch -p1 < ../patches.diff
Usage
https://www.fbs.com.tw/TradeAPI/en/docs/trading/introduction/