Hi everyone!

I've always wanted to build a bot using the API. My preference language would be:

* Node js
* Ruby
* PHP

I do not know Python but.... can read it a little bit. Here's my question for IRE & GB horse racing in plays only:

Using the API, can I detect when a market is about to close? Also, I do not understand the data returned when using the sample nodejs code: <see attached link> I get back: (Received: {"op":"mcm","id":15803027,"clk":"AMzGAwDQ0AIApa wF" ,"pt":1597316417058,"ct":"HEARTBEAT"}) -- what should I do with that?

What do I want to achieve? I want to see a live in play stats of horse racing with the odds constantly changing, the same as Paddy Power's website.