marketstore icon indicating copy to clipboard operation
marketstore copied to clipboard

No ostensible way of querying granularity and data types

Open jbrukh opened this issue 5 years ago • 1 comments

There is an RPC call for "ListSymbols"; however, this call only delivers symbols.

Users may be interested in what granularity of data is available.

Does there exist a query which will provider data similar to the following?

[
  {
    "symbol": "AAPL",
    "granularity": ["1m", "1d"]
  },
 {
    "symbol": "MSFT",
    "granularity": ["1m", "1h", "1d"]
  }
]

jbrukh avatar Mar 27 '19 14:03 jbrukh

@jbrukh don't quote me on this but it looks like you can make "sql" like queries once this pymarketstore change is merged.

If you dig into the planner package there's an example test showing how to do this with the go api which appears to use the Directory.NewQuery() method.

goodboy avatar Jun 04 '20 01:06 goodboy