Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/linux/24.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
OKEX撤消错误10006 OS:CentOS 编程语言版本:PHP5.6.35 CCXT版本:1.13.49 交易所:OKEX 方法:提取_Php_Linux_Bitcoin_Cryptocurrency - Fatal编程技术网

OKEX撤消错误10006 OS:CentOS 编程语言版本:PHP5.6.35 CCXT版本:1.13.49 交易所:OKEX 方法:提取

OKEX撤消错误10006 OS:CentOS 编程语言版本:PHP5.6.35 CCXT版本:1.13.49 交易所:OKEX 方法:提取,php,linux,bitcoin,cryptocurrency,Php,Linux,Bitcoin,Cryptocurrency,我在尝试取款时从OKEX API收到错误代码10006。还有其他人有这个问题吗 其他方法,如下订单、检查余额等,在使用完全相同的API密钥和密码时也可以正常工作。撤销信息也会给出错误10006 我已经检查并撤销了OKEX帐户中API密钥的权限 我还联系了OKEX客户支持,他们告诉我将取款符号从btc_usd改为btc_usdt,然后从btc_usdt改回btc_usd,持续几天 如果有人有同样的问题,请告诉我。事先非常感谢 以下是来自CCXT的转储: strong textFatal error

我在尝试取款时从OKEX API收到错误代码10006。还有其他人有这个问题吗

其他方法,如下订单、检查余额等,在使用完全相同的API密钥和密码时也可以正常工作。撤销信息也会给出错误10006

我已经检查并撤销了OKEX帐户中API密钥的权限

我还联系了OKEX客户支持,他们告诉我将取款符号从btc_usd改为btc_usdt,然后从btc_usdt改回btc_usd,持续几天

如果有人有同样的问题,请告诉我。事先非常感谢

以下是来自CCXT的转储:

strong textFatal error: Uncaught exception 'ccxt\ExchangeError' with message 'okex {"result":false,"error_code":10006}' in /home/php/okcoinusd.php:721
Stack trace:
#0 /home/php/Exchange.php(957): ccxt\okcoinusd->handle_errors(200, '', 'https://www.oke...', 'POST', Array, '{"result":false...')
#1 /home/php/Exchange.php(801): ccxt\Exchange->fetch('https://www.oke...', 'POST', Array, 'api_key=cff1b19...')
#2 /home/php/Exchange.php(805): ccxt\Exchange->fetch2('withdraw', 'private', 'POST', Array, NULL, NULL)
#3 [internal function]: ccxt\Exchange->request('withdraw', 'private', 'POST', Array)
#4 /home/php/Exchange.php(740): call_user_func(Array, 'withdraw', 'private', 'POST', Array)
#5 [internal function]: ccxt\Exchange->ccxt{closure}(Array)
#6 /home/php/Exchange.php(1752): call_user_func_array(Object(Closure), Array)
#7 /home/php/okcoinusd.php(678): ccxt\Exchange->__call('privatePostWith...', Array)
#8 /home/p in /home/php/okcoinusd.php on line 721

OKEX API需要一个
trade\u pwd
(您的交易密码)用于融资和下单,因此,当您在PHP中用双引号编写它时:

echo "23\5$foo"; // prints "23"
↑ 然后您会注意到输出中缺少一些符号。 因此,不要在PHP中使用双引号编写密码,请使用单引号:

echo '23\5$foo'; // outputs "23\5$foo"

对于JSON文件中的密码,上述内容也部分正确。斜杠和反斜杠符号(
/
\
)在涉及密码和路径时经常与双引号冲突。这可能是OKEX撤销身份验证错误
{“result”:false,“error_code”:10006}

的原因,因为堆栈溢出对您隐藏了关闭原因:寻求调试帮助的问题(“此代码为什么不工作?”)必须包括所需的行为,一个特定的问题或错误,以及在问题本身中重现它所需的最短代码。没有明确问题陈述的问题对其他读者没有用处。请参阅:。