bfx-api-node-rest
Advanced tools
Comparing version 3.0.5 to 3.0.6
@@ -87,2 +87,4 @@ ## Classes | ||
* [.cancelOrder(id, cb)](#RESTv2+cancelOrder) | ||
* [.cancelOrderWithCid(cid, cb)](#RESTv2+cancelOrderWithCid) | ||
* [.cancelOrderWithDate(cid, cb)](#RESTv2+cancelOrderWithDate) | ||
* [.claimPosition(id, cb)](#RESTv2+claimPosition) | ||
@@ -391,3 +393,3 @@ * [.submitFundingOffer(offer, cb)](#RESTv2+submitFundingOffer) | ||
**Kind**: instance method of [<code>RESTv2</code>](#RESTv2) | ||
**Returns**: <code>Promise</code> - p | ||
**Returns**: <code>Promise</code> - p | ||
**See**: https://docs.bitfinex.com/v2/reference#rest-auth-orders | ||
@@ -397,3 +399,3 @@ | ||
| --- | --- | | ||
| cb | <code>Method</code> | | ||
| cb | <code>Method</code> | | ||
@@ -403,5 +405,5 @@ <a name="RESTv2+activeOrdersWithIds"></a> | ||
### resTv2.activeOrdersWithIds(ids, cb) ⇒ <code>Promise</code> | ||
**Kind**: instance method of [<code>RESTv2</code>](#RESTv2) | ||
**Kind**: instance method of [<code>RESTv2</code>](#RESTv2) | ||
**Returns**: <code>Promise</code> - p | ||
**See**: https://docs.bitfinex.com/v2/reference#rest-auth-orders | ||
**See**: https://docs.bitfinex.com/v2/reference#rest-auth-orders | ||
@@ -911,2 +913,26 @@ | Param | Type | Description | | ||
<a name="RESTv2+cancelOrderWithCid"></a> | ||
### resTv2.cancelOrderWithCid(cid, cb) | ||
Cancel existing order using the cID | ||
**Kind**: instance method of [<code>RESTv2</code>](#RESTv2) | ||
| Param | Type | | ||
| --- | --- | | ||
| cid | <code>int</code> | | ||
| cb | <code>Method</code> | | ||
<a name="RESTv2+cancelOrderWithDate"></a> | ||
### resTv2.cancelOrderWithDate(cid, cb) | ||
Cancel existing order using the cID date | ||
**Kind**: instance method of [<code>RESTv2</code>](#RESTv2) | ||
| Param | Type | | ||
| --- | --- | | ||
| cid | <code>int</code> | | ||
| cb | <code>Method</code> | | ||
<a name="RESTv2+claimPosition"></a> | ||
@@ -913,0 +939,0 @@ |
@@ -1213,2 +1213,24 @@ 'use strict' | ||
/** | ||
* Cancel existing order using the cID | ||
* | ||
* @param {int} cid | ||
* @param {Method} cb | ||
*/ | ||
cancelOrderWithCid (cid, cb) { | ||
return this._makeAuthRequest('/auth/w/order/cancel', { cid }, cb) | ||
.then(_takeResNotify) | ||
} | ||
/** | ||
* Cancel existing order using the cID date | ||
* | ||
* @param {int} cid | ||
* @param {Method} cb | ||
*/ | ||
cancelOrderWithDate (date, cb) { | ||
return this._makeAuthRequest('/auth/w/order/cancel', { cid_date: date }, cb) | ||
.then(_takeResNotify) | ||
} | ||
submitOrderMulti () { | ||
@@ -1215,0 +1237,0 @@ return Promise.reject(new Error('Not implemented - requires work on WS as well')) |
{ | ||
"name": "bfx-api-node-rest", | ||
"version": "3.0.5", | ||
"version": "3.0.6", | ||
"description": "Official Bitfinex REST v1 & v2 API interfaces", | ||
@@ -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
136448
2408