Enumerations and class definitions

Post Reply
silentdiver
Posts: 16
Joined: Sat Jan 04, 2025 1:53 pm

Hello all, new member here, I'm just getting into BetAngel. I'm a seasoned/retired professional coder so want to use the API to code up my own strategies etc.

First thing in that direction is creating definitions for the types and enumerations (in C#, my preferred lingo).

When I start getting real data from the API I can generate type definitions from that but will need to do the enumerations at least for myself, and I'd probably want to add data annotations to the request types for validation etc etc. so a basic json-> C# conversion won't be the whole thing done.

Before I embark on that, I was looking to see if some kind soul had done the hard work already and posted it, but can't see anything in here or elsewhere on the net. Even if it's not in C#, maybe Python etc it'd probably be easier to convert than to generate from scratch.

If I do end up doing it myself, no great problem and will no doubt help with my understanding of all the new data structures, names of everything etc. and I'll post the results here.

Ideally I'd like the definitions with the fields/enum members having popup annotations with the explanatory text from the API docs so it's nicely self-documenting - more manual work to do that, or I guess I could code up something to scrape it and create C# definitions or use awk or a Notepad++ script or something !

Anyway, cheers all, thanks in advance for any pointers to pre-defined enum defs or whatever.

Chris
Post Reply

Return to “Betfair Exchange API”