(20250101) A more formal Tick-In script has been created.

This commit is contained in:
2025-01-01 09:36:06 +00:00
parent c668cfa4c8
commit 6691a68b3a
5 changed files with 442 additions and 164 deletions
@@ -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())