shah

how to get minute level data into Jupyter notebook

Programming


i have tried this by changing the D to M.. but it did not work
 
admin
You can try in Jupyter notebook. 

from AlgoAPI.AlgoAPIUtil import getHistoricalBar

contract = {"instrument":"EURUSD"}
count = 50
interval = "M"
timestamp = "2019-11-30"

arr = getHistoricalBar(contract, count, interval, timestamp)
for k in arr:
    print(arr[k])
    
 
shah
Original Posted by - admin: You can try in Jupyter notebook. 

from AlgoAPI.AlgoAPIUtil import getHistoricalBar

contract = {"instrument":"EURUSD"}
count = 50
interval = "M"
timestamp = "2019-11-30"

arr = getHistoricalBar(contract, count, interval, timestamp)
for k in arr:
    print(arr[k])
    
previously i tried changing to "M" for equity but it did not work. Now the Jupyter Notebook is down. I cant use it. It shows the screen as below.
 
shah
Original Posted by - shah: previously i tried changing to "M" for equity but it did not work. Now the Jupyter Notebook is down. I cant use it. It shows the screen as below.
Ok i know why it did not work earlier with 'M" minute setting. Because the date was for year 2019 which  is outside the scope of this competition.