Files
api_utils_converse_v2/playground/trading/icici_breeze.py
T

22 lines
608 B
Python

# To work with ICICI Breeze's platform:
from breeze_connect import BreezeConnect
from utils_v2.string import json
api_key = r"2678j1551CSkQ96I5T1862k1685t0b2d"
api_secret = r"kQWD507T9R1169I7AR3473+54@1940P5"
session_token = r"50114591"
print("Init")
breeze = BreezeConnect(api_key = api_key)
print("Creating session.")
breeze.generate_session(
api_secret = api_secret,
session_token = session_token
)
# Getting Customer details:
customer_details = breeze.get_customer_details(api_session = session_token)
print(customer_details)
print("CUSTOMER:", json.to_string(customer_details, default=str))