@strong-roots-capital/bitmex-type-guards
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

bitmex-type-guards Build status npm version codecov

Type-guards for Bitmex API objects

Install

npm install @strong-roots-capital/bitmex-type-guards

Use

import is from '@strong-roots-capital/bitmex-type-guards'

const promise = bitmex.Order.new({
    symbol: tradepair,
    side: 'Buy',
    orderQty: 100,
    ordType: 'Limit',
    price: 10000,
    execInst: 'ParticipateDoNotInitiate'
})

promise.then(order => console.log(is.order(order)))
//=> true

Supported Type-Guards

  • [X] Order

More to come as they prove useful. Pull-requests welcome.

Acknowledgments

Readme

Keywords

Package Sidebar

Install

npm i @strong-roots-capital/bitmex-type-guards

Weekly Downloads

2

Version

1.0.0

License

ISC

Unpacked Size

12.3 kB

Total Files

6

Last publish

Collaborators

  • amchelle
  • hamroctopus