PricesTF#

class src.tf2_utils.prices_tf.PricesTF#
URL = 'https://api2.prices.tf'#
static has_code(response, code: int) bool#
static validate_response(response) None#
get_headers() dict#
get_history(sku: str, page: int = 1, limit: int = 100, order: str = 'ASC') dict#
get_price(sku: str) dict#
get_prices(page: int, limit: int = 100, order: str = 'DESC') dict#
format_price(data: dict) dict#
get_prices_till_page(page_limit: int, print_rate_limit: bool = False) dict#
get_all_prices(print_rate_limit: bool = False) dict#
update_price(sku: str) tuple[dict, int]#
request_access_token() None#
exception src.tf2_utils.prices_tf.PricesTFError#

General error

exception src.tf2_utils.prices_tf.RateLimited#

Rate limited

exception src.tf2_utils.prices_tf.EmptyResponse#

Response was empty

exception src.tf2_utils.prices_tf.InternalServerError#

Something went wrong