binance-api-node
Advanced tools
Comparing version 0.10.18 to 0.10.19
@@ -503,2 +503,5 @@ "use strict"; | ||
}, | ||
marginLoan: function marginLoan(payload) { | ||
return privCall('/sapi/v1/margin/loan', payload, 'POST'); | ||
}, | ||
futuresPing: function futuresPing() { | ||
@@ -505,0 +508,0 @@ return pubCall('/fapi/v1/ping').then(function () { |
@@ -297,2 +297,3 @@ // tslint:disable:interface-name | ||
marginRepay(options: { asset: string; amount:number; useServerTime?: boolean }): Promise<{tranId:number}> | ||
marginLoan(options: { asset: string; amount:number; useServerTime?: boolean }): Promise<{tranId:number}> | ||
} | ||
@@ -299,0 +300,0 @@ |
{ | ||
"name": "binance-api-node", | ||
"version": "0.10.18", | ||
"version": "0.10.19", | ||
"description": "A node API wrapper for Binance", | ||
@@ -5,0 +5,0 @@ "main": "dist", |
@@ -1670,2 +1670,27 @@ # binance-api-node [![build](https://img.shields.io/travis/Ashlar/binance-api-node/master.svg?style=flat-square)](https://travis-ci.org/Ashlar/binance-api-node) [![cover](https://img.shields.io/coveralls/github/Ashlar/binance-api-node/master?style=flat-square)](https://coveralls.io/github/Ashlar/binance-api-node?branch=master) [![bnb](https://img.shields.io/badge/binance-winner-yellow.svg?style=flat-square)](https://github.com/binance-exchange/binance-api-node) | ||
#### marginLoan | ||
Create a loan for margin account. | ||
```js | ||
console.log(await client.marginLoan({ asset: 'BTC', amount:'0.0001' })); | ||
``` | ||
| Param | Type | Required | Description | | ||
| ----- | ------ | -------- | -------------- | | ||
| asset | String | true | The asset name | | ||
| amount | Number | true | | ||
<details> | ||
<summary>Output</summary> | ||
```js | ||
{ | ||
"tranId": 100000001 //transaction id | ||
} | ||
``` | ||
</details> | ||
#### marginRepay | ||
@@ -1672,0 +1697,0 @@ |
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
140411
2198
2720