Install

Install using composer

composer require stilmark/nexo-pro-php

Set your API KEY and API SECRET in the .env file.

.env
NEXOPRO_API_URL=pro-api.prime-nexo.net
NEXOPRO_API_VERSION=v1
NEXOPRO_API_KEY=[YOUR_API_KEY]
NEXOPRO_API_SECRET=[YOUR_API_SECRET]

Basic usage

require('/vendor/autoload.php');

use Symfony\Component\Dotenv\Dotenv;
use Stilmark\Parse\Dump;
use Stilmark\Crypto\NexoPro;

$dotenv = new Dotenv();
$dotenv->load(ROOT.'/.env');

$balances = NexoPro::getAccountSummary();
echo Dump::json($balances);

Last updated