🚀 DAY 5 OF LAUNCH WEEK: Introducing Socket Firewall Enterprise.Learn more →
Socket
Book a DemoInstallSign in
Socket

@strong-roots-capital/bitmex-get-last-record

Package Overview
Dependencies
Maintainers
2
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@strong-roots-capital/bitmex-get-last-record

Fetch the most-recent record from BitMEX

latest
Source
npmnpm
Version
1.0.1
Version published
Maintainers
2
Created
Source

bitmex-get-last-record Build status npm version codecov

Fetch the most-recent record from BitMEX, allowing for a slight publishing-delay

Tests with the /trade/bucketed endpoint show it takes ~15 seconds for BitMEX to publish a candle after session-end. This package abstracts away that (potential) wait with a Promise.

Install

npm install @strong-roots-capital/bitmex-get-last-record

Use

import bitmexGetLastRecord from '@strong-roots-capital/bitmex-get-last-record'
import Record from 'timeseries-record'

(async () => {
    const record: Record = await bitmexGetLastRecord({symbol: 'XBTUSD', binSize: '1d'})
}) ()

Keywords

bitmex

FAQs

Package last updated on 30 Mar 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts