How to send data to TickerPlant

445 views
Skip to first unread message

hzad...@gmail.com

unread,
May 9, 2017, 3:17:21 AM5/9/17
to Kdb+ Personal Developers
Hi, Masters:
  I had completed the test of kdb+tick demo. And completed the workflow of using PyRFA to get Realtime data from TREP(Thomson Reuters's system to provide data).  According to the kdb+tick demo, the data was simulated by feedsim which is a q script to generate data, it's easy to understand and implement the connection to TickerPlant.  But one thing I don't konw how to resolve is how to feed the realtime data to TickerPlant with Python platform?
  Many thanks for your suggestions!

Thanks
Zheng
 

hzad...@gmail.com

unread,
May 10, 2017, 1:55:59 AM5/10/17
to Kdb+ Personal Developers
Hi,
  So far, I'm trying to use qpython to make the connection. and then, require data from kdb+.
  The 3rd step is feed real time data into TP.

  How about other opinions?

Regards
Zheng

Flying

unread,
May 10, 2017, 1:55:59 AM5/10/17
to Kdb+ Personal Developers
There are both q connection support and q-embedded support in Python. You can pick a suitable on to send your Python side of data into Tickerplant.

James Little

unread,
May 10, 2017, 3:48:18 AM5/10/17
to personal...@googlegroups.com
qpython is a good choice. There's an example of publishing to a tickerplant here:
http://qpython.readthedocs.io/en/latest/usage-examples.html#data-publisher

In this case, the line doing the publishing (i.e. calling .u.upd in the TP process) into the 'ask' table is:
self.q.sync('.u.upd', numpy.string_('ask'), self.get_ask_data())

--
You received this message because you are subscribed to the Google Groups "Kdb+ Personal Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to personal-kdbplus+unsubscribe@googlegroups.com.
To post to this group, send email to personal-kdbplus@googlegroups.com.
Visit this group at https://groups.google.com/group/personal-kdbplus.
For more options, visit https://groups.google.com/d/optout.

hzad...@gmail.com

unread,
May 16, 2017, 11:38:37 PM5/16/17
to Kdb+ Personal Developers
Hi, James:
  Thanks! After testing, the data flow works.

Zheng

在 2017年5月10日星期三 UTC+8下午3:48:18,James Little写道:
qpython is a good choice. There's an example of publishing to a tickerplant here:
http://qpython.readthedocs.io/en/latest/usage-examples.html#data-publisher

In this case, the line doing the publishing (i.e. calling .u.upd in the TP process) into the 'ask' table is:
self.q.sync('.u.upd', numpy.string_('ask'), self.get_ask_data())
On 10 May 2017 at 04:30, <hzad...@gmail.com> wrote:
Hi,
  So far, I'm trying to use qpython to make the connection. and then, require data from kdb+.
  The 3rd step is feed real time data into TP.

  How about other opinions?

Regards
Zheng


On Tuesday, 9 May 2017 15:17:21 UTC+8, hzad...@gmail.com wrote:
Hi, Masters:
  I had completed the test of kdb+tick demo. And completed the workflow of using PyRFA to get Realtime data from TREP(Thomson Reuters's system to provide data).  According to the kdb+tick demo, the data was simulated by feedsim which is a q script to generate data, it's easy to understand and implement the connection to TickerPlant.  But one thing I don't konw how to resolve is how to feed the realtime data to TickerPlant with Python platform?
  Many thanks for your suggestions!

Thanks
Zheng
 

--
You received this message because you are subscribed to the Google Groups "Kdb+ Personal Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email to personal-kdbpl...@googlegroups.com.
To post to this group, send email to personal...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages