{"repo":"stabacco/stake-python","free":true,"listed":false,"github":"https://github.com/stabacco/stake-python","clone":"git clone https://github.com/stabacco/stake-python.git","description":"Python client for the Stake Trading platform","language":"Python","stars":105,"topics":["trading-platform","trading"],"license":null,"category":"trading","readme_excerpt":"Stake Stake is an unofficial Python client for the Stake trading platform. This library wraps the current Stake api and allows common trade operations, such as submitting buy/sell requests, checking your portfolio etc... Please note that, at the current stage, the Stake client is asynchronous. Installation Quickstart After you install the package, you will need to authenticate to Stake in order to get authorization to interact with your account. In order to successfully issue requests to the Stake platform you will need to authenticate to it. Every requests to the Stake endpoints will need to contain a Stake-Session-Token in the request headers. Using an existing Session-Token You can retrieve one of these Stake-Session-Token by using the developer tools in your browser (Network tab) and inspecting some of the request headers sent to some of the https://api2.prd.hellostake.com/ host. (For example, click on the wishlist of dashboard links to see some session-token authenticated requests) They are usually valid for 30 days (be sure to enable that checkbox on login) and seem to get refreshed before expiry so you should be good to use them directly. If you already have an existing token you can pass it on to the StakeClient as such: NOTE: The default value of the token is read from the STAKE TOKEN environment variable. If you have that env-var set you should be able to just use: async with StakeClient() as stake session: ... Login with your credentials If you prefer to pass in yo","default_branch":null,"files":null,"tree":[],"storefront":"/r/stabacco","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/stabacco/stake-python/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}