twelvedata / twelvedata-python

Twelve Data Python Client - Financial data API & WebSocket
https://twelvedata.com
MIT License
392 stars 57 forks source link

[Bug] Unable to get volume values for FTSE symbol #40

Closed dennybiasiolli closed 3 years ago

dennybiasiolli commented 3 years ago

Describe the bug Unable to get volume values for FTSE symbol

To Reproduce Execute the following python code, replacing TWELVE_DATA_API_KEY. We have a Pro plan, but the error is the same as the free plan.

from twelvedata import TDClient

td = TDClient(apikey='TWELVE_DATA_API_KEY')
ts = td.time_series(
    symbol='FTSE',
    interval='1min',
    timezone='UTC',
)
print(ts.as_json())

# it's returning the following results, please note the `'volume': 0`
# ({'datetime': '2021-06-16 09:23:00', 'open': '7176.97998', 'high': '7176.97998', 'low': '7176.97998', 'close': '7176.97998', 'volume': '0'}, ...)

Expected behavior It should return real values for volume, like in other symbol like AAPL

Desktop (please complete the following information):

dennybiasiolli commented 3 years ago

The support from Twelve Data said that "indices are supplied without the volumes", so I think this issue can be closed. Thanks anyway 😃