1.5.4 • Published 10 months ago

velo-node v1.5.4

Weekly downloads
-
License
MIT
Repository
github
Last release
10 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: '1m' // 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 2024 Velo Data, license MIT

1.5.4

10 months ago

1.5.3

10 months ago

1.5.2

10 months ago

1.5.1

11 months ago

1.5.0

11 months ago

1.4.2

12 months ago

1.4.1

1 year ago

1.4.0

1 year ago

1.3.0

2 years ago

1.2.2

2 years ago

1.2.1

2 years ago

1.2.0

2 years ago

1.1.1

2 years ago

1.1.0

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago

0.1.0

2 years ago