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

Query date range #93

Open
denisvolokh opened this issue Mar 18, 2016 · 0 comments
Open

Query date range #93

denisvolokh opened this issue Mar 18, 2016 · 0 comments

Comments

@denisvolokh
Copy link

Hi,

I have a problem with building filter on a timestamp field.

I have defined filter in my MarketDataResource(resources.MongoEngineResource)
filtering = { "instrument" : ALL, "timestamp" : ["gte", "lte", "range"], }

and when I do query on timestamp field I receive error

'exact' is not an allowed filter on the 'timestamp' field.

Here is my query

api/v1/marketdata/?format=json&instrument=Z74&timestamp__gte=2016-03-18T00:00:00.000+0000&timestamp__lse=2016-03-18T01:00:01.016+0000

But query works when I query only gte or only lte.

Could you help me to understand what is wrong with my query?

Thanks.

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

No branches or pull requests

1 participant