Download the PHP package cryptohopper/sdk without Composer

On this page you can find all versions of the php package cryptohopper/sdk. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package sdk

Cryptohopper PHP SDK

Packagist Packagist downloads CI

Official PHP SDK for the Cryptohopper API — synchronous client, typed exceptions, auto-retry on 429, full coverage of all 18 public API domains.

Deeper docs: Rate Limits

Requirements

Install

Quick start

Authentication

Every request (except endpoints explicitly marked security: [] in the OpenAPI spec) requires a bearer token, which you issue through the Cryptohopper developer dashboard.

The optional appKey attaches your OAuth client_id to every request so Cryptohopper can attribute per-app rate limits.

Configuration

Pass maxRetries: 0 to opt out of the automatic 429 backoff.

Resources

Resource Example call
$client->user $client->user->get()
$client->hoppers $client->hoppers->list()
$client->exchange $client->exchange->ticker(exchange: 'binance', market: 'BTC/USDT')
$client->strategy $client->strategy->list()
$client->backtest $client->backtest->create($data)
$client->market $client->market->signals()
$client->signals $client->signals->chartData()
$client->arbitrage $client->arbitrage->history()
$client->marketmaker $client->marketmaker->get()
$client->template $client->template->list()
$client->ai $client->ai->availableModels()
$client->platform $client->platform->countries()
$client->chart $client->chart->list()
$client->subscription $client->subscription->plans()
$client->social $client->social->getFeed()
$client->tournaments $client->tournaments->active()
$client->webhooks $client->webhooks->create($data)
$client->app $client->app->receipt($data)

Errors

Every non-2xx response (and every network/timeout failure) raises Cryptohopper\Sdk\Exceptions\CryptohopperException:

Error codes are stable across every official Cryptohopper SDK (Node, Python, Go, Ruby, Rust, PHP).

Rate limits

On HTTP 429 the client sleeps for Retry-After seconds (or an exponential-backoff fallback) and retries up to maxRetries times. The final failure — whether retries were exhausted or maxRetries was zero — surfaces as CryptohopperException with code = RATE_LIMITED and retryAfterMs populated.

Versioning

Semantic versioning. While on 0.x, minor releases can ship breaking changes — we call them out in versioning policy for the full SDK-wide policy.

Official SDKs and CLI

Language Install Repository
Node.js / TypeScript npm i @cryptohopper/sdk cryptohopper-node-sdk
Python pip install cryptohopper cryptohopper-python-sdk
Go go get github.com/cryptohopper/cryptohopper-go-sdk cryptohopper-go-sdk
Ruby gem install cryptohopper --pre cryptohopper-ruby-sdk
Rust cargo add cryptohopper cryptohopper-rust-sdk
PHP composer require cryptohopper/sdk cryptohopper-php-sdk
CLI npm i -g @cryptohopper/cli or binaries cryptohopper-cli

License

MIT — see LICENSE.


All versions of sdk with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
ext-json Version *
guzzlehttp/guzzle Version ^7.8
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package cryptohopper/sdk contains the following files

Loading the files please wait ...