Skip to content

Commit 7f10dad

Browse files
authored
Merge pull request #60 from angel-one/PlaceOrderFix
place order issue fix
2 parents a91d3f0 + 6bd06ff commit 7f10dad

5 files changed

Lines changed: 5 additions & 7 deletions

File tree

SmartApi/smartConnect.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -353,7 +353,7 @@ def placeOrderFullResponse(self,orderparams):
353353
logger.error(f"Invalid response format: {response}")
354354
else:
355355
logger.error(f"API request failed: {response}")
356-
return None
356+
return response
357357

358358
def modifyOrder(self,orderparams):
359359
params = orderparams

SmartApi/smartWebSocketOrderUpdate.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,7 @@ def connect(self):
7474
self.wsapp = websocket.WebSocketApp(self.WEBSOCKET_URI, header=headers, on_open=self.on_open,
7575
on_error=self.on_error, on_close=self.on_close,
7676
on_data=self.on_data, on_ping=self.on_ping, on_pong=self.on_pong)
77-
self.wsapp.run_forever(sslopt={"cert_reqs": ssl.CERT_NONE}, ping_interval=self.HEARTBEAT_INTERVAL_SECONDS,
78-
ping_payload=self.HEARTBEAT_MESSAGE)
77+
self.wsapp.run_forever(sslopt={"cert_reqs": ssl.CERT_NONE}, ping_interval=self.HEARTBEAT_INTERVAL_SECONDS)
7978
except Exception as e:
8079
logger.error("Error connecting to WebSocket: %s", e)
8180
self.retry_connect()

SmartApi/smartWebSocketV2.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -298,8 +298,7 @@ def connect(self):
298298
on_error=self._on_error, on_close=self._on_close, on_data=self._on_data,
299299
on_ping=self._on_ping,
300300
on_pong=self._on_pong)
301-
self.wsapp.run_forever(sslopt={"cert_reqs": ssl.CERT_NONE}, ping_interval=self.HEART_BEAT_INTERVAL,
302-
ping_payload=self.HEART_BEAT_MESSAGE)
301+
self.wsapp.run_forever(sslopt={"cert_reqs": ssl.CERT_NONE}, ping_interval=self.HEART_BEAT_INTERVAL)
303302
except Exception as e:
304303
logger.error(f"Error occurred during WebSocket connection: {e}")
305304
raise e

SmartApi/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
__description__ = "Angel Broking openApi integration"
33
__url__ = "https://www.angelbroking.com/"
44
__download_url__ = "https://github.com/angel-one/smartapi-python"
5-
__version__ = "1.5.2"
5+
__version__ = "1.5.3"
66
__author__ = "ab-smartapi"
77
__token__ = "ab-smartapi"
88
__author_email__ = "smartapi.sdk@gmail.com"

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
setup(
1414
name="smartapi-python",
15-
version="1.5.2",
15+
version="1.5.5",
1616
author="ab-smartapi",
1717
author_email="smartapi.sdk@gmail.com",
1818
description="Angel Broking openApi integration",

0 commit comments

Comments
 (0)