gmo-coin/gmo-coin-php-sdk

Laravel service provider wrapper for GMO Coin FX API

dev-main 2025-06-18 07:57 UTC

This package is auto-updated.

Last update: 2025-06-18 08:04:12 UTC


README

Laravel wrapper for the GMO Coin FX API.

Installation

Add the package using composer:

composer require gmo-coin/gmo-coin-php-sdk

Publish the configuration file:

php artisan vendor:publish --tag=config

Set your credentials in .env:

GMO_COIN_API_KEY=your_key
GMO_COIN_API_SECRET=your_secret

Usage

Use the GmoCoin facade to call API endpoints.

use GmoCoin\Facades\GmoCoin;

$response = GmoCoin::getStatus();
$ticker   = GmoCoin::getTicker();
$klines   = GmoCoin::getKlines('USD_JPY', 'ASK', '1min', '20231028');
$books    = GmoCoin::getOrderBooks('USD_JPY');
$assets   = GmoCoin::getAssets();

The client automatically signs requests when API keys are configured.