I get following exception every second time , and i have to regenerate request_token again
Traceback (most recent call last):
File "example.py", line 9, in
print kite.request_access_token(request_token,api_secrete)
File "/usr/local/lib/python2.7/dist-packages/kiteconnect/__init__.py", line 269, in request_access_token
"checksum": checksum
File "/usr/local/lib/python2.7/dist-packages/kiteconnect/__init__.py", line 581, in _post
return self._request(route, "POST", params)
File "/usr/local/lib/python2.7/dist-packages/kiteconnect/__init__.py", line 668, in _request
raise(exp(data["message"], code=r.status_code))
kiteconnect.exceptions.TokenException: Invalid session credentials
its not about creating candles we want to know exact open price of start of the day, their is good amount of mismatch between what kite provides , APIs
please focus on the 2 different open values changed or got corrected after some time ,
first time i pulled it it was 1241.45 where as kite shown 1241.30 , later even when i pulled it i found it corrected . what is use of it , if i get wrong value …
when i pulled data again in even i got corrected value
Processing Candle of tmstr=9:15:0 dtstr=2019-3-1 epoch_time=1551411900 min=15 hr=9 sec=0
processing last_epoch_processed=1551347700 epoch_time=1551411900 candle={'volume': 1303500, 'high': 1249…
File "future_symbols.py", line 268, in
data=pull_json('https://api.kite.trade/margins/futures')
File "future_symbols.py", line 136, in pull_json
f = urllib.urlopen(url)
File "/usr/lib/python2.7/urllib.py", line 87, in urlopen
retur…
yeah i know , i am find mis_margin, lotsize and expiry related data of future for currency can you please let me where it is available like https://api.kite.trade/margins/futures
For Example i have old file
which has entry {"margin": 18.08, "co_lower": 2.25, "mis_multiplier": 0, "tradingsymbol": "STAR18DECFUT", "co_upper": 6.0, "nrml_margin": 66992.66, "mis_margin": 30146.697000000004}, {"margin": 18.1, "co_lower": 2.25, "m…
i think when i pull it later value changed again but when i try to pull it in real time , issue exists , let me see i have delayed pulling little later
i queries it again after 15 mins
i got this
dt=2019-01-01 12:00:00+05:30 Open=223.2 close=223 high=223.4 low=222.8 c=223
Processing Candle of tmstr=12:0:0 dtstr=2019-1-1 epoch_time=1546324200 min=0 hr=12 sec=0
already processed epoch epoch_time=15…
if i am pulling 15 min historical candles for 100 instruments , then also i will get too many request which is not fair . this rate limit should be cummulative
m-->NIFTY18NOVFUT lot size=75 margin=9.52 mis_multiplier=0 mis_margin=34134.498
please explain what is meaning of mis_multiplier=0 margin and mis_margin
i have pulled margin info from
https://api.kite.trade/margins/futures
and lot info from
…
what all i need is size of lot , and margin provided for each symbol
there are two dumps ->
https://api.kite.trade/margins/futures
for Ex:
{u'mis_margin': 53277.75, u'co_lower': 2.25, u'mis_multiplier': 0, u'tradingsymbol': u'TATAPOWER18NOVF…
as the API name suggests that its totalSell Qty and tot Buy Qty till time , so shudnt it increase at any point in time that time-X ? , but i have seen sometimes it less that time-X please clear
x=kite.order_history(order_id=180806000707889)
Traceback (most recent call last):
File "", line 1, in
File "build/bdist.linux-x86_64/egg/kiteconnect/connect.py", line 387, in order_history
File "build/bdist.linux-x86_64/egg/kiteconnect/connec…
File "genaccesscode.py", line 90, in
dic = kite.generate_session(request_token, api_secret)
File "build/bdist.linux-x86_64/egg/kiteconnect/connect.py", line 232, in generate_session
File "build/bdist.linux-x86_64/egg/kiteconnect/connect.py"…
Traceback (most recent call last):
File "zerodha_historical.py", line 725, in pull_candles
h=currentAcctTrader.kite.historical(token,fromtm,totm,duration)
File "/usr/lib/python2.7/site-packages/kiteconnect/__init__.py", line 538, in historic…
File "approacher_min_ui.py", line 595, in buy_stock_zerodha
get_status_and_price(acc, out)
File "approacher_min_ui.py", line 442, in get_status_and_price
ord = acc.kite.orders(order_id=int(out))
File "/usr/lib/python2.7/site-packages/ki…
how can i do this using kite python APIs ,
how about pulling pricing for crude , currancy , bank nifty .
let me know for option and future contracts place orders ?
is there any premium plan so that ratelimite is more , if yes let me know , if no can i take 2 subscriptions and consolidate .. please provide some solution , as i am trying to fetch 1min for 200 instruments ,
precision matters a lot to our algo because we are trying to work at minute chart where a slight change in the candle price or LTP entirely changes our candle pattern analysis ..
please suggest a solution where we can bank on .
please answer another question from previous thread infact please try to answer all questions from my post.
How to calculate candle values from ticker
like to callculated OHLC
starting tick is open for that minute
closing tick is clos…
i synchronize my clock with NTP , on redhat linux let me know zerodha suggest any common clock source of NTP or zerodha has it own , it if issue is of clock sync , i think zerodha should host an NTP server for algo traders to avoid clock sync issues…
please answer another question from previous thread infact please try to answer all questions from my post.
How to calculate candle values from ticker
like to callculated OHLC
starting tick is open for that minute
closing tick is close
highest…
please try answer all queries in a single answer instead of short and fragmented info . i would like to pull tick by tick prices and historical candles for different intervals including minute , 3minute , 5 minutes , day .. along with buy and sell …
i am gettin all values wrong like influced by previous values in 3 and 5 minutes , please let me know how to get precise values i mean completed , for 3 and 5 minutes
later i queried at 09:59:15 -10:09:15 for 3 minutes 3 candles i got values
open=578.2 , close=578.9 , high=578.95 , low=578
please suggest
for candle 9:57 in second iteration
i Queried for 3 minutes at 09:52:55-10:02:55 for 3 candles
fromtm=2018-02-20 09:59:15 totm=2018-02-20 10:09:15 viewtype=7 duration=3minute hr=09 min=59
values for candle 9:57:0 are
9:57 at 9:59 around 3 candles and i got values as
open=577.2 , …
how to solve do u think i shud take the in the seconds multiple of 3 and 5
here is serious problem in terms of data
TECHM-1519120620-7 | TECHM | | 2018-02-20 | | 578.2(open) | 578.95 (close) | 578 (high) | 578.9 (low) | …
How can I get market depth? I mean offers and bidders in Java client I would appreciate a clear example as I used example from git UT for some reason not able to fetch
Welcome to Ubuntu 14.04.5 LTS (GNU/Linux 4.4.0-111-generic x86_64)
* Documentation: https://help.ubuntu.com/
New release '16.04.3 LTS' available.
Run 'do-release-upgrade' to upgrade to it.
Last login: Wed Feb 7 13:58:42 2018 from 22…
Welcome to Ubuntu 14.04.5 LTS (GNU/Linux 4.4.0-111-generic x86_64)
* Documentation: https://help.ubuntu.com/
New release '16.04.3 LTS' available.
Run 'do-release-upgrade' to upgrade to it.
Last login: Wed Feb 7 13:58:42 2018 from 22…
U don't understand my question when I place order for 1000 quantity Ieither for sales or purchase but I might get all quantities or few, is there anyway to find how many stocks r sold or purchased, or if this api place order blocks till I get all
I am not expecting that my question is straight please provide me solution asap rather than unrelated discussion
Please let me know how can I catch network exceptions like connection refused or not reachable
Also recently this exception …
Caused by: java.net.ConnectException: Connection refused (Connection refused)
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350)
at java.net.AbstractPlainSocketI…
ok i will take care then ? is this 3request only for quotes or overall ? i mean should i also consider historical and quote together ? is there any limit on data transfer ?
where to catch connection refused exception consider i lost internet connectivity , since you are providing call backs and there is no way for programmer to catch exception , like onconnection doesnt make sense
which among following is price at which i can buy or sell stocks
double lastTradedPrice = ticks.get(i).getLastTradedPrice();
double close=ticks.get(i).getClosePrice();
please let me know fast which one is buy and sell price considered
This is pull request , but i need push one , which will be more precise i think push is over webSockets , i am not able to see precise working example for websocket tick by tick for any 50 instruments . by the way why instrument name is crafted lik…