# How to send data to TickerPlant

**URL:** <https://forum.kx.com/t/how-to-send-data-to-tickerplant/11535>\
**Category:** Community Support\
**Tags:** kdb-and-q\
**Created:** [May 9, 2017, 3:34am UTC](https://forum.kx.com/t/how-to-send-data-to-tickerplant/11535 "2017-05-09T03:34:00Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![hzadonis](https://avatars.discourse-cdn.com/v4/letter/h/87869e/32.png) [@hzadonis](https://forum.kx.com/u/hzadonis)\
**Post date:** [May 9, 2017, 3:34am UTC](https://forum.kx.com/t/how-to-send-data-to-tickerplant/11535/1 "2017-05-09T03:34:00Z")

</div>

Hi, Masters:  
&nbsp; 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). &nbsp;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. &nbsp;But one thing I don’t konw how to resolve is how to feed the realtime data to TickerPlant with Python platform?

&nbsp; Many thanks for your suggestions!

Thanks

Zheng

&nbsp;

---

<div class="post-metadata">

**Author:** ![Flying1](https://avatars.discourse-cdn.com/v4/letter/f/f4b2a3/32.png) [@Flying1](https://forum.kx.com/u/Flying1)\
**Post date:** [May 10, 2017, 2:47am UTC](https://forum.kx.com/t/how-to-send-data-to-tickerplant/11535/2 "2017-05-10T02:47:00Z")

</div>

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&nbsp;[http://code.kx.com/q/developer/#foreign-interfaces](http://code.kx.com/q/developer/#foreign-interfaces)

---

<div class="post-metadata">

**Author:** ![hzadonis](https://avatars.discourse-cdn.com/v4/letter/h/87869e/32.png) [@hzadonis](https://forum.kx.com/u/hzadonis)\
**Post date:** [May 10, 2017, 4:30am UTC](https://forum.kx.com/t/how-to-send-data-to-tickerplant/11535/3 "2017-05-10T04:30:00Z")

</div>

Hi,  
&nbsp; So far, I’m trying to use qpython to make the connection. and then, require data from kdb+.

&nbsp; The 3rd step is feed real time data into TP.

&nbsp; How about other opinions?

Regards

Zheng

---

<div class="post-metadata">

**Author:** ![jim11](https://avatars.discourse-cdn.com/v4/letter/j/13edae/32.png) [@jim11](https://forum.kx.com/u/jim11)\
**Post date:** [May 10, 2017, 8:45am UTC](https://forum.kx.com/t/how-to-send-data-to-tickerplant/11535/4 "2017-05-10T08:45:00Z")

</div>

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

```

---

<div class="post-metadata">

**Author:** ![hzadonis](https://avatars.discourse-cdn.com/v4/letter/h/87869e/32.png) [@hzadonis](https://forum.kx.com/u/hzadonis)\
**Post date:** [May 17, 2017, 4:33am UTC](https://forum.kx.com/t/how-to-send-data-to-tickerplant/11535/5 "2017-05-17T04:33:00Z")

</div>

Hi, James:  
&nbsp; 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())
