How to send data to TickerPlant

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

 

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.

@see http://code.kx.com/q/developer/#foreign-interfaces

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

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())

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())