Getting Stored Values

The Bet Angel API makes it easy for you to further enhance your betting and trading by integrating your own code into Bet Angel
Post Reply
sibur
Posts: 64
Joined: Tue Jan 11, 2022 11:07 pm

I would like to get the Market SVs for a particular name "stop"

http://localhost:9000/api/automation/v1 ... oredValues

{"marketsFilter":{"filter":"ALL"},"selectionsFilter":{"filter":"ALL"},"storedValueFilterMarketLevel":{"storedValueFilter":"ALL", "names" : ["stop"]}}

however, its returned all the SVs

{"status":"OK","result":{"markets":[{"id":"1.222245580","name":"Amazulu v Sekhukhune United - Correct Score","sharedValues":[{"n":"infront","v":1.0}],"instances":[]},{"id":"1.222356997","name":"Mamelodi Sundowns v Ajax Cape Town - Correct Score","sharedValues":[{"n":"infront","v":9063254.0}],"instances":[]},{"id":"1.222260177","name":"LR Vicenza Virtus v Rimini - Correct Score","sharedValues":[{"n":"infront","v":2.0}],"instances":[]},{"id":"1.222259996","name":"Calcio Avellino SSD v Lucchese - Correct Score","sharedValues":[{"n":"infront","v":2.0}],"instances":[]},{"id":"1.222478194","name":"Twente (W) v FC Zwolle (W) - Correct Score","sharedValues":[{"n":"infront","v":9063254.0},{"n":"lastinfront","v":9063254.0},{"n":"stake","v":1.75},{"n":"stop","v":0.0}],"instances":[]},{"id":"1.222370833","name":"SKN St. Polten (W) v Slavia Prague (W) - Correct Score","sharedValues":[{"n":"infront","v":3.0},{"n":"lastinfront","v":3.0},{"n":"stake","v":1.75},{"n":"stop","v":0.0}],"instances":[]},{"id":"1.221903407","name":"RB Leipzig v Young Boys - Correct Score","sharedValues":[{"n":"infront","v":9063254.0},{"n":"lastinfront","v":11.0},{"n":"stake","v":3.5},{"n":"stop","v":0.0}],"instances":[]},{"id":"1.222370653","name":"Rosengard (W) v Barcelona (W) - Correct Score","sharedValues":[{"n":"infront","v":9063255.0},{"n":"lastinfront","v":15.0},{"n":"stake","v":3.25},{"n":"stop","v":0.0}],"instances":[]},{"id":"1.221903266","name":"Crvena Zvezda v Man City - Correct Score","sharedValues":[{"n":"infront","v":4.0},{"n":"lastinfront","v":8.0},{"n":"stake","v":1.25},{"n":"stop","v":0.0}],"instances":[]}]}}

is this a bug or am I doing something wrong?
User avatar
ODPaul82
Posts: 689
Joined: Sun May 08, 2011 6:32 am
Location: Digswell Herts

storedvaluefilter is set to all so bringing back all

try modifying to the following:
{"marketsFilter":{"filter":"ALL"},"selectionsFilter":{"filter":"ALL"},"storedValueFilterMarketLevel":{"storedValueFilter":"SPECIFIED_NAMES", "names" : ["stop"]}}
sibur
Posts: 64
Joined: Tue Jan 11, 2022 11:07 pm

Thank you. I will try that out later
sibur
Posts: 64
Joined: Tue Jan 11, 2022 11:07 pm

Many thanks ODPaul82 This works perfectly - sometimes you can't see the wood for the trees!
Post Reply

Return to “Bet Angel - API”