Skip to content
This repository was archived by the owner on Jun 12, 2023. It is now read-only.

Anonymous-Partners/traderJS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 

Repository files navigation

tradovate traderJS

Lightweight common nodejs module for placing orders through Tradovate's API.

Installaton

  1. Download the trader.js file and place it in your project directory
  2. Import trader.js into any project files
  3. Happy coding!

Usage

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"}

Features

  • Lightweight
  • Place limit orders with a trailingstop
  • Don't clutter up code

About

Simple nodejs module to help clean up placing orders through tradovate's api

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published