Skip to content

Added import for Price class and error handler to price and transacti…#9

Open
kpihus wants to merge 1 commit intooanda:masterfrom
kpihus:price_import
Open

Added import for Price class and error handler to price and transacti…#9
kpihus wants to merge 1 commit intooanda:masterfrom
kpihus:price_import

Conversation

@kpihus
Copy link

@kpihus kpihus commented Apr 25, 2019

…on streams

var Field = require('./base').Field;

var pricing_common = require('./pricing_common');
var Price = pricing_common.Price;
Copy link

@joaocosta joaocosta May 30, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

According to http://developer.oanda.com/rest-live-v20/pricing-ep/, this should be ClientPrice, not Price.

Note that the price stream endpoint returns the time field which class ClientPrice supports, but class Price does not.

In other words, the correct fix for this problem is at #16

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants