Author Topic: Counting trades  (Read 2508 times)

Tags:
  • All members
  • Posts: 22
Counting trades
« on: 12 Mar 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: 8819
  • Gender: Female
*
Re: Counting trades
« Reply #1 on: 14 Mar 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.

Join our WhatsApp chat!

Присоединяйтесь к официальному Telegram-каналу!

  • All members
  • Posts: 22
Re: Counting trades
« Reply #2 on: 14 Mar 2019, 18:53 »
Hi there.

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

  • Administrator
  • Posts: 8819
  • Gender: Female
*
Re: Counting trades
« Reply #3 on: 14 Mar 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.

Join our WhatsApp chat!

Присоединяйтесь к официальному Telegram-каналу!

  • All members
  • Posts: 22
Re: Counting trades
« Reply #4 on: 16 Mar 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: 8819
  • Gender: Female
*
Re: Counting trades
« Reply #5 on: 17 Mar 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.

Join our WhatsApp chat!

Присоединяйтесь к официальному Telegram-каналу!

 

Please note, BetFair is seems to be currently OFFLINE