@narative/oanda-v20
Advanced tools
Comparing version 3.0.36 to 3.0.37
@@ -44,4 +44,4 @@ /// <reference types="node" /> | ||
export interface CandlesRequest { | ||
accountID: account.AccountID; | ||
instrument: primitives.InstrumentName; | ||
accountID: account.AccountID; | ||
query: CandlesRequestQuery; | ||
@@ -48,0 +48,0 @@ } |
@@ -69,3 +69,3 @@ "use strict"; | ||
return [2 /*return*/, new Promise(function (resolve, reject) { | ||
new pricing_1.EntitySpec(_this.context).candles(request.instrument, request.accountID, request.query, _this.resolver(resolve, reject)); | ||
new pricing_1.EntitySpec(_this.context).candles(request.accountID, request.instrument, request.query, _this.resolver(resolve, reject)); | ||
})]; | ||
@@ -72,0 +72,0 @@ }); |
{ | ||
"name": "@narative/oanda-v20", | ||
"description": "OANDA v20 bindings for Javascript", | ||
"version": "3.0.36", | ||
"version": "3.0.37", | ||
"author": "OANDA Corporation", | ||
@@ -6,0 +6,0 @@ "repository": "https://github.com/narative/v20-javascript", |
@@ -228,3 +228,3 @@ import * as path from 'path' | ||
if (self.moduleName === 'pricing' && id === '#collapse_endpoint_5') { | ||
requests.push({ name: 'accountID', location: 'path', type: 'account.AccountID' }) | ||
requests.unshift({ name: 'accountID', location: 'path', type: 'account.AccountID' }) | ||
} | ||
@@ -231,0 +231,0 @@ |
@@ -91,4 +91,4 @@ import * as account from '../definitions/account' | ||
// Accept-Datetime-Format: primitives.AcceptDatetimeFormat // header | ||
accountID: account.AccountID // path | ||
instrument: primitives.InstrumentName // path | ||
accountID: account.AccountID // path | ||
query: CandlesRequestQuery | ||
@@ -166,4 +166,4 @@ } | ||
new EntitySpec(this.context).candles( | ||
request.accountID, | ||
request.instrument, | ||
request.accountID, | ||
request.query, | ||
@@ -170,0 +170,0 @@ this.resolver(resolve, reject)) |
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
3125615