1.4.0 • Published 2 months ago

velo-node v1.4.0

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

velo-node

NodeJS library for Velo API access. See full documentation here.

Install

npm install velo-node

Usage

const velo = require('velo-node')

async function doWork() {
  const futures = await client.futures()
  const future = futures[0]

  const columns = client.futuresColumns()
  const twoColumns = columns.slice(0, 2)

  const params = {
    type: 'futures',
    columns: twoColumns,
    exchanges: [future.exchange],
    products: [future.product],
    begin: Date.now() - 1000 * 60 * 11, // 10 minutes
    end: Date.now(),
    resolution: 1 // 1 minute
  }

  const rows = client.rows(params)
  for await (const row of rows) {
    console.log(row)
  }
}

const client = new velo.Client('api_key')

doWork()

License

Copyright 2023 Velo Data, license MIT

1.4.0

2 months ago

1.3.0

4 months ago

1.2.2

5 months ago

1.2.1

5 months ago

1.2.0

7 months ago

1.1.1

7 months ago

1.1.0

7 months ago

1.0.1

7 months ago

1.0.0

7 months ago

0.1.0

7 months ago