Skip to content

Query date range #93

@denisvolokh

Description

@denisvolokh

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions