Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No response from api #188

Open
manishbadhe opened this issue Oct 7, 2024 · 1 comment
Open

No response from api #188

manishbadhe opened this issue Oct 7, 2024 · 1 comment

Comments

@manishbadhe
Copy link

Last value in 'pe_final_values' column: False
Maximum High Value: BANKNIFTY09OCT24P52000 637.5
place market for buy pe above 637.5 with ltp value 640.2
Traceback (most recent call last):
File "c:\supertrendstrategy-feature-first_cut\main.py", line 187, in
main(api=api)
File "c:\supertrendstrategy-feature-first_cut\main.py", line 86, in main
place_order(api,live_trade=LIVE_TRADE,symbol=pesymbol_name, main_symbol="BANKNIFTY_PE", qty=QTY, optt="PE", token=PETOKEN)
File "c:\supertrendstrategy-feature-first_cut\paper_trade.py", line 354, in place_order
raise ValueError("Error: No response received from the API AND ALSO EXIT ORDER IS NOT PLACED THIS ERROR IS RAISE BY DEVLOPER ")
ValueError: Error: No response received from the API AND ALSO EXIT ORDER IS NOT PLACED THIS ERROR IS RAISE BY DEVLOPER

@inderweb
Copy link

inderweb commented Jan 1, 2025

I am trying with simple test order:-

response = self.api.get_security_info(exchange = "NFO", token = 52519);
or even
responses = self.api.place_order(buy_or_sell='B', product_type='C', exchange='NFO', tradingsymbol='NIFTY02JAN2025C23600', quantity=1, discloseqty=0,price_type='MKT', price=0, trigger_price=None, retention='DAY', remarks='my_order_001')

Getting None response from API. no error no message even i follow same example as per Python API. Getting none while getting positions as well.
I am able to get:-

  • Login
  • Balance info
  • searchscript

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants