Is there a "complete" c# client library available?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • AlphaCharlieJuliet
    Junior Member
    • Apr 2014
    • 3

    #1

    Is there a "complete" c# client library available?

    Hi,

    I have just started developing against the API-NG version.

    I would save me a lot of time if there were a complete open source client library available for use in c#.

    The best I have found so far is the same code here: https://github.com/betfair/API-NG-sa.../master/cSharp

    It is not complete however, it is missing methods for getting cleared orders and getting current orders just to name a few.

    While I am able to fill in the gaps, I just wanted to check that I am not missing something someone has already written?

    Cheers,
    ACJ
  • Guest

    #2
    This is a pretty good start. The interface includes


    ''' *
    Function listEventTypes(ByVal marketFilter As MarketFilter, Optional ByVal locale As String = Nothing) As IList(Of EventTypeResult)

    '''
    ''' * calls api-ng to get a list of market catalogues
    ''' *
    Function listMarketCatalogue(ByVal marketFilter As MarketFilter, ByVal marketProjections As ISet(Of MarketProjection), ByVal marketSort As MarketSort, Optional ByVal maxResult As String = "1", Optional ByVal locale As String = Nothing) As IList(Of MarketCatalogue)

    '''
    ''' * calls api-ng to get more detailed info about the specified markets
    ''' *
    Function listMarketBook(ByVal marketIds As IList(Of String), ByVal priceProjection As PriceProjection, Optional ByVal orderProjection? As OrderProjection = Nothing, Optional ByVal matchProjection? As MatchProjection = Nothing, Optional ByVal currencyCode As String = Nothing, Optional ByVal locale As String = Nothing) As IList(Of MarketBook)

    '''
    ''' * places a bet
    ''' *
    Function placeOrders(ByVal marketId As String, ByVal customerRef As String, ByVal placeInstructions As IList(Of PlaceInstruction), Optional ByVal locale As String = Nothing) As PlaceExecutionReport



    I have not tried cleared orders and get current orders BUT based on my knowledge now from learning the above it wont be too hard.

    I would suggest learning this example given and then you too will find it easy to code the rest

    Comment

    • AlphaCharlieJuliet
      Junior Member
      • Apr 2014
      • 3

      #3
      is there a schema available

      Thanks for your reply.

      Yes I can code it up, in fact I have now.

      Do you know if there is a schema for the service somewhere?

      Maybe JSON Schema or XSD?

      Alan

      Comment

      • Guest

        #4
        I think you are asking about the function to do the JSON serialization and de-serialization.

        If so ... I downloaded and installed the Newtonsoft.Json.6.0.1 package into my solution.

        Comment

        Working...
        X