<h2>PubNub MtGox API Ticker Repeat Messages</h2>

<p>The Ticker Events are Updates that are streamed directly to you which may or may not represent a price change.  However the ticker updates are typically tied to a trade event which occur on the trade channel.</p>

<p>You can find the trade stream here: 
<a href="http://www.pubnub.com/console/?sub=sub-c-50d56e1e-2fd9-11e3-a041-02ee2ddab7fe&amp;pub=demo&amp;channel=dbf1dee9-4f2e-4a08-8cb7-748919a71b21&amp;origin=pubsub.pubnub.com&amp;ssl=true" rel="nofollow noreferrer">http://www.pubnub.com/console/?sub=sub-c-50d56e1e-2fd9-11e3-a041-02ee2ddab7fe&amp;pub=demo&amp;channel=dbf1dee9-4f2e-4a08-8cb7-748919a71b21&amp;origin=pubsub.pubnub.com&amp;ssl=true</a></p>

<p>So in regards to the updates you may receive unchanging value updates.  You may also consider looking at historical values by using the History API: <a href="http://www.pubnub.com/how-it-works/storage-and-playback/" rel="nofollow noreferrer">http://www.pubnub.com/how-it-works/storage-and-playback/</a></p>

<p>Also check out the related Stackoverflow article: <a href="https://stackoverflow.com/questions/20547815/convenient-way-to-extract-data-from-the-mtgox-pubnub-json-api/20553315#20553315">https://stackoverflow.com/questions/20547815/convenient-way-to-extract-data-from-the-mtgox-pubnub-json-api/20553315#20553315</a></p>

<p>or </p>

<p><a href="https://stackoverflow.com/questions/20495713/are-there-ready-made-java-classes-for-the-mtgox-pubnub-json-api/20500700#20500700">https://stackoverflow.com/questions/20495713/are-there-ready-made-java-classes-for-the-mtgox-pubnub-json-api/20500700#20500700</a></p>

CC BY-SA 3.0
2013-12-12T21:04:39.197Z
2013-12-12T21:25:29.637Z
2017-05-23T12:34:59.703Z
Stephen Blum
<p>I'm using MtGox's PubNub API to fetch ticker data. I've subscribed to the BTC/EUR ticker with id 0bb6da8b-f6c6-4ecf-8f0d-a544ad948c15 . In more than half the cases when I receive a new ticker message, the data is just the same as that of the previous message, except for the timestamp of course. I expected ticker messages only when there is new data available, so I do not understand why the ticker messages get repeated. Examples:</p>

<pre><code>diff_to_previous  instant_________      last_all        last_local      last_orig       buy_____        sell____        vwap____        vol_____________    item  avg_____      high____        low_____
n/a               2013-12-12 16:31:46   EUR 628.31408   EUR 620.22000   USD 865.00000   EUR 620.22000   EUR 629.00000   EUR 647.91649   BTC 1365.61335998   BTC   EUR 649.27938 EUR 680.00000   EUR 615.00000
none              2013-12-12 16:31:50   EUR 628.31408   EUR 620.22000   USD 865.00000   EUR 620.22000   EUR 629.00000   EUR 647.91649   BTC 1365.61335998   BTC   EUR 649.27938 EUR 680.00000   EUR 615.00000
none              2013-12-12 16:31:53   EUR 628.31408   EUR 620.22000   USD 865.00000   EUR 620.22000   EUR 629.00000   EUR 647.91649   BTC 1365.61335998   BTC   EUR 649.27938 EUR 680.00000   EUR 615.00000
last_all          2013-12-12 16:32:05   EUR 617.41846   EUR 620.22000   USD 850.00000   EUR 620.23000   EUR 629.00000   EUR 647.91649   BTC 1365.61335998   BTC   EUR 649.27938 EUR 680.00000   EUR 615.00000
</code></pre>

<p>What kind of events trigger a ticker message to be broadcast?</p>

CC BY-SA 3.0
2013-12-12T16:05:23.650Z
This question is also on [bitcointalk.org](https://bitcointalk.org/index.php?topic=368451).
Daniel S.
<mtgox><api><ticker><pubnub>
Why are ticker messages in the MtGox PubNub API repeated?
Daniel S.
# Why are ticker messages in the MtGox PubNub API repeated?

(Asked by: username_0 on 2013-12-12)

I'm using MtGox's PubNub API to fetch ticker data. I've subscribed to the BTC/EUR ticker with id 0bb6da8b-f6c6-4ecf-8f0d-a544ad948c15 . In more than half the cases when I receive a new ticker message, the data is just the same as that of the previous message, except for the timestamp of course. I expected ticker messages only when there is new data available, so I do not understand why the ticker messages get repeated. Examples:

```
diff_to_previous  instant_________      last_all        last_local      last_orig       buy_____        sell____        vwap____        vol_____________    item  avg_____      high____        low_____
n/a               2013-12-12 16:31:46   EUR 628.31408   EUR 620.22000   USD 865.00000   EUR 620.22000   EUR 629.00000   EUR 647.91649   BTC 1365.61335998   BTC   EUR 649.27938 EUR 680.00000   EUR 615.00000
none              2013-12-12 16:31:50   EUR 628.31408   EUR 620.22000   USD 865.00000   EUR 620.22000   EUR 629.00000   EUR 647.91649   BTC 1365.61335998   BTC   EUR 649.27938 EUR 680.00000   EUR 615.00000
none              2013-12-12 16:31:53   EUR 628.31408   EUR 620.22000   USD 865.00000   EUR 620.22000   EUR 629.00000   EUR 647.91649   BTC 1365.61335998   BTC   EUR 649.27938 EUR 680.00000   EUR 615.00000
last_all          2013-12-12 16:32:05   EUR 617.41846   EUR 620.22000   USD 850.00000   EUR 620.23000   EUR 629.00000   EUR 647.91649   BTC 1365.61335998   BTC   EUR 649.27938 EUR 680.00000   EUR 615.00000

```

What kind of events trigger a ticker message to be broadcast?

**Tags:** mtgox, api, ticker, pubnub

> **Comments:**
> **username_0**: This question is also on [bitcointalk.org](https://bitcointalk.org/index.php?topic=368451).  

---

## 1 answers

### Answer by username_1 on 2013-12-12. Score: 2 | Accepted answer

## PubNub MtGox API Ticker Repeat Messages

The Ticker Events are Updates that are streamed directly to you which may or may not represent a price change. However the ticker updates are typically tied to a trade event which occur on the trade channel.

You can find the trade stream here:
<http://www.pubnub.com/console/?sub=sub-c-50d56e1e-2fd9-11e3-a041-02ee2ddab7fe&pub=demo&channel=dbf1dee9-4f2e-4a08-8cb7-748919a71b21&origin=pubsub.pubnub.com&ssl=true>

So in regards to the updates you may receive unchanging value updates. You may also consider looking at historical values by using the History API: <http://www.pubnub.com/how-it-works/storage-and-playback/>

Also check out the related Stackoverflow article: <https://stackoverflow.com/questions/20547815/convenient-way-to-extract-data-from-the-mtgox-pubnub-json-api/20553315#20553315>

or

<https://stackoverflow.com/questions/20495713/are-there-ready-made-java-classes-for-the-mtgox-pubnub-json-api/20500700#20500700>


---

