Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
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)
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)
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)
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)
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)
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)
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)
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)
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)
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)