Git Product home page Git Product logo

Comments (17)

yeshili avatar yeshili commented on August 13, 2024 1

还真的是,ping了一下无法ping通,应该是我的网络问题。

还有一个,比特儿交易所,这个群里很大,期待下次看到支持这个!

from exchanges-php.

yeshili avatar yeshili commented on August 13, 2024

所有的交易所都出现这个问题,huobi,binance都一样呢!

from exchanges-php.

yeshili avatar yeshili commented on August 13, 2024

请求了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.

zhouaini528 avatar zhouaini528 commented on August 13, 2024

你把代码 贴出来我看看, key secret 你保密做处理。

from exchanges-php.

yeshili avatar yeshili commented on August 13, 2024

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.

zhouaini528 avatar zhouaini528 commented on August 13, 2024

你的服务器是哪里的?国内 还是国外?

from exchanges-php.

yeshili avatar yeshili commented on August 13, 2024

我现在是本地访问,然后我传上服务器也是一样,服务器是国内的呢!

from exchanges-php.

zhouaini528 avatar zhouaini528 commented on August 13, 2024

你本地翻墙没? 上传的服务器也是国内的??? huobi okex binance 都需要翻墙

from exchanges-php.

yeshili avatar yeshili commented on August 13, 2024

https://bz.jmw333.com/index.php/index/binance
https://bz.jmw333.com/index.php/index/huobi
这个是服务器

from exchanges-php.

yeshili avatar yeshili commented on August 13, 2024

不需要呀,OK我直接使用官方文档都可以成功

from exchanges-php.

zhouaini528 avatar zhouaini528 commented on August 13, 2024

你配置 里面 有没有设置 host??

from exchanges-php.

zhouaini528 avatar zhouaini528 commented on August 13, 2024

你稍等一下 ,我国内服务器 测试一下

from exchanges-php.

zhouaini528 avatar zhouaini528 commented on August 13, 2024

你加我QQ:465382251 方便沟通

from exchanges-php.

zhouaini528 avatar zhouaini528 commented on August 13, 2024

本地开发测试,需要你开启翻墙并配置响应的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.

yeshili avatar yeshili commented on August 13, 2024

是的,这个是比特儿https://www.gateio.la,后期期待加入这个。
我刚刚把源码放到德国服务器,就可以访问了。http://bz.yeshili.com.cn/index.php/index/binance

好的,谢谢!

from exchanges-php.

zhouaini528 avatar zhouaini528 commented on August 13, 2024

最后再给你一点意见。看你测试的方式是用的传统php-fpm方式,建议你用cli的模式,万一哪天你忘记删除代码了,可能会对你资产有安全问题。 比特儿我接下来会考虑加入它。

from exchanges-php.

yeshili avatar yeshili commented on August 13, 2024

from exchanges-php.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.