Comments (17)
还真的是,ping了一下无法ping通,应该是我的网络问题。
还有一个,比特儿交易所,这个群里很大,期待下次看到支持这个!
from exchanges-php.
所有的交易所都出现这个问题,huobi,binance都一样呢!
from exchanges-php.
请求了huobi就返回这样的错误Array ( [_error] => Array ( [_message] => cURL error 7: Failed to connect to api.huobi.pro port 443: Timed out (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) [_httpcode] => 0 ) )
from exchanges-php.
你把代码 贴出来我看看, key secret 你保密做处理。
from exchanges-php.
Array ( [_error] => Array ( [_message] => cURL error 7: Failed to connect to api.binance.com port 443: Timed out (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) [_httpcode] => 0 ) )
from exchanges-php.
你的服务器是哪里的?国内 还是国外?
from exchanges-php.
我现在是本地访问,然后我传上服务器也是一样,服务器是国内的呢!
from exchanges-php.
你本地翻墙没? 上传的服务器也是国内的??? huobi okex binance 都需要翻墙
from exchanges-php.
https://bz.jmw333.com/index.php/index/binance
https://bz.jmw333.com/index.php/index/huobi
这个是服务器
from exchanges-php.
不需要呀,OK我直接使用官方文档都可以成功
from exchanges-php.
你配置 里面 有没有设置 host??
from exchanges-php.
你稍等一下 ,我国内服务器 测试一下
from exchanges-php.
你加我QQ:465382251 方便沟通
from exchanges-php.
本地开发测试,需要你开启翻墙并配置响应的proxy=true
$exchanges->setOptions([
//Set the request timeout to 60 seconds by default
'timeout'=>10,
//If you are developing locally and need an agent, you can set this
'proxy'=>true, //需要开启这个
]);
所有的交易所都是需要翻墙的。okex huobi 如果支持国内服务器,但是建议还是走国外服务器。因为API请求地址已经写死在代码里了。
你刚刚说的交易所是这个吧 https://www.gateio.la 我下来可以考虑接入进来。
最后就是 有什么问题 就issues哈
from exchanges-php.
是的,这个是比特儿https://www.gateio.la,后期期待加入这个。
我刚刚把源码放到德国服务器,就可以访问了。http://bz.yeshili.com.cn/index.php/index/binance
好的,谢谢!
from exchanges-php.
最后再给你一点意见。看你测试的方式是用的传统php-fpm方式,建议你用cli的模式,万一哪天你忘记删除代码了,可能会对你资产有安全问题。 比特儿我接下来会考虑加入它。
from exchanges-php.
from exchanges-php.
Related Issues (20)
- 可以增加bybit的接口么 HOT 2
- 常驻进程和WebApi服务化 HOT 2
- 请问几时会支持 Websocket 呢? HOT 2
- Adding exchanges HOT 2
- okex V5 的 websocket 能出一个相关的使用示例吗? HOT 3
- Exchange API里是不是缺少个key_secret.php? HOT 1
- 返回的订单id经过json后会科学计数化 HOT 1
- 添加 coinex 么? HOT 6
- Huobi Account ID HOT 1
- Any chance of adding ftx.com support? HOT 2
- Hello,does your team develop golang exchanges sdk,big old ? HOT 2
- How to extend binance user class for example with sub-account api calls? HOT 2
- 发现几个小的细节问题 HOT 3
- Auto loading does not comply with psr-4 HOT 1
- 请问能添加 ZT Global 吗? HOT 1
- 火币api接口{account_id}直接登录火币是无法获取id,需要请求接口获取那个获取呢,谢谢! HOT 2
- CREX24 API HOT 3
- FATBTC API HOT 1
- Do you have any plans to implement WebSocket HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from exchanges-php.