i hope to query all the instruments which underlying is ".KS200" by use the
FuturesAndOptionsSearchRequest,but the query result only 250 records. but in fact is 860 records or so in the web ui .
For a deeper look into our DataScope Select REST API, look into:
Overview | Quickstart | Documentation | Downloads | Tutorials
i hope to query all the instruments which underlying is ".KS200" by use the
FuturesAndOptionsSearchRequest,but the query result only 250 records. but in fact is 860 records or so in the web ui .
"SearchRequest": {
"@odata.type": "#ThomsonReuters.Dss.Api.Search.FuturesAndOptionsSearchRequest",
"FuturesAndOptionsType": "Options",
"UnderlyingRic": ".KS200"
}
@lei.cheng
Thank you for your participation in the forum. Are any of the replies below satisfactory in resolving your query? If yes please click the 'Accept' text next to the reply that best answers your question. This will guide all community members who have a similar question. Otherwise please post again offering further insight into your question.
Thanks,
-AHS
Hi @lei.cheng
Thank you for your participation in the forum.
Are any of the replies below satisfactory in resolving your query?
If yes please click the 'Accept' text next to the most appropriate reply. This will guide all community members who have a similar question.
Otherwise please post again offering further insight into your question.
Thanks,
AHS
@@lei.cheng, please be informed that a reply has been verified as correct in answering the question, and has been marked as such. Thanks, AHS
FuturesAndOptionsSearchRequest supports "Server-Driven Paging". The request returns only 250 rows of result on the initial request. The server response will include a nextlink (URI) that, when called, will return the next 250 rows for that result set as well as another nextlink. If there are no more rows, the nextlink will not be returned.
At the end of the response, you will see the nextlink.
... "@odata.nextlink": "https://hosted.datascopeapi.reuters.com/RestApi/v1/Search/FuturesAndOptionsSearch?$skiptoken='MjUw'" }
To retrieve next 250 rows of result, you need to send HTTP Post request with the same payload to the nextlink URI: https://hosted.datascopeapi.reuters.com/RestApi/v1/Search/FuturesAndOptionsSearch?$skiptoken='MjUw' instead.