Skip to main content

SpartaQuant Python API

Project description

SpartaQuant icon 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
  1. First, you must create an account at https://spartaquant.pro/login
  2. Retrieve your API token in the profile section
  3. Click on Copy access key (to clipboard the access key)
  4. Import the spartaquant module
import spartaquant as sq
sq = sq.spartaquant()
  1. Enter the access key in the prompt box
  2. You are logged !
Examples

Some examples to start with the SpartaQuant API:

  1. Retrieve the list of available SpartaQuant objects
import spartaquant as sq
sq = sq.spartaquant()
sq.getDataDB()
  1. Retrieve the list of available SpartaQuant functions
import spartaquant as sq
sq = sq.spartaquant()
sq.getFunctionDB()
  1. Get a specific object by apiId (find apiId with sq.getDataDB())
import spartaquant as sq
sq = sq.spartaquant()
sq.getData(apiId)
  1. Run a SpartaQuant function by apiId (find apiId with sq.runFunction())
import spartaquant as sq
sq = sq.spartaquant()
sq.runFunction(apiId, *args)
  1. Store data into SpartaQuant
import spartaquant as sq
sq = sq.spartaquant()
sq.putData(dataObj, name=None, apiId=None, dateDispo=None)
  1. Retrieve the list of available XLS SpartaQuant files
import spartaquant as sq
sq = sq.spartaquant()
sq.getXlsDB()
  1. Create an XLS file in SpartaQuant
import spartaquant as sq
sq = sq.spartaquant()
sq.createXls(nameFile, extension='xlsx')
  1. 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

spartaquant-1.0.7.tar.gz (9.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

spartaquant-1.0.7-py3-none-any.whl (9.8 kB view details)

Uploaded Python 3

File details

Details for the file spartaquant-1.0.7.tar.gz.

File metadata

  • Download URL: spartaquant-1.0.7.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

Hashes for spartaquant-1.0.7.tar.gz
Algorithm Hash digest
SHA256 ebc0b6f77284b6fbf5140f4f95f8ae38df35d930b68eae66bede4b08b680e85b
MD5 a7646a34ff12131c88e9ee82efabddc8
BLAKE2b-256 fce5074acdccfbb52e49f802f61cad8f2d7b52321b06a13615a0297f0170c7a1

See more details on using hashes here.

File details

Details for the file spartaquant-1.0.7-py3-none-any.whl.

File metadata

  • Download URL: spartaquant-1.0.7-py3-none-any.whl
  • Upload date:
  • Size: 9.8 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

Hashes for spartaquant-1.0.7-py3-none-any.whl
Algorithm Hash digest
SHA256 2d646b1f87ea48710bce006c21ffbea8adb1717406bb3aa4bb69163e7205a430
MD5 ad424b61bb5f3a064856b58a674f016c
BLAKE2b-256 d202518befb3b70c72e4cad6e55daf8d0169d279f82f664885c85c76118ff987

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page