<commit_before>bety
=====

An Erlang/OTP Betfair Client

Build
-----

``` $ make ```

Config
------

Example..

```
    {ssl, [
          {certfile, "/path/to/client-2048.crt"},
          {keyfile, "/path/to/client-2048.key"},
          {password, "password"}
          ]},
    {max_connections, 10},
    {num_connections, 2},
    {num_procs, 10},
    {keep_alive, 1},
    {identity_endpoint, "identitysso.betfair.com"},
    {exchange_endpoint, "api.betfair.com"}

```

Run
---

``` $ ./start-dev.sh ```


Api
---

Sync request
``` betfair:request(listEventTypes, []). ```

Async request
``` betfair:request(listEventTypes, [], [{sync, true}]). ```<commit_msg>updated examples in readme<commit_after>bety
=====

An Erlang/OTP Betfair Client

Build
-----

``` $ make ```

Config
------

Example..

```
    {ssl, [
          {certfile, "/path/to/client-2048.crt"},
          {keyfile, "/path/to/client-2048.key"},
          {password, "password"}
          ]},
    {max_connections, 10},
    {num_connections, 2},
    {num_procs, 10},
    {keep_alive, 1},
    {identity_endpoint, "identitysso.betfair.com"},
    {exchange_endpoint, "api.betfair.com"}

```

Run
---

``` $ ./start-dev.sh ```


Api
---

Sync request
``` betfair:request(list_event_types, []). ```

Async request
``` betfair:request(list_event_types, [], [{sync, true}]). ```
{'fraction_non_alphanumeric': 0.22139117427075541, 'fraction_numerical': 0.020942408376963352, 'mean_word_length': 2.6758241758241756, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5637653', 'n_tokens_mistral': 533, 'n_tokens_neox': 488, 'n_words': 81}