c# getMarketPrices marketsFilter Example please.

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
User avatar
Debsh2023
Posts: 3
Joined: Fri Feb 16, 2024 4:29 am

Hi,
Does anyone have a c# code example to call getMarketPrices using the marketsFilter ?

Visual Studio 2022

using RestSharp;
using Newtonsoft.Json;

Thanks in advance

Debbie.
User avatar
Debsh2023
Posts: 3
Joined: Fri Feb 16, 2024 4:29 am

Cracked it !!
Here's how for anyone else (hope it helps)

request.AddJsonBody("{ \"marketsFilter\": {\"filter\": \"SPECIFIED_IDS\",\"ids\": [\""+marketid+"\"]}, \"dataRequired\": [\"BEST_PRICE_ONLY\",\"BEST_THREE_PRICES\",\"INPLAY_INFO\",\"LAST_TRADED_PRICE\",\"SP\",\"VOLUME\"]}");
User avatar
johnsheppard
Posts: 284
Joined: Mon Feb 04, 2019 6:00 am
Location: Cairns Australia

Post Reply

Return to “Bet Angel - API”