wangta69/coin_exchange_api

Coin Exchange Api Service

1.1.0.4 2020-10-30 05:07 UTC

This package is auto-updated.

Last update: 2024-10-29 05:10:42 UTC


README

Installation

composer require wangta69/coin_exchange_api

composer require "wangta69/coin_exchange_api @dev"

Step 1) Add ServiceProvider to the providers array in config/app.php.

Wangta69\CoinExchange\CoinExchangeServiceProvider::class,

How To Use

[ BITHUMB ]

Public

use Wangta69\CoinExchange\BithumbApiService;

$api = new BithumbApiService();
$result = $api->publicApi('POST', $uri);

Private

use Wangta69\CoinExchange\BithumbApiService;

$api_url = '/info/user_transactions';
$connect_key = 'xxxxxx';
$secret_key = 'xxxxxxxx';
$reqParams = ['currency' => 'XRP', 'searchGb' => '0'];

$api = new BithumbApiService();
$api->set_private($api_key, $api_secret);
$result = $api->privateApiCall($api_url, $reqParams);

[ COINONE ]

Public

use Wangta69\CoinExchange\CoinoneApiService;

$api = new CoinoneApiService();
$result = $api->publicApi('POST', $uri);

Private

use Wangta69\CoinExchange\CoinoneApiService;


$api = new CoinoneApiService();
$api->set_private($api_key, $api_secret);
$result = $api->privateApiCall($api_url, $reqParams);

[ KORBIT ]

Public

use Wangta69\CoinExchange\KorbitApiService;;

$api = new KorbitApiService();
$result = $api->publicApi('GET', $uri);

[ UPBIT ]

  • COINRAIL API DOCUMENT : None

Public

use Wangta69\CoinExchange\UpbitApiService;;

$api = new UpbitApiService();
$result = $api->publicApi('GET', $uri);

[ COINNEST ]

Public

use Wangta69\CoinExchange\CoinnestApiService;
----
$uri = '/api/pub/ticker?coin=btc';
$api = new CoinnestApiService();
$result = $api->publicApi('GET', $uri);

Private

use Wangta69\CoinExchange\CoinnestApiService;

$api = new CoinnestApiService();
$api->set_private($api_key, $api_secret);
$result = $api->privateApiCall($api_url, $reqParams);

[ COINRAIL ]

Public

use Wangta69\CoinExchange\CoinrailApiService;

$api = new CoinrailApiService();
$result = $api->publicApi('GET', $uri);

Private

use Wangta69\CoinExchange\CoinrailApiService;

$api = new CoinrailApiService();
$api->set_private($api_key, $api_secret);
$result = $api->privateApiCall($api_url, $reqParams);

[ COINCHECK ]

  • COINRAIL API DOCUMENT : NONE

Public

use Wangta69\CoinExchange\CoincheckApiService;;

$api = new CoincheckApiService();
$result = $api->publicApi('GET', $uri);

[ HUOBIPRO ]

Public

use Wangta69\CoinExchange\HuobiproApiService;;

$api = new HuobiproApiService();
$result = $api->publicApi('GET', $uri);