Skip to main content

sharpe-api

Institutional-grade crypto market data API. Access funding rates, futures, options, arbitrage opportunities, narratives, ecosystems, and more.

Authentication is supported via three methods:

  1. Bearer token in the Authorization header: Authorization: Bearer sk_...
  2. X-API-Key header: X-API-Key: sk_...
  3. Query parameter: ?api_key=sk_... (useful for webhooks, browser links, and environments where setting headers is not possible)

This Python package is automatically generated by the OpenAPI Generator project:

  • API version: 1.0.0
  • Package version: 1.0.0
  • Generator version: 7.21.0
  • Build package: org.openapitools.codegen.languages.PythonClientCodegen For more information, please visit https://sharpe.ai

Requirements.

Python 3.9+

Installation & Usage

pip install

If the python package is hosted on a repository, you can install directly using:

pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git

(you may need to run pip with root permission: sudo pip install git+https://github.com/GIT_USER_ID/GIT_REPO_ID.git)

Then import the package:

import sharpe_api

Setuptools

Install via Setuptools.

python setup.py install --user

(or sudo python setup.py install to install the package for all users)

Then import the package:

import sharpe_api

Tests

Execute pytest to run the tests.

Getting Started

Please follow the installation procedure and then run the following:

import sharpe_api
from sharpe_api.rest import ApiException
from pprint import pprint

# Defining the host is optional and defaults to https://api.sharpe.ai
# See configuration.py for a list of all supported configuration parameters.
configuration = sharpe_api.Configuration(
    host = "https://api.sharpe.ai"
)

# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.

# Configure API key authorization: ApiKeyAuth
configuration.api_key['ApiKeyAuth'] = os.environ["API_KEY"]

# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['ApiKeyAuth'] = 'Bearer'

# Configure Bearer authorization: BearerAuth
configuration = sharpe_api.Configuration(
    access_token = os.environ["BEARER_TOKEN"]
)


# Enter a context with an instance of the API client
with sharpe_api.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = sharpe_api.AccountApi(api_client)

    try:
        # API usage and quota
        api_response = api_instance.get_usage()
        print("The response of AccountApi->get_usage:\n")
        pprint(api_response)
    except ApiException as e:
        print("Exception when calling AccountApi->get_usage: %s\n" % e)

Documentation for API Endpoints

All URIs are relative to https://api.sharpe.ai

Class Method HTTP request Description
AccountApi get_usage GET /v1/usage API usage and quota
ArbitrageApi get_cross_exchange_arbitrage GET /v1/arbitrage/cross-exchange Cross-exchange arbitrage
ArbitrageApi get_spot_perp_arbitrage GET /v1/arbitrage/spot-perp Spot-perp arbitrage
CategoriesApi get_ecosystems_data GET /v1/ecosystems/data Ecosystems data
CategoriesApi get_memecoins_data GET /v1/memecoins/data Memecoins data
CategoriesApi get_narratives_data GET /v1/narratives/data Narratives data
DerivativesApi get_funding_rates GET /v1/funding/rates Funding rates
DerivativesApi get_futures_coins GET /v1/futures/coins Available futures coins
DerivativesApi get_futures_data GET /v1/futures/data Futures chart data
DerivativesApi get_options_data GET /v1/options/data Options chart data
ExchangeListingsApi get_listings_data GET /v1/listings/data Exchange listings hub data
ExchangeListingsApi get_listings_recent GET /v1/listings/recent Recent exchange listings
MarketDataApi get_correlation_matrix GET /v1/correlation/matrix Correlation matrix
MarketDataApi get_derivatives_overview GET /v1/market/derivatives-overview Market-wide derivatives overview
MarketDataApi get_gem_finder_data GET /v1/gem-finder/data Gem finder
MarketDataApi get_heatmap_data GET /v1/heatmap/data Market heatmap
MarketDataApi get_market_overview GET /v1/tracker/market-overview Market overview
MarketDataApi get_news_feed GET /v1/news/feed News feed
MarketDataApi get_price_prediction_data GET /v1/price-prediction/data Price prediction
MarketDataApi search_market_cap GET /v1/market-cap/search Market cap search
SystemApi get_coverage GET /v1/meta/coverage API data coverage
SystemApi get_health GET /v1/health Health check

Documentation For Models

Documentation For Authorization

Authentication schemes defined for the API:

BearerAuth

  • Type: Bearer authentication

ApiKeyAuth

  • Type: API key
  • API key parameter name: X-API-Key
  • Location: HTTP header

Author

support@sharpe.ai

Metadata

Release files for sharpe_api 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for sharpe_api 1.0.0
File Size Uploaded Provenance Actions
sharpe_api-1.0.0.tar.gz 45.0 kB Without provenance Details for sharpe_api-1.0.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for sharpe_api 1.0.0
File Interpreter ABI Platform Actions
sharpe_api-1.0.0-py3-none-any.whl Python 3 none any Details for sharpe_api-1.0.0-py3-none-any.whl

Total release size: 120.1 kB

Release files / sharpe_api-1.0.0.tar.gz

Download URL sharpe_api-1.0.0.tar.gz
Size 45.0 kB
Tags Source
SHA-256 checksum
How to use checksums
168b82567039b253bf91ee17aae3b9757a738306db5ccdfda2bf0481b9265568
BLAKE2b-256 checksum
How to use checksums
5c66441913715758b5578873ada0ea827510155ea0cf361e8cf4b4f1f9ff7f68
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.7 {"installer":{"name":"uv","version":"0.11.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / sharpe_api-1.0.0-py3-none-any.whl

Download URL sharpe_api-1.0.0-py3-none-any.whl
Size 75.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
bd50478a6d85387553fa935ebfc11b0d40edbba0b9809c90610ec753fb98fdfc
BLAKE2b-256 checksum
How to use checksums
12c855cddb65dfb08677dad9fc9d1ab5b132d05bb1df1fbea584501992d93bee
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.7 {"installer":{"name":"uv","version":"0.11.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Security for sharpe_api 1.0.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files No provenance

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