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

Add filter by date in market/trades REST API call #2126

Merged
merged 1 commit into from Apr 4, 2019

Conversation

mnaichuk
Copy link
Member

No description provided.

Copy link

@ysv ysv left a comment

Choose a reason for hiding this comment

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

You can try to use

coerce_with: ->(t) { Time.at(t.downcase) }

as mentioned here https://github.com/ruby-grape/grape#custom-types-and-coercions

But if this requires many changes lets merge as it is

Copy link

@mod mod left a comment

Choose a reason for hiding this comment

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

Seems wrong to me
What we need is select by time range

@ysv ysv added PR: WIP and removed PR: Approved labels Mar 27, 2019
@mnaichuk mnaichuk force-pushed the api-improve-add-time-trades branch from 5eeaaa1 to d3f8a73 Compare April 3, 2019 14:19
@mod mod merged commit 7ccf63a into openware:master Apr 4, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

None yet

3 participants