toloka.client.TolokaClient.get_requester | Source code
Reads information about the customer and the account balance
Object that contains all information about customer.
Make sure that you've entered a valid OAuth token.
You can also estimate approximate pipeline costs and check if there is enough money on your account.
requester = toloka_client.get_requester()if requester.balance >= approx_pipeline_price:print('You have enough money on your account!')else:print("You haven't got enough money on your account!")