Comparing version 2.8.2 to 2.8.3
@@ -376,2 +376,3 @@ import { ExchangeFilter, ExchangeSymbol, numberInString, OrderBookRow, OrderResponseType, OrderSide, OrderStatus, OrderTimeInForce, OrderType, RateLimiter, SideEffects, StringBoolean, SymbolFilter } from './shared'; | ||
quoteAsset: string; | ||
quotePrecision: number; | ||
quoteAssetPrecision: number; | ||
@@ -381,2 +382,5 @@ orderTypes: OrderType[]; | ||
ocoAllowed: boolean; | ||
quoteOrderQtyMarketAllowed: boolean; | ||
allowTrailingStop: boolean; | ||
cancelReplaceAllowed: boolean; | ||
isSpotTradingAllowed: boolean; | ||
@@ -386,2 +390,4 @@ isMarginTradingAllowed: boolean; | ||
permissions: ('SPOT' | 'MARGIN')[]; | ||
defaultSelfTradePreventionMode: 'NONE' | 'EXPIRE_TAKER' | 'EXPIRE_BOTH' | 'EXPIRE_MAKER'; | ||
allowedSelfTradePreventionModes: ('NONE' | 'EXPIRE_TAKER' | 'EXPIRE_BOTH' | 'EXPIRE_MAKER')[]; | ||
} | ||
@@ -388,0 +394,0 @@ export interface ExchangeInfo { |
@@ -1,7 +0,7 @@ | ||
import { MainClient } from "../main-client"; | ||
import { NewFuturesOrderParams } from "../types/futures"; | ||
import { BinanceBaseUrlKey, CancelOCOParams, CancelOrderParams, NewOCOParams, OrderIdProperty } from "../types/shared"; | ||
import { WsMarket } from "../types/websockets"; | ||
import { USDMClient } from "../usdm-client"; | ||
import { WsKey } from "../websocket-client"; | ||
import { MainClient } from '../main-client'; | ||
import { NewFuturesOrderParams } from '../types/futures'; | ||
import { BinanceBaseUrlKey, CancelOCOParams, CancelOrderParams, NewOCOParams, OrderIdProperty } from '../types/shared'; | ||
import { WsMarket } from '../types/websockets'; | ||
import { USDMClient } from '../usdm-client'; | ||
import { WsKey } from '../websocket-client'; | ||
export declare type RestClient = MainClient | USDMClient; | ||
@@ -8,0 +8,0 @@ export interface RestClientOptions { |
@@ -43,3 +43,3 @@ "use strict"; | ||
return Object.keys(params) | ||
.map(key => { | ||
.map((key) => { | ||
const value = params[key]; | ||
@@ -55,3 +55,2 @@ if (strict_validation === true && typeof value === 'undefined') { | ||
exports.serialiseParams = serialiseParams; | ||
; | ||
function getRequestSignature(data, key, secret, recvWindow, timestamp, strictParamValidation) { | ||
@@ -160,3 +159,4 @@ var _a, _b; | ||
} | ||
if (wsKey.indexOf('partialBookDepth') !== -1 || wsKey.indexOf('depth') !== -1) { | ||
if (wsKey.indexOf('partialBookDepth') !== -1 || | ||
wsKey.indexOf('depth') !== -1) { | ||
wsMsg.e = 'partialBookDepth'; | ||
@@ -163,0 +163,0 @@ return; |
{ | ||
"name": "binance", | ||
"version": "2.8.2", | ||
"description": "Complete & robust node.js SDK for Binance's REST APIs and WebSockets, with TypeScript & end-to-end tests.", | ||
"version": "2.8.3", | ||
"description": "Complete & robust Node.js SDK for Binance's REST APIs and WebSockets, with TypeScript & end-to-end tests.", | ||
"main": "lib/index.js", | ||
@@ -6,0 +6,0 @@ "types": "lib/index.d.ts", |
Sorry, the diff of this file is not supported yet
464160
8834