Skip to content

Latest commit

 

History

History
44 lines (28 loc) · 1.15 KB

File metadata and controls

44 lines (28 loc) · 1.15 KB

WhaleAPI SDK for Python

longportwhale provides an easy-to-use interface for invokes WhaleAPI.

References

  • Config

    The configuration of the SDK.

  • TradeContext

    The Trade API part of the SDK, e.g.: subscribe order events

Quickstart

Install WhaleAPI SDK

pip install longportwhale

Setting environment variables(MacOS/Linux)

export LONGPORT_APP_KEY="App Key get from user center"
export LONGPORT_APP_SECRET="App Secret get from user center"
export LONGPORT_ACCESS_TOKEN="Access Token get from user center"

Setting environment variables(Windows)

setx LONGPORT_APP_KEY "App Key get from user center"
setx LONGPORT_APP_SECRET "App Secret get from user center"
setx LONGPORT_ACCESS_TOKEN "Access Token get from user center"

License

Licensed under either of