(20250101) A more formal Tick-In script has been created.
This commit is contained in:
@@ -265,9 +265,10 @@ if __name__ == "__main__":
|
||||
my_nse = NSEPreMarket(http_client = test_client)
|
||||
|
||||
# Get and show the data:
|
||||
api_response = await my_nse.get_data(key = my_nse.PRE_MARKET_KEY_FO, return_raw = False)
|
||||
api_response = await my_nse.get_data(key = my_nse.PRE_MARKET_KEY_ALL, return_raw = False)
|
||||
print("SUMMARY:", api_response.to_markdown(), "\n---\n\n")
|
||||
if api_response.success: print("PRE-MARKET DATA:", json.to_string(api_response.data, default = str))
|
||||
if api_response.exception: raise api_response.exception
|
||||
print("COUNT:", len(api_response.data["data"]))
|
||||
|
||||
asyncio.run(main())
|
||||
|
||||
Reference in New Issue
Block a user