Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

kpihus
Copy link

@kpihus kpihus commented Apr 25, 2019

…on streams

@@ -7,6 +7,7 @@ var Property = require('./base').Property;
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