<?php

require_once __DIR__.'/../vendor/autoload.php';

/*
 * Binance Spot REST API
 * OpenAPI Specifications for the Binance Spot REST API  API documents:   - [Github rest-api documentation file](https://github.com/binance/binance-spot-api-docs/blob/master/rest-api.md)   - [General API information for rest-api on website](https://developers.binance.com/docs/binance-spot-api-docs/rest-api/general-api-information)
 *
 * The version of the OpenAPI document: 1.0.0
 *
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */
use Binance\Client\Mining\Api\MiningRestApi;
use Binance\Client\Mining\MiningRestApiUtil;
use Binance\Client\Mining\Model\CancelHashrateResaleConfigurationRequest;

function cancelHashrateResaleConfigurationExample()
{
    $configurationBuilder = MiningRestApiUtil::getConfigurationBuilder();
    $configurationBuilder->apiKey('apiKey')->privateKey('file:///path/to/private.key');
    $api = new MiningRestApi($configurationBuilder->build());
    $cancelHashrateResaleConfigurationRequest = new CancelHashrateResaleConfigurationRequest();
    $cancelHashrateResaleConfigurationRequest->setConfigId(1);
    $cancelHashrateResaleConfigurationRequest->setUserName('');
    $response = $api->cancelHashrateResaleConfiguration($cancelHashrateResaleConfigurationRequest);
    print_r($response);
}

cancelHashrateResaleConfigurationExample();
