1.0.1 • Published 10 months ago

tradovate v1.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
10 months ago

Tradovate Typescript

NPM version NPM downloads MIT License Coverage Status

A Typescript package for quickly connecting and deploying trading strategies to Tradovate.

Project Status

Working on video examples for live and replay stratigies.

Installation

npm install tradovate --save
yarn add tradovate

Usage

Connecting to quote data can be done in a few lines of code.

import 'dotenv/config'
import {TradovateService, AccessTokenRequestBody, MarketDataSocket} from '../../src'

const credentials: AccessTokenRequestBody = {
    name: process.env.TV_USER!,
    password: process.env.TV_PASSWORD!,
    appId: process.env.TV_APP_ID,
    appVersion: '1.0.0',
    cid: process.env.TV_CID,
    sec: process.env.TV_SECRET
}

const service = new TradovateService()

const mdSocket = new MarketDataSocket()

async function main() {
    await service.connect(credentials)

    await mdSocket.connect()

    await mdSocket.subscribeQuote('ESU3', item => {
        console.log(item)
    })

    setTimeout(() => {
        mdSocket.disconnect()
    }, 30 * 60 * 1000)
}

main()

Note: you need a funded Tradovate account with API access enabled and a CME Information License Agreement (ILA) for above code to work.

License

Tradovate Typescript is freely distributable under the terms of the MIT license.

1.0.1

10 months ago

0.6.2

2 years ago

0.6.1

2 years ago

0.6.0

2 years ago

0.5.6

2 years ago

0.5.5

2 years ago

0.5.4

2 years ago

0.5.3

2 years ago

0.5.2

2 years ago

0.5.1

2 years ago

0.5.0

2 years ago

0.4.0

2 years ago

0.3.0

2 years ago

0.2.0

2 years ago

0.1.0

2 years ago