SpartaQuant Python API
Project description
SpartaQuant
This API provides many services you can use as a SpartaQuant developer
SpartaQuant uses API token to allow access to the API outside the application in your favorite IDE
Installation
Install the package via pip with code below:
pip install spartaquant
To Upgrade:
pip install --upgrade spartaquant
Authentication
- First, you must create an account at https://spartaquant.pro/login
- Retrieve your API token in the profile section
- Click on Copy access key (to clipboard the access key)
- Import the spartaquant module
import spartaquant as sq
sq = sq.spartaquant()
- Enter the access key in the prompt box
- You are logged !
Examples
Some examples to start with the SpartaQuant API:
- Retrieve the list of available SpartaQuant objects
import spartaquant as sq
sq = sq.spartaquant()
sq.getDataDB()
- Retrieve the list of available SpartaQuant functions
import spartaquant as sq
sq = sq.spartaquant()
sq.getFunctionDB()
- Get a specific object by apiId (find apiId with sq.getDataDB())
import spartaquant as sq
sq = sq.spartaquant()
sq.getData(apiId)
- Run a SpartaQuant function by apiId (find apiId with sq.runFunction())
import spartaquant as sq
sq = sq.spartaquant()
sq.runFunction(apiId, *args)
- Store data into SpartaQuant
import spartaquant as sq
sq = sq.spartaquant()
sq.putData(dataObj, name=None, apiId=None, dateDispo=None)
- Retrieve the list of available XLS SpartaQuant files
import spartaquant as sq
sq = sq.spartaquant()
sq.getXlsDB()
- Create an XLS file in SpartaQuant
import spartaquant as sq
sq = sq.spartaquant()
sq.createXls(nameFile, extension='xlsx')
- Update and XLS file in SpartaQuant
import spartaquant as sq
sq = sq.spartaquant()
sq.putXlsData(xlsId, data_df, sheetName, cellStart='A1')
Check out the documentation of the API at https://spartaquant.pro/publicAPI for more information
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file spartaquant-1.0.6.tar.gz.
File metadata
- Download URL: spartaquant-1.0.6.tar.gz
- Upload date:
- Size: 9.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/33.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.8.2 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.7.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f7c9ab8a9ae40d1b60b7dca2e612c88620ccc52c1b7827c2d0b03e14cee2afd9
|
|
| MD5 |
35ff7dc6c2b06acf7925233d49f166e5
|
|
| BLAKE2b-256 |
81c9c16e55d41aa86f520c7275ee6aa4d2dae4703d0227f3f376aaae945f6cdd
|
File details
Details for the file spartaquant-1.0.6-py3-none-any.whl.
File metadata
- Download URL: spartaquant-1.0.6-py3-none-any.whl
- Upload date:
- Size: 9.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/33.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.63.0 importlib-metadata/4.8.2 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.7.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
29a5b3a4cc16c669a273cddd970ac21c5498207f91fd825171aaf74a37de9ac5
|
|
| MD5 |
275764406aa9e8cfc467555d2ced261a
|
|
| BLAKE2b-256 |
e2122e003b86770c16d56c1f04217803503b99815e6cf785458a35c0a2462034
|