quantconnect-client
v0.0.19
Published
[![NitayRabi](https://circleci.com/gh/NitayRabi/quantconnect-client.svg?style=svg)](https://app.circleci.com/pipelines/github/NitayRabi/quantconnect-client)
Downloads
35
Readme
QuantConnect JS REST Client
Important
This is not an official API maintained by the QuantConnect team, and is in (VERY) early stages of development.
General
An open-source wrapper over the REST API described in QuantConnect's documentation
The API works both in Node.JS environment and browser environment.
Installation
Using yarn:
yarn add quantconnect-client
Using NPM:
npm install quantconnect-client
Usage
Authentication
In order to authenticate you'll need an API key and token from QuantConnect, you can get these through your QuantConnect account page, similar to using LEAN CLI
Usage Example
import quantconnect from "quantconnect-client";
// Keep these in a safe place
const userId = '';
const token = ''
const { live } = quantconnect({ userId: this.userId, token: this.token });
// result is your live running algorithms
const result = live.read({ status: "Running" })
Supported endpoints
See full reference in modules
- Authenticate
- Projects
- Files
- Live
Roadmap
- [ ] Tests tests tests
- [ ] Full return types from endpoints
- [ ] More endpoints support:
- [ ] Backtest management and reports
- [ ] Compiling code
- [ ] Downloading data