Discover Refinitiv
MyRefinitiv Refinitiv Perspectives Careers
Created with Sketch.
All APIs Questions & Answers  Register |  Login
Ask a question
  • Questions
  • Tags
  • Badges
  • Unanswered
Search:
  • Home /
  • Elektron /
  • WebSocket API /
avatar image
Question by ranjit.talukdar · May 16, 2018 at 09:19 PM · snapshotwebsocket api market data sample request

How can i send a snapshot only request in websockets using python? also is there a way intrisic to websockets to request a snap every x mins for example

People who like this

0 Show 0
Comment
10 |1500 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

3 Replies

  • Sort: 
avatar image
REFINITIV
Best Answer
Answer by Wasin Waeosri · May 16, 2018 at 11:58 PM

Hello @ranjit.talukdar

You can set "Streaming" parameter in the JSON request message to false (boolean value) to request a snapshot request (Non-Streaming).

Example JSON Snapshot Request message:

{
  "ID": 2,
  "Key": {
    "Name": "EUR="
  },
  "Streaming":false
}

Please be informed that when the application requests a snapshot request to ADS, that item stream is considered closed after the data is received by the consumer because the request has been fulfilled. If the application needs to manual sends a new snapshot request to ADS server if application wants more data.

There is no parameter for request recurring interval of snapshots, the application must manual request by itself.

Comment

People who like this

0 Show 0 · Share
10 |1500 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

avatar image
Answer by ranjit.talukdar · May 16, 2018 at 10:51 PM
@ Wasin Waeosri
Comment

People who like this

0 Show 0 · Share
10 |1500 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

avatar image
Answer by ranjit.talukdar · May 16, 2018 at 11:45 PM

Looking in github i noticed Streaming is a boolean so i guess setting to False is the answer? Please confirm.

Streaming: <Boolean> // Boolean defining streaming (subscription) or Non-streaming (snapshot)

Also advise if there is any param available that can be set for a recurring interval of snapshots.

Comment

People who like this

0 Show 0 · Share
10 |1500 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Watch this question

Add to watch list
Add to your watch list to receive emailed updates for this question. Too many emails? Change your settings >
8 People are following this question.

Related Questions

How to get Webscoket MarketPrice updates based on delay(5 sec for example) and not constant updates. 4 Answers

​Do you need to close the request when you make a snap shot request or the API itself closes the request after delivering the data? (from WebSocket API Webinar Nov 29) 1 Answer

Use the websocket API in synchronous mode 13 Answers

Getting MArketdate from Websocket 7 Answers

Not getting rate update message from Websocket Api java example after approx 9 minutes (using git web socket example) 3 Answers

  • Feedback
  • Copyright
  • Cookie Policy
  • Privacy Statement
  • Terms of Use
  • Careers
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Alpha
  • App Studio
  • Block Chain
  • Bot Platform
  • Calais
  • Connected Risk APIs
  • DSS
  • Data Fusion
  • Data Model Discovery
  • Datastream
  • Eikon COM
  • Eikon Data APIs
  • Elektron
    • EMA
    • ETA
    • WebSocket API
  • Elektron Data Platform
  • Legal One
  • Messenger Bot
  • Messenger Side by Side
  • ONESOURCE
    • Indirect Tax
  • Open PermID
    • Entity Search
  • Org ID
  • PAM
    • PAM - Logging
  • ProView
  • ProView Internal
  • Product Insight
  • Project Tracking
  • Rose's Space
  • Screening
    • Qual-ID API
    • Screening Deployed
    • Screening Online
    • World-Check One
    • World-Check One Zero Footprint
  • Side by Side Integration API
  • TR Knowledge Graph
  • TREP APIs
    • CAT
    • DACS Station
    • Open DACS
    • RFA
    • UPA
  • TREP Infrastructure
  • TRIT
  • TRKD
  • TRTH
  • Thomson One Smart
  • Transactions
    • REDI API
  • Velocity Analytics
  • Wealth Management Web Services
  • Explore
  • Tags
  • Questions
  • Badges