zhouaini528 / exchanges-php Goto Github PK
View Code? Open in Web Editor NEWThis is a virtual currency SDK that brings together multiple exchanges
License: MIT License
This is a virtual currency SDK that brings together multiple exchanges
License: MIT License
有没有考虑过利用easyswoole的自定义进程+定时器,还有协程。实现常驻内存化的自动化交易管理服务。https://github.com/easy-swoole/easyswoole
Any chance to see DYDX support?
我是初学,有个疑问。
我尝试在看exchange api,发现里面有文件引用key_secret.php。但是代码包里没有这个文件。请问是需要自己建立么?内容都写什么呢?
谢谢!
How do this work with Exchanges class?
have you a little code snip for request "GET /sapi/v1/sub-account/list (HMAC SHA256)" for me?
my code until now:
`use Lin\Exchange\Exchanges;
try {
$tmp_arr = array();
if (isset($cfg_main_arr['msa_api']['binance']['key_ro'])) {
$tmp_arr = $cfg_main_arr['msa_api']['binance']['key_ro'];
}
if (empty($tmp_arr)) {
die('config.json error: binance api key "key_ro" not exists!');
}
$ex_binance = new Exchanges('binance', $tmp_arr['APIKEY'], $tmp_arr['APISECRET']);
$result = $ex_binance->getPlatform('spot')
->user()
->getAccount();
print_r($result);
} catch (Exception $e) {
// error mail senden!!!
echo $e;
}`
hi,please add bingx websocket
Class Lin\Coinbase\Api\Coinbase\Account located in ...\Coinbase\Account.php does not comply with psr-4 autoloading standard. Skipping.ng.
Array ( [_error] => Array ( [_message] => cURL error 7: Failed to connect to www.okex.com port 443: Timed out (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) [_httpcode] => 0 ) )
谢谢
如题,谢谢。
Please, add API for www.fatbtc.com Exchange.
https://github.com/fatbtc
两个小请求
1,目前okex websocket 只有 v3 的封装,如果可以能否封装一下v5的谢谢
2,目前用工厂获取的是 v3的实例,可以适配一下 v5 的
可以类似这样 $exchanges = new Exchanges('okexV5');
这个目前使用起来问题不大,我目前是这样使用的 new \Lin\Okex\OkexV5
主要是第一个,谢谢!
Please, add API for crex24.com Exchange.
https://docs.crex24.com/trade-api/v2/
Just like the issue I asked, if it is true, please la me yi xia,OK ?^_^
FTX.com is a decent exchange with relatively good volume. Any chance support for it could be added? Thank you.
Do you have any plans to implement WebSocket connection to exchanges? If yes, then when? Most interested in Binance. Thanks!
Hi, maybe you could add Poloniex exchange? Do you think about adding uniswap/pancakeswap?
function buy()
> 115 $map['sz']=$data['_price'] ?? 0; => $map['sz']=$data['_number'] ?? 0;
> 118 switch ($this->platform){ => switch ($this->checkType($map['instId'])) {
> 129 if(!$data['_entry']) $map['side']='sell'; => if(!$data['_entry']) $map['posSide']='short';
中文API地址 https://zt-global.github.io/ztapi/cn/
主站 https://www.ztb.im/
我看了下行情 好像和抹茶(MXC)的默认差不多
Hi! Thank you for the great work. When trying to post a sample trade with Huobi I get an error. I first get the Account ID using the $result=$huobi->account()->get(); method. I set this ID in the key_secret.php and then require the key_secret.php in my script.
use Lin\Exchange\Exchanges;
require 'exchanges/vendor/linwj/exchanges/tests/key_secret.php';
$key=$keysecret['huobi']['key'];
$secret=$keysecret['huobi']['secret'];
$host=$keysecret['huobi']['host'];
$account_id=$keysecret['huobi']['account_id'];
$exchanges=new Exchanges('huobi',$key,$secret,$account_id,$host);
I then get the following error:
"Array ( [_error] => Array ( [status] => error [err-code] => account-frozen-account-inexistent-error [err-msg] => account for id 1#,###,##6
and user id 1#,###,#9
does not exist [data] => [_method] => POST [_url] => https://api.huobi.pro/v1/order/orders/place [_httpcode] => 200 ) ) "
Thank you for the help.
咨询火币客服都没法解决,我也晕死,好像看手册可以请求account/accounts获取,但是exchanges里面好像没有封装这个接口呢,如果没有,完善一下这一步,谢谢!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.