Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

binance-api-node

Package Overview
Dependencies
Maintainers
1
Versions
180
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

binance-api-node - npm Package Compare versions

Comparing version 0.8.14 to 0.8.15

4

dist/http.js

@@ -315,3 +315,5 @@ 'use strict';

tradeFee: function tradeFee(payload) {
return pCall('/wapi/v3/tradeFee.html', payload);
return pCall('/wapi/v3/tradeFee.html', payload).then(function (res) {
return res.tradeFee;
});
},

@@ -318,0 +320,0 @@ assetDetail: function assetDetail(payload) {

{
"name": "binance-api-node",
"version": "0.8.14",
"version": "0.8.15",
"description": "A node API wrapper for Binance",

@@ -5,0 +5,0 @@ "main": "dist",

@@ -909,3 +909,3 @@ # binance-api-node [![build](https://img.shields.io/travis/HyperCubeProject/binance-api-node.svg?style=flat-square)](https://travis-ci.org/HyperCubeProject/binance-api-node) [![cover](https://img.shields.io/coveralls/HyperCubeProject/binance-api-node.svg?style=flat-square)](https://coveralls.io/github/HyperCubeProject/binance-api-node) [![bnb](https://img.shields.io/badge/binance-winner-yellow.svg?style=flat-square)](https://github.com/binance-exchange/binance-api-node)

taker: 0.0001,
},
},
{

@@ -912,0 +912,0 @@ symbol: 'LTC',

@@ -246,3 +246,3 @@ import crypto from 'crypto'

depositAddress: payload => pCall('/wapi/v3/depositAddress.html', payload),
tradeFee: payload => pCall('/wapi/v3/tradeFee.html', payload),
tradeFee: payload => pCall('/wapi/v3/tradeFee.html', payload).then(res => res.tradeFee),
assetDetail: payload => pCall('/wapi/v3/assetDetail.html', payload),

@@ -249,0 +249,0 @@

@@ -13,8 +13,12 @@ import test from 'ava'

test('[REST] order', async t => {
await client.orderTest({
symbol: 'ETHBTC',
side: 'BUY',
quantity: 1,
price: 1,
})
try {
await client.orderTest({
symbol: 'ETHBTC',
side: 'BUY',
quantity: 1,
price: 1,
})
} catch (e) {
t.is(e.message, 'Filter failure: PERCENT_PRICE')
}

@@ -104,4 +108,4 @@ await client.orderTest({

t.truthy(tfee)
checkFields(t, tfee, ['symbol', 'maker', 'taker'])
t.truthy(tfee.length)
checkFields(t, tfee[0], ['symbol', 'maker', 'taker'])
})

@@ -108,0 +112,0 @@

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc