Skip to content

Instantly share code, notes, and snippets.

@timxyz
timxyz / sync_bets.py
Created April 20, 2022 10:27
Sync bets API
def sync_bets_for_event(
betfair_client,
betfair_markets,
proposed_bets
):
'''
Make a best effort to synchronize proposed bets with Betfair.
Arguments:
betfair_client - betfairlightweight instance with which to interface with Betfair
@timxyz
timxyz / make_simulator_request.py
Last active February 23, 2021 11:32
AI Abacus simulator request
import json
import pandas as pd
import requests
AI_ABACUS_SIMULATOR_URL = ''
AI_ABACUS_API_KEY = ''
def make_simulator_request(ply_ids, tme_id, style_id):
"""
Sychronously queries the AI Abacus Simulator API for the specified players and team
### Keybase proof
I hereby claim:
* I am timxyz on github.
* I am timxyz (https://keybase.io/timxyz) on keybase.
* I have a public key whose fingerprint is FBD2 12A2 7A9E C7B6 5230 CCA6 7714 2343 385C 4869
To claim this, I am signing this object: