0.0.1 • Published 4 years ago

financialcpp v0.0.1

Weekly downloads
7
License
-
Repository
-
Last release
4 years ago

npm

financialcpp

financialcpp - javascript client for financialcpp c++ stock market library

Install

npm install financialcpp

Getting started

import fpp from 'financialcpp'

const fpp = new fpp({
    endpoint: 'http://localhost:3333/ws'
})

// fetch data from the server
await fpp.fetchSymbol({
    dates: "20200210-20200214",
})

// use the data
let price = fpp.getSymbol({
    symbol: 'AAPL',
    rate: 'tick',
    dates: "20200210"
})