☰
Login
Signup
Home
›
Python client
Howdy, Stranger!
It looks like you're new here. If you want to get involved, click one of these buttons!
Sign In
Register
Categories
Recent Discussions
Activity
Categories
13.8K
All Categories
0
Incidents
154
Node JS client
40
Go client
793
.Net API client
378
Kite Publisher
537
.Net / VBA / Excel (3rd party)
457
Algorithms and Strategies
993
Java client
1.1K
API clients
404
PHP client
4K
Python client
346
Mobile and Desktop apps
1.4K
Market data (WebSockets)
3.3K
General
In this Discussion
April 2019
rakeshr
April 2019
prmramit
April 2019
__name__
Last 20 candles using historical data api
prmramit
April 2019
in
Python client
Hi all,
any idea how to fetch last 20 candles only using historical data api ? or we need to pass date/timestamp only ?
__name__
April 2019
if using 5 min then fetch 5*20 min data
prmramit
April 2019
Thanks __name__ . I will try and update.
rakeshr
April 2019
@prmramit
You can use
time delta(python datetime)
w.r.t current time and input to_date and from_date as delta of 20 candles only.Or you can fetch candle upto current time(for any candle internal) and then slice last 20 candles.
Sign In
or
Register
to comment.
You can use time delta(python datetime) w.r.t current time and input to_date and from_date as delta of 20 candles only.Or you can fetch candle upto current time(for any candle internal) and then slice last 20 candles.