How to receive Soybean(CBOT future, ticker= Sc1)streaming price
Hello, I am rying to receive a streaming price of soybean price(ticker=Sc1).
streaming_prices = ek.StreamingPrices(
instruments = ['Sc1'],
fields = ['DSPLY_NAME', 'CF_BID', 'CF_ASK','CF_Last'],
on_update = lambda streaming_price, instrument_name, fields :
print("Update received for {}: {}".format(instrument_name, fields))
)
streaming_prices.open()
I used this code, but it won't work.