Sourav Basu Roy
Β·Algo Trader with Python and Fyers API

{'code': -50, 'message': 'Invalid input', 's': 'error'}

Resolved

I am getting this error when trying to place buy order.

{'code': -50, 'message': 'Invalid input', 's': 'error'}

data i am sending to place_order() is :

{'disclosedQty': 0, 'limitPrice': 0, 'offlineOrder': 'False', 'productType': 'CNC', 'qty': 30, 'side': 1, 'stopLoss': 0, 'stopPrice': 0, 'symbol': 'NSE:CAPTRUST-EQ', 'takeProfit': 0, 'type': 2, 'validity': 'DAY'}

Fyers verson is:

ubuntu@-oracle:~$ pip show fyers-apiv3
Name: fyers-apiv3
Version: 3.0.5
Summary: Fyers trading APIs.
Home-page: https://github.com/FyersDev/fyers-api-py
Author: Fyers-Tech
Author-email: [email protected]
License:
Location: /home/ubuntu/.local/lib/python3.10/site-packages
Requires: aiohttp, asyncio, aws-lambda-powertools, requests, websocket-client
Required-by:

Kindly help me resove this at the earliest.

1
2 replies