Hello everyone,
I need to have the total number of coins listed on the spot market always updated and know when a new one adds in real time. Using the REST API I implemented this function
You are going to have all of them in your dict, right at their first trade!
TIP:
# create this in your init
symbols: dict = {}
# now fill this using
# in your Trade stream function
# get the symbol
s = data['s']
# is already in the list?
if s not in symbols:
# OMG we have a new listing!
symbols[s] = {}
symbols[s]['p'] = data['p']