Tradologics SDK
Project description
This is the initial version of Tradologics’ Python SDK.
At the moment, it only supports a wrapper for the awesome requests library that will automatically:
prepend the full endpoint url to your calls
attach your token to the request headers
add datetime to your order when in backtesting mode
Install using PyPi
$ pip3 install -U tradologics
Using the library:
In your requirements.txt:
tradologics
In your code:
# import Tradologics' requests
import tradologics.requests as requests
# set your token (once)
requests.set_token("MY TOKEN")
# from this point - use is just like you would have used `reqeuests`:
requests.post("/orders", json={
...
})
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
tradologics-0.0.5.tar.gz
(7.6 kB
view details)
Built Distribution
File details
Details for the file tradologics-0.0.5.tar.gz
.
File metadata
- Download URL: tradologics-0.0.5.tar.gz
- Upload date:
- Size: 7.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.9.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f3fa7e135f03a8cd7aeb6f66ea9d5ea83b288ba34cb715ac6bc6c6215d8c0108 |
|
MD5 | 8cb009dbb719c814c63ccb7aec45d2d4 |
|
BLAKE2b-256 | aefaeefa731cb38e316a88d38e96a389a6cd4d5dde090f624fbffac2fa94b485 |
File details
Details for the file tradologics-0.0.5-py3-none-any.whl
.
File metadata
- Download URL: tradologics-0.0.5-py3-none-any.whl
- Upload date:
- Size: 8.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.9.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | cdfb8cb58f71d334a0cad99b412ac0258c4afa9bcfd2032707d6699e600709df |
|
MD5 | a7c1c0f34160a48cc52c761da22e220b |
|
BLAKE2b-256 | 1ba9e378698ade5b663339e64c15e22bd6a7258e402828799914cb17d8f9b597 |