Skip to main content

DojoSDK

Official Python client SDK for the Dojo API.

Installation

pip install dojosdk

Quick Start

import dojo

client = dojo.Dojo(api_key="your-api-key")
ticker = client.market_data.get_ticker(exchange="BINANCE", bz_type="spot", symbol="BTCUSDT")
print(ticker)

Environment Variables

When integrating DojoSDK with Hugging Face Datasets (e.g., for automated data syncing or pushing records), you need to configure the following environment variable to authenticate with Hugging Face:

Environment Variable Description Required
HF_TOKEN Hugging Face User Access Token. Requires "Write" permissions to push data to remote repositories. Yes (when using huggingface_hub to push without CLI login)

Setup Example:

export HF_TOKEN="hf_your_access_token_here"

Alternatively, you can skip configuring this variable if your environment is already authenticated locally via huggingface-cli login.

Hugging Face Cache Management

DojoSDK automatically caches offline data downloaded from Hugging Face. To free up disk space by deleting older revisions and keeping only the latest version of the cached data, use the cleanup_cache method:

from dojo.datasource.huggingface import HuggingFaceDataSource

ds = HuggingFaceDataSource()
result = ds.cleanup_cache()

# Expected output format:
# {'freed_space': '3.0GB', 'details': {'AlphaDojo/dojo_stock_kline': '772.9M', ...}, 'message': 'Cache cleanup complete.'}
print(result)

Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

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

dojosdk-0.1.19-py3-none-any.whl (55.8 kB view details)

Uploaded Python 3

dojosdk-0.1.19-2-py3-none-any.whl (56.2 kB view details)

Uploaded Python 3

File details

Details for the file dojosdk-0.1.19-py3-none-any.whl.

File metadata

  • Download URL: dojosdk-0.1.19-py3-none-any.whl
  • Upload date:
  • Size: 55.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.13

File hashes

Hashes for dojosdk-0.1.19-py3-none-any.whl
Algorithm Hash digest
SHA256 b219647d2da60c872712fa07ca3adaf6ef75988e05dff04800a57054914cfd8b
MD5 83e39825c94c90195da7394352f99c7b
BLAKE2b-256 15b8a5f949af3d94f3d99fb76f69ac5b7973ed9c8c32ddce8fc1a17298c37edd

See more details on using hashes here.

File details

Details for the file dojosdk-0.1.19-2-py3-none-any.whl.

File metadata

  • Download URL: dojosdk-0.1.19-2-py3-none-any.whl
  • Upload date:
  • Size: 56.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.13

File hashes

Hashes for dojosdk-0.1.19-2-py3-none-any.whl
Algorithm Hash digest
SHA256 b68c1c6bf5383a452995dba42f977391a626973eef122156e5d07abbedb249f0
MD5 0c87b209590716717d659684a314072f
BLAKE2b-256 acda3a75758e4dccd0e7eeea67cd3a1232dad22860e598436286f7a10eebfd02

See more details on using hashes here.

Release history Release notifications | RSS feed

0.1.23

1 file

0.1.22

1 file

0.1.21

1 file

0.1.20

1 file

This release

0.1.19 This release

2 files

0.1.18

1 file

0.1.17

1 file

0.1.16

1 file

0.1.15

1 file

0.1.14

1 file

0.1.13

1 file

0.1.12

1 file

0.1.11

1 file

0.1.10

1 file

0.1.9

1 file

0.1.8

1 file

0.1.7

1 file

0.1.6

1 file

0.1.5

1 file

0.1.4

1 file

0.1.3

1 file

0.1.2

1 file

0.1.1

1 file

0.1.0

1 file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page