{"repo":"tigusigalpa/okx-php","free":true,"listed":false,"github":"https://github.com/tigusigalpa/okx-php","clone":"git clone https://github.com/tigusigalpa/okx-php.git","description":"PHP SDK for the OKX cryptocurrency exchange v5 API. Covers all 335 REST endpoints and 53 WebSocket channels. Supports HMAC-SHA256 signing, typed DTOs, demo trading mode, and auto-reconnecting WebSocket client. Ships with a Laravel Service Provider and Facade for Laravel 11+, but works standalone with any PHP 8.2+ project","language":"PHP","stars":16,"topics":["bitcoin","crypto-exchange-platform","cryptocurrency","laravel","near-protocol","nearprotocol","okx","okx-api","okx-wallet","php"],"license":"MIT","category":"blockchain-web3","readme_excerpt":"OKX PHP SDK PHP client for the OKX v5 API. Covers the entire REST API (335 endpoints, 16 categories) and WebSocket API (53 channels). Works standalone or plugs into Laravel 11/12/13 via a Service Provider. Go version: tigusigalpa/okx-go Wiki What's inside - 335 REST endpoints grouped into service classes ( account() , trade() , market() , etc.) - WebSocket client with auto-reconnect and ping/pong heartbeat - HMAC-SHA256 request signing - Demo trading mode (just flip a flag) - Typed DTOs for requests and responses; all prices/amounts stay as string to avoid float rounding - Laravel Service Provider, Facade, publishable config - PSR-3 logging, PSR-12 code style - PHP 8.2+ ( readonly classes, named arguments) Requirements - PHP 8.2+ - Composer - Laravel 11, 12 or 13 (optional) Installation Laravel setup Publish the config: Add credentials to .env : Then use the facade: Standalone usage Configuration Option Env variable Default -------------- ------------------ ----------------------- ------------------------------ api key OKX API KEY '' API key secret key OKX SECRET KEY '' Secret key passphrase OKX PASSPHRASE '' Passphrase demo OKX DEMO false Use demo trading environment base url OKX BASE URL https://www.okx.com Base URL REST API coverage 335 endpoints across 16 categories: Category # Docs ---------------- ---- ----------------------------------------------------------------------------------------- Account 53 Trading Account Trade 32 Order Book Trading Market 24 Market Data Pub","default_branch":null,"files":null,"tree":[],"storefront":"/r/tigusigalpa","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/tigusigalpa/okx-php/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}