Skip to content
This repository was archived by the owner on Sep 2, 2023. It is now read-only.

Conversation

DanSallau
Copy link
Contributor

@DanSallau DanSallau commented Aug 23, 2016

@DanSallau DanSallau closed this Aug 23, 2016
@DanSallau DanSallau reopened this Aug 23, 2016
@coveralls
Copy link

Coverage Status

Coverage decreased (-0.02%) to 31.675% when pulling f4190d0 on nuruddeensalihu:nuru/fix_marketIsClosed into c024f4a on binary-com:master.

@borisyankov
Copy link
Contributor

@qingweibinary Review please?

if (isSubscribed) {
api.subscribeToTick(symbol);
try {
await api.getTickHistory(symbol, { end: 'latest', count: 10, subscribe: 1 });
Copy link
Contributor

Choose a reason for hiding this comment

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

we probably need adjust_start_time: 1

api.getTradingTimes(new Date());
};

export const getTickHistory = async (symbol) => {
Copy link
Contributor

Choose a reason for hiding this comment

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

this export looks really random, how about this?

we place this logic in action creator, then dispatch action from LiveData, which is the common pattern we have been using.

Copy link
Contributor Author

@DanSallau DanSallau Aug 23, 2016

Choose a reason for hiding this comment

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

@qingweibinary i don't think thats necessary. The method does change a state in any way beside making a call to an WS. HAd it been we are updating or changing a state example let's say logging history or something then would have made sense. I think it should be ok like this just like how we handle the one above it.

Copy link
Contributor

Choose a reason for hiding this comment

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

OK

@coveralls
Copy link

Coverage Status

Coverage increased (+0.7%) to 32.381% when pulling 2d4c3c0 on nuruddeensalihu:nuru/fix_marketIsClosed into c024f4a on binary-com:master.

@borisyankov borisyankov merged commit 34da1f8 into regentmarkets-repo-archive:master Aug 24, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants