ramzinex / php
用于Ramzinex API的PHP封装
v1.1.1
2022-09-18 14:25 UTC
Requires
- php: >=5.4.0
- ext-curl: *
- ext-json: *
This package is not auto-updated.
Last update: 2024-09-30 23:51:00 UTC
README
Ramzinex API文档
安装
首先,您需要在Ramzinex交易所注册账户,请访问Ramzinex
之后,您只需要选择您的令牌
使用以下方式
composer require ramzinex/php
或添加
"ramzinex/php": "*"
到您的composer.json文件,然后运行
$ composer update
用法
这里有一个示例
require __DIR__ . '/vendor/autoload.php'; $ramzinex_api = new \ramzinex\RamzinexApi('your authentication token',['Authorization2: Bearer Your-Token','x-api-key: YOUR_API_KEY','additional_header : ....']); $price =$ramzinex_api->getPrice(272); if($price['http_code'] == 200){ return $price; } /* output [ "http_code" => 200 "result" => [ "status" => 0 "data" => array:20 [ "sell" => 433000 "buy" => 380008 "pair_id" => 272 "icon" => "/exchange/img/coins/toncoin.png" "web_link" => "https://ramzinex.com/exchange/orderbook/272" "base_precision" => 2 "quote_precision" => 0 "base_currency_id" => 166 "base_currency_symbol" => [] "quote_currency_id" => 2 "quote_currency_symbol" =>[] "price_step" => 433 "amount_step" => 2.3 "show_order" => 1000 "url_name" => "toncoin-ton" "crypto_box" => 0 "price_precision" => null ] ] ] */
指南
创建账户
如果您还不是Ramzinex的成员,可以点击会员注册链接注册。
文档
要阅读Ramzinex的完整文档,请访问Ramzinex文档页面。