This project interfaces with WOOX's API and Websocket using JavaScript
- Clone the repository:
git clone https://github.com/0xLyon/woox.git
- Change directory into the project directory:
cd woox
- Install dependancies
npm install
- Populate your API_SECRET, API_KEY and APPLICATION_ID in the .env file to be used as environment variables
(Can be found via your WooX account - https://x.woo.org/en/account/sub-account)
vi .env
This projects allows the following API calls to be actioned:
- Get System Status
- Get Account Balance
- Get Available Symbols
- Update Account Mode
- Send Order
- Send Algo Order
It also allows the following WebSocket functions:
- Ping (Keep Alive)
- Subscribe (Public Endpoints)
- Authenticate and Subscribe (Private Endpoints)
To use the the API calls available, you can run the scripts for each, as detailed below, from the root directory:
- Get System Status:
npm run api_system
- Get Account Balance:
npm run api_balance
- Get Available Symbols:
npm run api_symbols
- Update Account Mode:
npm run api_updateAccount
* - Send Order:
npm run api_sendOrder
* - Send Algo Order:
npm run api_sendAlgoOrder
*
NOTE The API Calls marked, have "Configurable Parameters" that can be configured in their respective .js files
To use the Websocket functions available, you can run the scripts for each, as detailed below, from the root directory:
- Ping (Keep Alive):
npm run ws_ping
- Subscribe (Public Endpoints):
npm run ws_sub
* - Authenticate and Subscribe (Private Endpoints):
npm run ws_authSub
*
NOTE The WebSocket functions marked, have "Configurable Parameters" that can be configured in their respective .js files.