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.10.18 to 0.10.19

3

dist/http-client.js

@@ -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 @@

2

package.json
{
"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 @@

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