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.6.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.6-py3-none-any.whl (9.7 kB view details)

Uploaded Python 3

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

Hashes for spartaquant-1.0.6.tar.gz
Algorithm Hash digest
SHA256 f7c9ab8a9ae40d1b60b7dca2e612c88620ccc52c1b7827c2d0b03e14cee2afd9
MD5 35ff7dc6c2b06acf7925233d49f166e5
BLAKE2b-256 81c9c16e55d41aa86f520c7275ee6aa4d2dae4703d0227f3f376aaae945f6cdd

See more details on using hashes here.

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

Hashes for spartaquant-1.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 29a5b3a4cc16c669a273cddd970ac21c5498207f91fd825171aaf74a37de9ac5
MD5 275764406aa9e8cfc467555d2ced261a
BLAKE2b-256 e2122e003b86770c16d56c1f04217803503b99815e6cf785458a35c0a2462034

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