Hi, I am trying to get the real time prices of sugar No.11 (SBC) and sugar No.5 (LSUc) after the market closes. The real time data seems to only be available at 9pm UK time (3 hours after market close) some of the data is not returned. We often don't receive values for open interest/change/volume and intraday prices (minute by minute) returns data from the previous trading day.
This is the code I use to get the settlement price - it only returns the real time data for current trading dat around 9pm UK time which is extremely late.
start_date = str(datetime.date.today() - datetime.timedelta(45))
end_date = str(datetime.date.today())
settle_tables, err = ek.get_data('/SBc1',
['TR.SETTLEMENTPRICE.date',
'TR.SETTLEMENTPRICE'],
{'SDate': start_date, 'EDate': end_date})
We used the code below to get the 1 minute prices however that only returns data up until the previous trading day and not the current day.
df_sbc1 = ek.get_timeseries(['/SBc1'],
start_date = start_date,
end_date = end_date,
fields = ['*'],
interval = 'minute')
What code do we need to use to get the settlement price for the trading day right after the market closes and the minute prices for the trading day?