Before market open it will not work to get ek.get_data("0#BUYSELL.SZ","DSPLY_NAME",)

HI

it will work fine on 9:30 - 24:00 ,but before market open it will get error message !

ek.get_data("0#BUYSELL.SZ","DSPLY_NAME",)

image

Best Answer

  • @andy.ej
    Are you able to consistently reproduce receiving the error prior to market open? I tried your request just now at 6am Beijing time and had no problem retrieving the data.
    I think rather than being a function of the time of the day, what you experienced is a timeout from the backend, which happens if for any reason the request processing by the backend takes more than 15 seconds. This is a known issue and it's being worked on. In the meantime the only suggestion is to try the request again when you receive this error.
    See this thread for an example.

Answers