bfx-api-node-models
Advanced tools
Comparing version 1.1.2 to 1.1.4
@@ -90,2 +90,5 @@ ## Classes | ||
</dd> | ||
<dt><a href="#Login">Login</a></dt> | ||
<dd><p>Login model</p> | ||
</dd> | ||
</dl> | ||
@@ -110,7 +113,7 @@ | ||
| --- | --- | | ||
| data | <code>Object</code> \| <code>Array</code> | | ||
| data.key | <code>string</code> | | ||
| data.type | <code>string</code> | | ||
| data.symbol | <code>string</code> | | ||
| data.price | <code>string</code> | | ||
| data | <code>Object</code> \| <code>Array</code> | | ||
| data.key | <code>string</code> | | ||
| data.type | <code>string</code> | | ||
| data.symbol | <code>string</code> | | ||
| data.price | <code>string</code> | | ||
@@ -125,3 +128,3 @@ <a name="Alert.unserialize"></a> | ||
| --- | --- | | ||
| arr | <code>Object</code> \| <code>Array</code> | | ||
| arr | <code>Object</code> \| <code>Array</code> | | ||
@@ -145,5 +148,5 @@ <a name="BalanceInfo"></a> | ||
| --- | --- | | ||
| data | <code>Object</code> \| <code>Array</code> | | ||
| data.amount | <code>number</code> | | ||
| data.amountNet | <code>number</code> | | ||
| data | <code>Object</code> \| <code>Array</code> | | ||
| data.amount | <code>number</code> | | ||
| data.amountNet | <code>number</code> | | ||
@@ -158,3 +161,3 @@ <a name="BalanceInfo.unserialize"></a> | ||
| --- | --- | | ||
| arr | <code>Object</code> \| <code>Array</code> | | ||
| arr | <code>Object</code> \| <code>Array</code> | | ||
@@ -178,9 +181,9 @@ <a name="Candle"></a> | ||
| --- | --- | | ||
| data | <code>Object</code> \| <code>Array</code> | | ||
| data.mts | <code>number</code> | | ||
| data.open | <code>number</code> | | ||
| data.close | <code>number</code> | | ||
| data.high | <code>number</code> | | ||
| data.low | <code>number</code> | | ||
| data.volume | <code>number</code> | | ||
| data | <code>Object</code> \| <code>Array</code> | | ||
| data.mts | <code>number</code> | | ||
| data.open | <code>number</code> | | ||
| data.close | <code>number</code> | | ||
| data.high | <code>number</code> | | ||
| data.low | <code>number</code> | | ||
| data.volume | <code>number</code> | | ||
@@ -195,3 +198,3 @@ <a name="Candle.unserialize"></a> | ||
| --- | --- | | ||
| arr | <code>Object</code> \| <code>Array</code> | | ||
| arr | <code>Object</code> \| <code>Array</code> | | ||
@@ -215,8 +218,8 @@ <a name="Currency"></a> | ||
| --- | --- | | ||
| data | <code>Object</code> \| <code>Array</code> | | ||
| data.id | <code>string</code> | | ||
| data.name | <code>string</code> | | ||
| data.pool | <code>string</code> | | ||
| data.exporer | <code>string</code> | | ||
| data.symbol | <code>string</code> | | ||
| data | <code>Object</code> \| <code>Array</code> | | ||
| data.id | <code>string</code> | | ||
| data.name | <code>string</code> | | ||
| data.pool | <code>string</code> | | ||
| data.exporer | <code>string</code> | | ||
| data.symbol | <code>string</code> | | ||
@@ -231,3 +234,3 @@ <a name="Currency.unserialize"></a> | ||
| --- | --- | | ||
| arr | <code>Object</code> \| <code>Array</code> | | ||
| arr | <code>Object</code> \| <code>Array</code> | | ||
@@ -251,21 +254,21 @@ <a name="FundingCredit"></a> | ||
| --- | --- | | ||
| data | <code>Object</code> \| <code>Array</code> | | ||
| data.id | <code>number</code> | | ||
| data.symbol | <code>string</code> | | ||
| data.side | <code>number</code> | | ||
| data.mtsCreate | <code>number</code> | | ||
| data.mtsUpdate | <code>number</code> | | ||
| data.mtsOpening | <code>number</code> | | ||
| data.mtsLastPayout | <code>number</code> | | ||
| data.amount | <code>number</code> | | ||
| data.flags | <code>number</code> | | ||
| data.status | <code>number</code> | | ||
| data.rate | <code>number</code> | | ||
| data.rateReal | <code>number</code> | | ||
| data.period | <code>number</code> | | ||
| data.positionPair | <code>string</code> | | ||
| data.notify | <code>number</code> \| <code>boolean</code> | | ||
| data.hidden | <code>number</code> \| <code>boolean</code> | | ||
| data.renew | <code>number</code> \| <code>boolean</code> | | ||
| data.noClose | <code>number</code> \| <code>boolean</code> | | ||
| data | <code>Object</code> \| <code>Array</code> | | ||
| data.id | <code>number</code> | | ||
| data.symbol | <code>string</code> | | ||
| data.side | <code>number</code> | | ||
| data.mtsCreate | <code>number</code> | | ||
| data.mtsUpdate | <code>number</code> | | ||
| data.mtsOpening | <code>number</code> | | ||
| data.mtsLastPayout | <code>number</code> | | ||
| data.amount | <code>number</code> | | ||
| data.flags | <code>number</code> | | ||
| data.status | <code>number</code> | | ||
| data.rate | <code>number</code> | | ||
| data.rateReal | <code>number</code> | | ||
| data.period | <code>number</code> | | ||
| data.positionPair | <code>string</code> | | ||
| data.notify | <code>number</code> \| <code>boolean</code> | | ||
| data.hidden | <code>number</code> \| <code>boolean</code> | | ||
| data.renew | <code>number</code> \| <code>boolean</code> | | ||
| data.noClose | <code>number</code> \| <code>boolean</code> | | ||
@@ -280,3 +283,3 @@ <a name="FundingCredit.unserialize"></a> | ||
| --- | --- | | ||
| arr | <code>Object</code> \| <code>Array</code> | | ||
| arr | <code>Object</code> \| <code>Array</code> | | ||
@@ -311,3 +314,3 @@ <a name="FundingInfo"></a> | ||
| --- | --- | | ||
| arr | <code>Object</code> \| <code>Array</code> | | ||
| arr | <code>Object</code> \| <code>Array</code> | | ||
@@ -331,20 +334,20 @@ <a name="FundingLoan"></a> | ||
| --- | --- | | ||
| data | <code>Object</code> \| <code>Array</code> | | ||
| data.id | <code>number</code> | | ||
| data.symbol | <code>string</code> | | ||
| data.side | <code>number</code> | | ||
| data.mtsCreate | <code>number</code> | | ||
| data.mtsUpdate | <code>number</code> | | ||
| data.mtsOpening | <code>number</code> | | ||
| data.mtsLastPayout | <code>number</code> | | ||
| data.amount | <code>number</code> | | ||
| data.flags | <code>number</code> | | ||
| data.status | <code>number</code> | | ||
| data.rate | <code>number</code> | | ||
| data.rateReal | <code>number</code> | | ||
| data.period | <code>number</code> | | ||
| data.notify | <code>number</code> \| <code>boolean</code> | | ||
| data.hidden | <code>number</code> \| <code>boolean</code> | | ||
| data.renew | <code>number</code> \| <code>boolean</code> | | ||
| data.noClose | <code>number</code> \| <code>boolean</code> | | ||
| data | <code>Object</code> \| <code>Array</code> | | ||
| data.id | <code>number</code> | | ||
| data.symbol | <code>string</code> | | ||
| data.side | <code>number</code> | | ||
| data.mtsCreate | <code>number</code> | | ||
| data.mtsUpdate | <code>number</code> | | ||
| data.mtsOpening | <code>number</code> | | ||
| data.mtsLastPayout | <code>number</code> | | ||
| data.amount | <code>number</code> | | ||
| data.flags | <code>number</code> | | ||
| data.status | <code>number</code> | | ||
| data.rate | <code>number</code> | | ||
| data.rateReal | <code>number</code> | | ||
| data.period | <code>number</code> | | ||
| data.notify | <code>number</code> \| <code>boolean</code> | | ||
| data.hidden | <code>number</code> \| <code>boolean</code> | | ||
| data.renew | <code>number</code> \| <code>boolean</code> | | ||
| data.noClose | <code>number</code> \| <code>boolean</code> | | ||
@@ -359,3 +362,3 @@ <a name="FundingLoan.unserialize"></a> | ||
| --- | --- | | ||
| arr | <code>Object</code> \| <code>Array</code> | | ||
| arr | <code>Object</code> \| <code>Array</code> | | ||
@@ -449,3 +452,3 @@ <a name="FundingOffer"></a> | ||
| --- | --- | | ||
| arr | <code>Object</code> \| <code>Array</code> | | ||
| arr | <code>Object</code> \| <code>Array</code> | | ||
@@ -473,8 +476,8 @@ <a name="FundingTickerHist"></a> | ||
| --- | --- | | ||
| data | <code>Object</code> \| <code>Array</code> | | ||
| data.symbol | <code>string</code> | | ||
| data.bid | <code>number</code> | | ||
| data.bidPeriod | <code>number</code> | | ||
| data.ask | <code>number</code> | | ||
| data.mtsUpdate | <code>number</code> | | ||
| data | <code>Object</code> \| <code>Array</code> | | ||
| data.symbol | <code>string</code> | | ||
| data.bid | <code>number</code> | | ||
| data.bidPeriod | <code>number</code> | | ||
| data.ask | <code>number</code> | | ||
| data.mtsUpdate | <code>number</code> | | ||
@@ -499,3 +502,3 @@ <a name="FundingTickerHist+quote"></a> | ||
| --- | --- | | ||
| arr | <code>Object</code> \| <code>Array</code> | | ||
| arr | <code>Object</code> \| <code>Array</code> | | ||
@@ -523,17 +526,17 @@ <a name="FundingTicker"></a> | ||
| --- | --- | | ||
| data | <code>Object</code> \| <code>Array</code> | | ||
| data.symbol | <code>string</code> | | ||
| data.frr | <code>number</code> \| <code>boolean</code> | | ||
| data.bid | <code>number</code> | | ||
| data.bidSize | <code>number</code> | | ||
| data.bidPeriod | <code>number</code> | | ||
| data.ask | <code>number</code> | | ||
| data.askSize | <code>number</code> | | ||
| data.askPeriod | <code>number</code> | | ||
| data.dailyChange | <code>number</code> | | ||
| data.dailyChangePerc | <code>number</code> | | ||
| data.lastPrice | <code>number</code> | | ||
| data.volume | <code>number</code> | | ||
| data.high | <code>number</code> | | ||
| data.low | <code>number</code> | | ||
| data | <code>Object</code> \| <code>Array</code> | | ||
| data.symbol | <code>string</code> | | ||
| data.frr | <code>number</code> \| <code>boolean</code> | | ||
| data.bid | <code>number</code> | | ||
| data.bidSize | <code>number</code> | | ||
| data.bidPeriod | <code>number</code> | | ||
| data.ask | <code>number</code> | | ||
| data.askSize | <code>number</code> | | ||
| data.askPeriod | <code>number</code> | | ||
| data.dailyChange | <code>number</code> | | ||
| data.dailyChangePerc | <code>number</code> | | ||
| data.lastPrice | <code>number</code> | | ||
| data.volume | <code>number</code> | | ||
| data.high | <code>number</code> | | ||
| data.low | <code>number</code> | | ||
@@ -558,3 +561,3 @@ <a name="FundingTicker+quote"></a> | ||
| --- | --- | | ||
| arr | <code>Object</code> \| <code>Array</code> | | ||
| arr | <code>Object</code> \| <code>Array</code> | | ||
@@ -578,11 +581,11 @@ <a name="FundingTrade"></a> | ||
| --- | --- | | ||
| data | <code>Object</code> \| <code>Array</code> | | ||
| data.id | <code>number</code> | | ||
| data.symbol | <code>string</code> | | ||
| data.mtsCreate | <code>number</code> | | ||
| data.offerID | <code>number</code> | | ||
| data.amount | <code>number</code> | | ||
| data.rate | <code>number</code> | | ||
| data.period | <code>number</code> | | ||
| data.maker | <code>number</code> \| <code>boolean</code> | | ||
| data | <code>Object</code> \| <code>Array</code> | | ||
| data.id | <code>number</code> | | ||
| data.symbol | <code>string</code> | | ||
| data.mtsCreate | <code>number</code> | | ||
| data.offerID | <code>number</code> | | ||
| data.amount | <code>number</code> | | ||
| data.rate | <code>number</code> | | ||
| data.period | <code>number</code> | | ||
| data.maker | <code>number</code> \| <code>boolean</code> | | ||
@@ -597,3 +600,3 @@ <a name="FundingTrade.unserialize"></a> | ||
| --- | --- | | ||
| arr | <code>Object</code> \| <code>Array</code> | | ||
| arr | <code>Object</code> \| <code>Array</code> | | ||
@@ -618,9 +621,9 @@ <a name="LedgerEntry"></a> | ||
| --- | --- | | ||
| data | <code>Object</code> \| <code>Array</code> | | ||
| data.id | <code>number</code> | | ||
| data.currency | <code>string</code> | | ||
| data.mts | <code>number</code> | | ||
| data.amount | <code>number</code> | | ||
| data.balance | <code>number</code> | | ||
| data.description | <code>string</code> | | ||
| data | <code>Object</code> \| <code>Array</code> | | ||
| data.id | <code>number</code> | | ||
| data.currency | <code>string</code> | | ||
| data.mts | <code>number</code> | | ||
| data.amount | <code>number</code> | | ||
| data.balance | <code>number</code> | | ||
| data.description | <code>string</code> | | ||
@@ -635,3 +638,3 @@ <a name="LedgerEntry.unserialize"></a> | ||
| --- | --- | | ||
| arr | <code>Object</code> \| <code>Array</code> | | ||
| arr | <code>Object</code> \| <code>Array</code> | | ||
@@ -655,10 +658,10 @@ <a name="Liquidations"></a> | ||
| --- | --- | | ||
| data | <code>Object</code> \| <code>Array</code> | | ||
| data.posId | <code>number</code> | | ||
| data.mtsUpdated | <code>number</code> | | ||
| data.symbol | <code>string</code> | | ||
| data.amount | <code>number</code> | | ||
| data.basePrice | <code>number</code> | | ||
| data.isMatch | <code>number</code> \| <code>boolean</code> | | ||
| data.isMarketSold | <code>number</code> \| <code>boolean</code> | | ||
| data | <code>Object</code> \| <code>Array</code> | | ||
| data.posId | <code>number</code> | | ||
| data.mtsUpdated | <code>number</code> | | ||
| data.symbol | <code>string</code> | | ||
| data.amount | <code>number</code> | | ||
| data.basePrice | <code>number</code> | | ||
| data.isMatch | <code>number</code> \| <code>boolean</code> | | ||
| data.isMarketSold | <code>number</code> \| <code>boolean</code> | | ||
@@ -673,3 +676,3 @@ <a name="Liquidations.unserialize"></a> | ||
| --- | --- | | ||
| arr | <code>Object</code> \| <code>Array</code> | | ||
| arr | <code>Object</code> \| <code>Array</code> | | ||
@@ -704,3 +707,3 @@ <a name="MarginInfo"></a> | ||
| --- | --- | | ||
| arr | <code>Array</code> | | ||
| arr | <code>Array</code> | | ||
@@ -780,13 +783,13 @@ <a name="Model"></a> | ||
| --- | --- | | ||
| data | <code>Object</code> \| <code>Array</code> | | ||
| data.id | <code>number</code> | | ||
| data.currency | <code>string</code> | | ||
| data.currencyName | <code>string</code> | | ||
| data.mtsStarted | <code>number</code> | | ||
| data.mtsUpdated | <code>number</code> | | ||
| data.status | <code>string</code> | | ||
| data.amount | <code>number</code> | | ||
| data.fees | <code>number</code> | | ||
| data.destinationAddress | <code>string</code> | | ||
| data.transactionId | <code>number</code> | | ||
| data | <code>Object</code> \| <code>Array</code> | | ||
| data.id | <code>number</code> | | ||
| data.currency | <code>string</code> | | ||
| data.currencyName | <code>string</code> | | ||
| data.mtsStarted | <code>number</code> | | ||
| data.mtsUpdated | <code>number</code> | | ||
| data.status | <code>string</code> | | ||
| data.amount | <code>number</code> | | ||
| data.fees | <code>number</code> | | ||
| data.destinationAddress | <code>string</code> | | ||
| data.transactionId | <code>number</code> | | ||
@@ -801,3 +804,3 @@ <a name="Movement.unserialize"></a> | ||
| --- | --- | | ||
| arr | <code>Object</code> \| <code>Array</code> | | ||
| arr | <code>Object</code> \| <code>Array</code> | | ||
@@ -821,10 +824,10 @@ <a name="Notification"></a> | ||
| --- | --- | | ||
| data | <code>Object</code> \| <code>Array</code> | | ||
| data.mts | <code>number</code> | | ||
| data.type | <code>string</code> | | ||
| data.messageID | <code>number</code> | | ||
| data.notifyInfo | <code>Object</code> | | ||
| data.code | <code>number</code> | | ||
| data.status | <code>string</code> | | ||
| data.text | <code>string</code> | | ||
| data | <code>Object</code> \| <code>Array</code> | | ||
| data.mts | <code>number</code> | | ||
| data.type | <code>string</code> | | ||
| data.messageID | <code>number</code> | | ||
| data.notifyInfo | <code>Object</code> | | ||
| data.code | <code>number</code> | | ||
| data.status | <code>string</code> | | ||
| data.text | <code>string</code> | | ||
@@ -839,3 +842,3 @@ <a name="Notification.unserialize"></a> | ||
| --- | --- | | ||
| arr | <code>Object</code> \| <code>Array</code> | | ||
| arr | <code>Object</code> \| <code>Array</code> | | ||
@@ -915,3 +918,3 @@ <a name="OrderBook"></a> | ||
| --- | --- | | ||
| snapshot | <code>Array.<Array></code> | | ||
| snapshot | <code>Array.<Array></code> | | ||
@@ -929,3 +932,3 @@ <a name="OrderBook+updateWith"></a> | ||
| --- | --- | | ||
| entry | <code>Array</code> | | ||
| entry | <code>Array</code> | | ||
@@ -980,3 +983,3 @@ <a name="OrderBook+topBid"></a> | ||
| --- | --- | | ||
| price | <code>number</code> | | ||
| price | <code>number</code> | | ||
@@ -1165,3 +1168,3 @@ <a name="OrderBook+serialize"></a> | ||
| --- | --- | | ||
| v | <code>boolean</code> | | ||
| v | <code>boolean</code> | | ||
@@ -1175,3 +1178,3 @@ <a name="Order+setPostOnly"></a> | ||
| --- | --- | | ||
| v | <code>boolean</code> | | ||
| v | <code>boolean</code> | | ||
@@ -1185,3 +1188,3 @@ <a name="Order+setNoVariableRates"></a> | ||
| --- | --- | | ||
| v | <code>boolean</code> | | ||
| v | <code>boolean</code> | | ||
@@ -1195,3 +1198,3 @@ <a name="Order+setPositionClose"></a> | ||
| --- | --- | | ||
| v | <code>boolean</code> | | ||
| v | <code>boolean</code> | | ||
@@ -1205,3 +1208,3 @@ <a name="Order+setReduceOnly"></a> | ||
| --- | --- | | ||
| v | <code>boolean</code> | | ||
| v | <code>boolean</code> | | ||
@@ -1301,3 +1304,3 @@ <a name="Order+update"></a> | ||
| --- | --- | | ||
| order | [<code>Order</code>](#Order) | | ||
| order | [<code>Order</code>](#Order) | | ||
@@ -1352,3 +1355,3 @@ <a name="Order+getLastFillAmount"></a> | ||
| --- | --- | | ||
| arr | <code>Object</code> \| <code>Array</code> | | ||
| arr | <code>Object</code> \| <code>Array</code> | | ||
@@ -1434,3 +1437,3 @@ <a name="Order.getBaseCurrency"></a> | ||
| --- | --- | | ||
| arr | <code>Object</code> \| <code>Array</code> | | ||
| arr | <code>Object</code> \| <code>Array</code> | | ||
@@ -1454,3 +1457,3 @@ <a name="PublicTrade"></a> | ||
| --- | --- | | ||
| data | <code>Object</code> \| <code>Array</code> | | ||
| data | <code>Object</code> \| <code>Array</code> | | ||
@@ -1465,3 +1468,3 @@ <a name="PublicTrade.unserialize"></a> | ||
| --- | --- | | ||
| arr | <code>Object</code> \| <code>Array</code> | | ||
| arr | <code>Object</code> \| <code>Array</code> | | ||
@@ -1485,10 +1488,10 @@ <a name="StatusMessagesDeriv"></a> | ||
| --- | --- | | ||
| data | <code>Object</code> \| <code>Array</code> | | ||
| data.key | <code>string</code> | | ||
| data.timestamp | <code>number</code> | | ||
| data.price | <code>string</code> | | ||
| data.priceSpot | <code>string</code> | | ||
| data.fundBal | <code>string</code> | | ||
| data.fundingAccrued | <code>string</code> | | ||
| data.fundingStep | <code>string</code> | | ||
| data | <code>Object</code> \| <code>Array</code> | | ||
| data.key | <code>string</code> | | ||
| data.timestamp | <code>number</code> | | ||
| data.price | <code>string</code> | | ||
| data.priceSpot | <code>string</code> | | ||
| data.fundBal | <code>string</code> | | ||
| data.fundingAccrued | <code>string</code> | | ||
| data.fundingStep | <code>string</code> | | ||
@@ -1503,3 +1506,3 @@ <a name="StatusMessagesDeriv.unserialize"></a> | ||
| --- | --- | | ||
| arr | <code>Object</code> \| <code>Array</code> | | ||
| arr | <code>Object</code> \| <code>Array</code> | | ||
@@ -1523,14 +1526,14 @@ <a name="Trade"></a> | ||
| --- | --- | | ||
| data | <code>Object</code> \| <code>Array</code> | | ||
| data.id | <code>number</code> | | ||
| data.symbol | <code>string</code> | | ||
| data.mtsCreate | <code>number</code> | | ||
| data.orderID | <code>number</code> | | ||
| data.execAmount | <code>string</code> | | ||
| data.execPrice | <code>string</code> | | ||
| data.orderType | <code>string</code> | | ||
| data.orderPrice | <code>string</code> | | ||
| data.maker | <code>number</code> \| <code>boolean</code> | | ||
| data.fee | <code>string</code> | | ||
| data.feeCurrency | <code>string</code> | | ||
| data | <code>Object</code> \| <code>Array</code> | | ||
| data.id | <code>number</code> | | ||
| data.symbol | <code>string</code> | | ||
| data.mtsCreate | <code>number</code> | | ||
| data.orderID | <code>number</code> | | ||
| data.execAmount | <code>string</code> | | ||
| data.execPrice | <code>string</code> | | ||
| data.orderType | <code>string</code> | | ||
| data.orderPrice | <code>string</code> | | ||
| data.maker | <code>number</code> \| <code>boolean</code> | | ||
| data.fee | <code>string</code> | | ||
| data.feeCurrency | <code>string</code> | | ||
@@ -1545,3 +1548,3 @@ <a name="Trade.unserialize"></a> | ||
| --- | --- | | ||
| arr | <code>Object</code> \| <code>Array</code> | | ||
| arr | <code>Object</code> \| <code>Array</code> | | ||
@@ -1569,7 +1572,7 @@ <a name="TradingTickerHist"></a> | ||
| --- | --- | | ||
| data | <code>Object</code> \| <code>Array</code> | | ||
| data.symbol | <code>string</code> | | ||
| data.bid | <code>string</code> | | ||
| data.ask | <code>string</code> | | ||
| data.mtsUpdate | <code>number</code> | | ||
| data | <code>Object</code> \| <code>Array</code> | | ||
| data.symbol | <code>string</code> | | ||
| data.bid | <code>string</code> | | ||
| data.ask | <code>string</code> | | ||
| data.mtsUpdate | <code>number</code> | | ||
@@ -1594,3 +1597,3 @@ <a name="TradingTickerHist+quote"></a> | ||
| --- | --- | | ||
| arr | <code>Object</code> \| <code>Array</code> | | ||
| arr | <code>Object</code> \| <code>Array</code> | | ||
@@ -1618,14 +1621,14 @@ <a name="TradingTicker"></a> | ||
| --- | --- | | ||
| data | <code>Object</code> \| <code>Array</code> | | ||
| data.symbol | <code>string</code> | | ||
| data.bid | <code>number</code> | | ||
| data.bidSize | <code>number</code> | | ||
| data.ask | <code>number</code> | | ||
| data.askSize | <code>number</code> | | ||
| data.dailyChange | <code>number</code> | | ||
| data.dailyChangePerc | <code>number</code> | | ||
| data.lastPrice | <code>number</code> | | ||
| data.volume | <code>number</code> | | ||
| data.high | <code>number</code> | | ||
| data.low | <code>number</code> | | ||
| data | <code>Object</code> \| <code>Array</code> | | ||
| data.symbol | <code>string</code> | | ||
| data.bid | <code>number</code> | | ||
| data.bidSize | <code>number</code> | | ||
| data.ask | <code>number</code> | | ||
| data.askSize | <code>number</code> | | ||
| data.dailyChange | <code>number</code> | | ||
| data.dailyChangePerc | <code>number</code> | | ||
| data.lastPrice | <code>number</code> | | ||
| data.volume | <code>number</code> | | ||
| data.high | <code>number</code> | | ||
| data.low | <code>number</code> | | ||
@@ -1650,3 +1653,3 @@ <a name="TradingTicker+quote"></a> | ||
| --- | --- | | ||
| arr | <code>Object</code> \| <code>Array</code> | | ||
| arr | <code>Object</code> \| <code>Array</code> | | ||
@@ -1670,7 +1673,7 @@ <a name="UserInfo"></a> | ||
| --- | --- | | ||
| data | <code>Object</code> \| <code>Array</code> | | ||
| data.id | <code>number</code> | | ||
| data.email | <code>string</code> | | ||
| data.username | <code>string</code> | | ||
| data.timezone | <code>number</code> | | ||
| data | <code>Object</code> \| <code>Array</code> | | ||
| data.id | <code>number</code> | | ||
| data.email | <code>string</code> | | ||
| data.username | <code>string</code> | | ||
| data.timezone | <code>number</code> | | ||
@@ -1685,3 +1688,3 @@ <a name="UserInfo.unserialize"></a> | ||
| --- | --- | | ||
| arr | <code>Object</code> \| <code>Array</code> | | ||
| arr | <code>Object</code> \| <code>Array</code> | | ||
@@ -1705,9 +1708,9 @@ <a name="WalletHist"></a> | ||
| --- | --- | | ||
| data | <code>Object</code> \| <code>Array</code> | | ||
| data.type | <code>string</code> | | ||
| data.currency | <code>string</code> | | ||
| data.balance | <code>number</code> | | ||
| data.unsettledInterest | <code>number</code> | | ||
| data.balanceAvailable | <code>number</code> | | ||
| data.mtsUpdate | <code>number</code> | | ||
| data | <code>Object</code> \| <code>Array</code> | | ||
| data.type | <code>string</code> | | ||
| data.currency | <code>string</code> | | ||
| data.balance | <code>number</code> | | ||
| data.unsettledInterest | <code>number</code> | | ||
| data.balanceAvailable | <code>number</code> | | ||
| data.mtsUpdate | <code>number</code> | | ||
@@ -1722,3 +1725,3 @@ <a name="WalletHist.unserialize"></a> | ||
| --- | --- | | ||
| arr | <code>Object</code> \| <code>Array</code> | | ||
| arr | <code>Object</code> \| <code>Array</code> | | ||
@@ -1742,8 +1745,8 @@ <a name="Wallet"></a> | ||
| --- | --- | | ||
| data | <code>Object</code> \| <code>Array</code> | | ||
| data.type | <code>string</code> | | ||
| data.currency | <code>string</code> | | ||
| data.balance | <code>number</code> | | ||
| data.unsettledInterest | <code>number</code> | | ||
| data.balanceAvailable | <code>number</code> | | ||
| data | <code>Object</code> \| <code>Array</code> | | ||
| data.type | <code>string</code> | | ||
| data.currency | <code>string</code> | | ||
| data.balance | <code>number</code> | | ||
| data.unsettledInterest | <code>number</code> | | ||
| data.balanceAvailable | <code>number</code> | | ||
@@ -1758,3 +1761,35 @@ <a name="Wallet.unserialize"></a> | ||
| --- | --- | | ||
| arr | <code>Object</code> \| <code>Array</code> | | ||
| arr | <code>Object</code> \| <code>Array</code> | | ||
<a name="Login"></a> | ||
## Login | ||
Historical Users Login model | ||
**Kind**: global class | ||
* [Login](#Login) | ||
* [new Login(data)](#new_Login_new) | ||
* [.unserialize(arr)](#Login.unserialize) ⇒ <code>Object</code> | ||
<a name="new_WalletHist_new"></a> | ||
### new Login(data) | ||
| Param | Type | | ||
| --- | --- | | ||
| data | <code>Object</code> \| <code>Array</code> | | ||
| data.id | <code>number</code> | | ||
| data.time | <code>number</code> | | ||
| data.ip | <code>string</code> | | ||
| data.extraData | <code>Object</code> | | ||
<a name="Login.unserialize"></a> | ||
### Login.unserialize(arr) ⇒ <code>Object</code> | ||
**Kind**: static method of [<code>Login</code>](#Login) | ||
**Returns**: <code>Object</code> - pojo | ||
| Param | Type | | ||
| --- | --- | | ||
| arr | <code>Object</code> \| <code>Array</code> | |
@@ -30,3 +30,4 @@ 'use strict' | ||
Currency: require('./currency'), | ||
StatusMessagesDeriv: require('./status_messages_deriv') | ||
StatusMessagesDeriv: require('./status_messages_deriv'), | ||
Login: require('./login') | ||
} |
@@ -82,6 +82,8 @@ 'use strict' | ||
if (!this.flags) this.flags = 0 | ||
if (typeof data.oco !== 'undefined') this.setOCO(data.oco) | ||
if (typeof data.hidden !== 'undefined') this.setHidden(data.hidden) | ||
if (typeof data.postonly !== 'undefined') this.setPostOnly(data.postonly) | ||
if (typeof data.reduceonly !== 'undefined') this.setReduceOnly(data.reduceonly) | ||
if (typeof data.oco !== 'undefined') { | ||
this.setOCO(data.oco, data.priceAuxLimit, data.cidOCO) | ||
} | ||
@@ -155,4 +157,7 @@ this._apiInterface = apiInterface | ||
*/ | ||
setOCO (v, stopPrice = this.priceAuxLimit) { | ||
if (v) this.priceAuxLimit = stopPrice | ||
setOCO (v, stopPrice = this.priceAuxLimit, cidOCO = this.cidOCO) { | ||
if (v) { | ||
this.priceAuxLimit = stopPrice | ||
this.cidOCO = cidOCO | ||
} | ||
@@ -486,2 +491,3 @@ this._modifyFlag(Order.flags.OCO, v) | ||
data.price_oco_stop = preparePrice(+this.priceAuxLimit) | ||
data.cid_oco = this.cidOCO | ||
} else { | ||
@@ -488,0 +494,0 @@ data.price_aux_limit = preparePrice(+this.priceAuxLimit) |
{ | ||
"name": "bfx-api-node-models", | ||
"version": "1.1.2", | ||
"version": "1.1.4", | ||
"description": "Object models for usage with the Bitfinex node API", | ||
@@ -5,0 +5,0 @@ "engines": { |
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
180257
69
4132