binance-api-node
Advanced tools
Comparing version 0.8.14 to 0.8.15
@@ -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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
250187
2275