Skip to content

A fun project to detect patterns in financial charts and add custom conditional logic for the patterns for trading. Currently only works with TradeStation APIs.

License

Notifications You must be signed in to change notification settings

DesaiSamir/tradingapp

Repository files navigation

Trading companion for Tradestation

Currently this only works with TRADESTATION

Tradingapp is an idea that will allow user to find patterns and create custom logic to take some trades.

# with npm
# install server dependencies at root 
# install client dependencies in "clinet" folder
npm install


# or with Yarn for both server and client
yarn install

Usage

You'll need Tradeshtation client_id and secret for you to use this application.

Rename a sample .env.example file to .env file in the root directory of your project. Add your client_id and secret in the fields below to use this APIs.

For example:

TS_CLIENT_ID="<TS_CLIENT_ID>"
TS_CLIENT_SECRET="<TS_CLIENT_SECRET>"

Alphavantage does not work because of rate limiting...

If you want to use AlphaVantage APIs add a key for that in the .env file. If you don't have a key get it from https://www.alphavantage.co/support/#api-key

ALPHA_ADVANTAGE_KEY="<ALPHA_ADVANTAGE_KEY>" 

process.env now has the keys and values you defined in your .env file and these are loaded in config.js file present in the ./server directory. You can see in the below example by default the base_url is set to simulated account.

ts: {
    client_id: process.env.TS_CLIENT_ID,
    client_secret: process.env.TS_CLIENT_SECRET,
    base_url: process.env.TS_BASE_URL_SIM,
    base_url_sim: process.env.TS_BASE_URL_SIM,
    base_url_live: process.env.TS_BASE_URL_LIVE,
    cookie_secret: process.env.COOKIE_SECRET,
    api_callback: process.env.API_CALLBACK,
    session_data: null
  }

Usage

Run below commands which will start both server (running at port 3001) and a client (running at port 3000).

# using npm
npm run start

#using yarn
yarn start

This is just a beginning of a idea, feedback and changes are welcome.

About

A fun project to detect patterns in financial charts and add custom conditional logic for the patterns for trading. Currently only works with TradeStation APIs.

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages