How to use the betfairlightweight.utils.process_response function in betfairlightweight

To help you get started, we’ve selected a few betfairlightweight examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github liampauling / betfair / betfairlightweight / apirequest.py View on Github external
def update_orders(api, params=None, session=None, exchange=None):
    request = OrderRequest(api, 'SportsAPING/v1.0/updateOrders', params, exchange)
    (response, raw_response, sent) = request(session)
    return process_response(response, raw_response, sent, apiparsebetting.UpdateOrder)
github liampauling / betfair / betfairlightweight / apirequest.py View on Github external
def list_venues(api, params=None, session=None, exchange=None):
    request = BettingRequest(api, 'SportsAPING/v1.0/listVenues', params, exchange)
    (response, raw_response, sent) = request(session)
    return process_response(response, raw_response, sent, apiparsedata.VenueResult)
github liampauling / betfair / betfairlightweight / apirequest.py View on Github external
def list_currency_rates(api, params=None, session=None, exchange=None):
    request = AccountRequest(api, 'AccountAPING/v1.0/listCurrencyRates', params, exchange)
    (response, raw_response, sent) = request(session)
    return process_response(response, raw_response, sent, apiparseaccount.CurrencyRate)
github liampauling / betfair / betfairlightweight / apirequest.py View on Github external
def cancel_orders(api, params=None, session=None, exchange=None):
    request = OrderRequest(api, 'SportsAPING/v1.0/cancelOrders', params, exchange)
    (response, raw_response, sent) = request(session)
    if params:
        return process_response(response, raw_response, sent, apiparsebetting.CancelOrder)
    else:
        return process_response(response, raw_response, sent, apiparsebetting.CancelAllOrders)
github liampauling / betfair / betfairlightweight / apirequest.py View on Github external
def transfer_funds(api, params=None, session=None, exchange=None):
    request = AccountRequest(api, 'AccountAPING/v1.0/transferFunds', params, exchange)
    (response, raw_response, sent) = request(session)
    return process_response(response, raw_response, sent, apiparseaccount.TransferFunds)
github liampauling / betfair / betfairlightweight / apirequest.py View on Github external
def list_competitions(api, params=None, session=None, exchange=None):
    request = BettingRequest(api, 'SportsAPING/v1.0/listCompetitions', params, exchange)
    (response, raw_response, sent) = request(session)
    return process_response(response, raw_response, sent, apiparsedata.CompetitionResult)
github liampauling / betfair / betfairlightweight / apirequest.py View on Github external
def list_countries(api, params=None, session=None, exchange=None):
    request = BettingRequest(api, 'SportsAPING/v1.0/listCountries', params, exchange)
    (response, raw_response, sent) = request(session)
    return process_response(response, raw_response, sent, apiparsedata.CountryResult)
github liampauling / betfair / betfairlightweight / apirequest.py View on Github external
def get_account_details(api, params=None, session=None, exchange=None):
    request = AccountRequest(api, 'AccountAPING/v1.0/getAccountDetails', params, exchange)
    (response, raw_response, sent) = request(session)
    return process_response(response, raw_response, sent, apiparseaccount.AccountDetails)
github liampauling / betfair / betfairlightweight / apirequest.py View on Github external
def list_event_types(api, params=None, session=None, exchange=None):
    request = BettingRequest(api, 'SportsAPING/v1.0/listEventTypes', params, exchange)
    (response, raw_response, sent) = request(session)
    return process_response(response, raw_response, sent, apiparsedata.EventTypeResult)
github liampauling / betfair / betfairlightweight / apirequest.py View on Github external
def get_account_statement(api, params=None, session=None, exchange=None):
    request = AccountRequest(api, 'AccountAPING/v1.0/getAccountStatement', params, exchange)
    (response, raw_response, sent) = request(session)
    return process_response(response, raw_response, sent, apiparseaccount.AccountStatement)