/meeno

java implementation of the Betfair NG-API

Primary LanguageJava

meeno

A strongly typed, immutable, java 8 implementation of the Betfair NG-API for use in non-interactive (aka bot) applications.

This project is functional but is still very much a work in progress... use at your own risk. Most API calls have been implemented but not all. If you need help please contact me via github or twitter.

To get started take a look at some examples.

There is no release as yet, but you can clone the project and run:

gradle jar

Getting started

    cp /System/Library/OpenSSL/openssl.cnf .
    
    vi openssl.cnf
    # append the following text:
        [ ssl_client ]
        basicConstraints = CA:FALSE
        nsCertType = client
        keyUsage = digitalSignature, keyEncipherment
        extendedKeyUsage = clientAuth
    
    openssl genrsa -out client-2048.key 2048
    
    openssl req -new -config openssl.cnf -key client-2048.key -out client-2048.csr
    
    openssl x509 -req -days 365 -in client-2048.csr -signkey client-2048.key -out client-2048.crt -extfile openssl.cnf -extensions ssl_client