You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Trying to get market depth using "client.fetch_market_depth", "client.fetch_market_depth_by_scrip" py5paisa client methods by providing only ScripData instead of ScripCode.
Tell us what happened, what went wrong, and what you expected to happen.
We received invalid values for LastTradedPrice (0), and market depth prices (0) which is incorrect.
This requirement occurred on 13th December 2024, when we received invalid Scrip master data following https://xstream.5paisa.com/dev-docs/docFundamentals/scrip-master with missing rows. This issue has appeared several times, and we tried to migrate from depending on ScripCode to ScripData for reliability. Still, while testing, we found the problem of invalid values while fetching market depths.
The text was updated successfully, but these errors were encountered:
Description
Describe what you were trying to get done.
Trying to get market depth using "client.fetch_market_depth", "client.fetch_market_depth_by_scrip" py5paisa client methods by providing only ScripData instead of ScripCode.
Tell us what happened, what went wrong, and what you expected to happen.
We received invalid values for LastTradedPrice (0), and market depth prices (0) which is incorrect.
What I Did
As per https://xstream.5paisa.com/dev-docs/market-data-system/market-depth with python tab selected;
Stock request
client.fetch_market_depth
Response
Stock request
client.fetch_market_depth_by_scrip
Response
Futures request
client.fetch_market_depth
Response
Equivalent ScripCode requests are passing and returning the correct data;
SENSEX 27 Dec 2024_20241227 = 1146913
RELIANCE_EQ = 2885
as per https://xstream.5paisa.com/dev-docs/docFundamentals/scrip-master
Stock request
Response
Future request
Response
Background
This requirement occurred on 13th December 2024, when we received invalid Scrip master data following https://xstream.5paisa.com/dev-docs/docFundamentals/scrip-master with missing rows. This issue has appeared several times, and we tried to migrate from depending on ScripCode to ScripData for reliability. Still, while testing, we found the problem of invalid values while fetching market depths.
The text was updated successfully, but these errors were encountered: