Lightweight common nodejs module for placing orders through Tradovate's API.
- Download the trader.js file and place it in your project directory
- Import trader.js into any project files
- Happy coding!
Make sure you add a file called accessToken.json with your access token inside it and place it in the same directory as traderJS or the module won't work
//Import traderJS
const traderJS = require("./trader.js");
traderJS.placeOrder([TrailingStop side (Buy/Sell)], [TrailingStop price (Number)], [Symbol], [Order side (Buy/Sell], [Quantity], [accountSpec], [accountId], [Limit order price (Number)]);
Access Token Example
{"accessToken":"INSERT ACCESS TOKEN HERE"}
- Lightweight
- Place limit orders with a trailingstop
- Don't clutter up code