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.47 to 0.10.48

2

dist/http-client.js

@@ -254,3 +254,3 @@ "use strict";

var url = arguments.length > 2 ? arguments[2] : undefined;
var newPayload = ['LIMIT'].includes(payload.type) || !payload.type ? _objectSpread({
var newPayload = ['LIMIT', 'STOP_LOSS_LIMIT', 'TAKE_PROFIT_LIMIT'].includes(payload.type) || !payload.type ? _objectSpread({
timeInForce: 'GTC'

@@ -257,0 +257,0 @@ }, payload) : payload;

@@ -671,3 +671,4 @@ "use strict";

walletBalance: b.wb,
crossWalletBalance: b.cw
crossWalletBalance: b.cw,
balanceChange: b.bc
};

@@ -674,0 +675,0 @@ }),

@@ -191,2 +191,6 @@ // tslint:disable:interface-name

export type GetOrderOcoOptions =
| { orderListId: number }
| { listClientOrderId: string }
export interface GetInfo {

@@ -283,2 +287,3 @@ spot: GetInfoDetails

getOrder(options: GetOrderOptions & { useServerTime?: boolean }): Promise<QueryOrderResult>
getOrderOco(options: GetOrderOcoOptions & { useServerTime?: boolean }): Promise<QueryOrderOcoResult>
cancelOrder(options: {

@@ -289,2 +294,7 @@ symbol: string

}): Promise<CancelOrderResult>
cancelOrderOco(options: {
symbol: string
orderListId: number
useServerTime?: boolean
}): Promise<CancelOrderOcoResult>
cancelOpenOrders(options: {

@@ -777,4 +787,6 @@ symbol: string

| 'STOP'
| 'STOP_LOSS_LIMIT'
| 'STOP_MARKET'
| 'TAKE_PROFIT_MARKET'
| 'TAKE_PROFIT_LIMIT'
| 'TRAILING_STOP_MARKET'

@@ -1041,2 +1053,13 @@

export interface QueryOrderOcoResult {
orderListId: number
contingencyType: ContingencyType
listStatusType: ListStatusType
listOrderStatus: ListOrderStatus
listClientOrderId: string
transactionTime: number
symbol: string
orders: Order[]
}
export interface CancelOrderResult {

@@ -1058,2 +1081,14 @@ symbol: string

export interface CancelOrderOcoResult {
orderListId: number
contingencyType: ContingencyType
listStatusType: ListStatusType
listOrderStatus: ListOrderStatus
listClientOrderId: string
transactionTime: number
symbol: string
orders: Order[]
orderReports: Order[]
}
export interface AvgPriceResult {

@@ -1060,0 +1095,0 @@ mins: number

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

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

Sorry, the diff of this file is too big to display

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