Author Topic: Counting trades  (Read 251 times)

Tags:
  • All members
  • Posts: 3
  • Karma: +0/-0
Counting trades
« on: Tue, 12 March, 2019, 22:35 »
Hi guys.

I'm looking for a way to count the number of trades at a specified price, tried using "last_traded" but the problem is it looks like I have to specify a frequency, ie "No less than .. seconds", and that will count the previous trade as new if there was no new one.

Any ideas? Is there a way to detect the "traded event" or "matched bet event"? or something like it? _Maybe I am seeing it wrong, all feedbacks are welcome.

Thanks is advance.

  • Administrator
  • Posts: 7324
  • Karma: +243/-0
  • Gender: Female
*
Re: Counting trades
« Reply #1 on: Thu, 14 March, 2019, 11:59 »
Hello!

What exactly do you define as "trades"?
Always try your triggers in Test Mode before switching to real money!

Follow us on Twitter.

Usuários brasileiros, bem vindos ao nosso WhatsApp chat!

Присоединяйтесь к нашей официальной группе ВКонтакте!

  • All members
  • Posts: 3
  • Karma: +0/-0
Re: Counting trades
« Reply #2 on: Thu, 14 March, 2019, 18:53 »
Hi there.

Matched bets... not the ones placed by me.

  • Administrator
  • Posts: 7324
  • Karma: +243/-0
  • Gender: Female
*
Re: Counting trades
« Reply #3 on: Thu, 14 March, 2019, 20:17 »
I don't know of any ways to count the bets matched at a certain price: I don't think such possibility exists in the BetFair API.
Always try your triggers in Test Mode before switching to real money!

Follow us on Twitter.

Usuários brasileiros, bem vindos ao nosso WhatsApp chat!

Присоединяйтесь к нашей официальной группе ВКонтакте!

  • All members
  • Posts: 3
  • Karma: +0/-0
Re: Counting trades
« Reply #4 on: Sat, 16 March, 2019, 05:53 »
Thanks for the reply... I managed to do a "not so elegant" and not that accurate way of having an ideia of how many relevant trades are backs and which are lays,

  • Administrator
  • Posts: 7324
  • Karma: +243/-0
  • Gender: Female
*
Re: Counting trades
« Reply #5 on: Sun, 17 March, 2019, 21:06 »
Well done for finding the solution that works for you!
Always try your triggers in Test Mode before switching to real money!

Follow us on Twitter.

Usuários brasileiros, bem vindos ao nosso WhatsApp chat!

Присоединяйтесь к нашей официальной группе ВКонтакте!