Loading ...

bitmex 403错误

Author: honeyligo, Created: 2018-12-12 21:38:28, Updated:

调用的demo的几个接口: var initAccount = _C(exchange.GetAccount); var ticker = exchange.GetTicker;

返回403错误,这个不像是bitmex返回的啊,被你们网关拒绝了?

Futures_BitMEX	错误	GetAccount: 403: <html> <head><title>403 Forbidden</title></head> <body bgcolor="white"> <center><h1>403 Forbidden</h1></center> </body> </html> <!-- a padding to disable MSIE and Chrome friendly error page --> <!-- a padding to disable MSIE and Chrome friendly error page --> <!-- a padding to disable MSIE and Chrome friendly error page --> <!-- a padding to disable MSIE and Chrome friendly error page --> <!-- a padding to disable MSIE and Chrome friendly error page --> <!-- a padding to disable MSIE and Chrome friendly error page -->

More

Zero 调试你用的公用行情,出错的是私有接口. 降低频率看下

honeyligo 就算vpn ip被ban, 我调试也选的本地docker和相同的vpn啊, 为什么又可以呢

honeyligo 调试模式又可以正常返回。。。 [{"Time":1544610240000,"Open":3408,"High":3408.5,"Low":3406.5,"Close":3406.5,"Volume":2286404},{"Time":1544610420000,"Open":3406.5,"High":3410.5,"Low":3405,"Close":3405,"Volume":5930170},{"Time":1544610600000,"Open":3405,"High":3410,"Low":3405,"Close":3409.5,"Volume":5853470},{"Time":1544610780000,"Open":3409.5,"High":3418.5,"Low":3408,"Close":3409.5,"Volume":10330065},{"Time":1544610960000,"Open":3409.5,"High":3412,"Low":3408,"Close":3409,"Volume":4115072},{"Time":1544611140000,"Open":3409,"High":3410,"Low":3408,"Close":3408,"Volume":1661513},{"Time":1544611320000,"Open":3408,"High":3408.5,"Low":3403.5,"Close":3403.5,"Volume":3952622},{"Time":1544611500000,"Open":3403.5,"High":3407.5,"Low":3403.5,"Close":3407.5,"Volume":2908478},{"Time":1544611680000,"Open":3407.5,"High":3410,"Low":3407.5,"Close":3410,"Volume":1874389},{"Time":1544611860000,"Open":3410,"High":3411,"Low":3409.5,"Close":3411,"Volume":1440708},{"Time":1544612040000,"Open":3411,"High":3411,"Low":3408,"Close":3410,"Volume":2279125},{"Time":1544612220000,"Open":3410,"High":3413,"Low":3409.5,"Close":3412.5,"Volume":1814316},{"Time":1544612400000,"Open":3412.5,"High":3427.5,"Low":3412.5,"Close":3419.5,"Volume":11935628},{"Time":1544612580000,"Open":3419.5,"High":3427,"Low":3419,"Close":3425,"Volume":7410874},{"Time":1544612760000,"Open":3425,"High":3440.5,"Low":3425,"Close":3432.5,"Volume":16496214},{"Time":1544612940000,"Open":3432.5,"High":3450,"Low":3426.5,"Close":3430,"Volume":22796061},{"Time":1544613120000,"Open":3430,"High":3432.5,"Low":3429,"Close":3431,"Volume":5542275},{"Time":1544613300000,"Open":3431,"High":3433,"Low":3428.5,"Close":3429,"Volume":4245279},{"Time":1544613480000,"Open":3429,"High":3430,"Low":3427.5,"Close":3429.5,"Volume":4353299},{"Time":1544613660000,"Open":3429.5,"High":3432,"Low":3429.5,"Close":3430,"Volume":1840906},{"Time":1544613840000,"Open":3430,"High":3430.5,"Low":3424.5,"Close":3425.5,"Volume":4348972},{"Time":1544614020000,"Open":3425.5,"High":3426,"Low":3423,"Close":3424,"Volume":2475152},{"Time":1544614200000,"Open":3424,"High":3427,"Low":3423.5,"Close":3426.5,"Volume":2322027},{"Time":1544614380000,"Open":3426.5,"High":3427,"Low":3425,"Close":3426,"Volume":1253584},{"Time":1544614560000,"Open":3426,"High":3430,"Low":3425.5,"Close":3429.5,"Volume":1721219},{"Time":1544614740000,"Open":3429.5,"High":3430,"Low":3428,"Close":3428,"Volume":2005159},{"Time":1544614920000,"Open":3428,"High":3430,"Low":3428,"Close":3430,"Volume":711187},{"Time":1544615100000,"Open":3430,"High":3430,"Low":3423.5,"Close":3426,"Volume":3229104},{"Time":1544615280000,"Open":3426,"High":3426,"Low":3422,"Close":3422,"Volume":1655354},{"Time":1544615460000,"Open":3422,"High":3422.5,"Low":3418.5,"Close":3420,"Volume":3659922},{"Time":1544615640000,"Open":3420,"High":3423,"Low":3419.5,"Close":3420,"Volume":3908855},{"Time":1544615820000,"Open":3420,"High":3421,"Low":3412,"Close":3412,"Volume":6039944},{"Time":1544616000000,"Open":3412,"High":3418,"Low":3412,"Close":3417.5,"Volume":4682769},{"Time":1544616180000,"Open":3417.5,"High":3418,"Low":3402.5,"Close":3406.5,"Volume":8075178},{"Time":1544616360000,"Open":3406.5,"High":3407,"Low":3404.5,"Close":3405,"Volume":5156308},{"Time":1544616540000,"Open":3405,"High":3406.5,"Low":3402,"Close":3406.5,"Volume":5829513},{"Time":1544616720000,"Open":3406.5,"High":3406.5,"Low":3406,"Close":3406.5,"Volume":1170590},{"Time":1544616900000,"Open":3406.5,"High":3406.5,"Low":3402.5,"Close":3404,"Volume":3432898},{"Time":1544617080000,"Open":3404,"High":3408.5,"Low":3403.5,"Close":3408,"Volume":3478778},{"Time":1544617260000,"Open":3408,"High":3408.5,"Low":3408,"Close":3408.5,"Volume":1261007},{"Time":1544617440000,"Open":3408.5,"High":3411,"Low":3408.5,"Close":3409,"Volume":3072973},{"Time":1544617620000,"Open":3409,"High":3409.5,"Low":3405,"Close":3406,"Volume":2179040},{"Time":1544617800000,"Open":3406,"High":3406.5,"Low":3400,"Close":3401,"Volume":6964387},{"Time":1544617980000,"Open":3401,"High":3407,"Low":3401,"Close":3407,"Volume":2600717},{"Time":1544618160000,"Open":3407,"High":3407,"Low":3405.5,"Close":3405.5,"Volume":1044126},{"Time":1544618340000,"Open":3405.5,"High":3406,"Low":3404,"Close":3406,"Volume":1769274},{"Time":1544618520000,"Open":3406,"High":3407,"Low":3405.5,"Close":3406.5,"Volume":1460531},{"Time":1544618700000,"Open":3406.5,"High":3409,"Low":3406.5,"Close":3408,"Volume":1188131},{"Time":1544618880000,"Open":3408,"High":3412,"Low":3407,"Close":3407.5,"Volume":2715730},{"Time":1544619060000,"Open":3407.5,"High":3407.5,"Low":3405.5,"Close":3405.5,"Volume":782475},{"Time":1544619240000,"Open":3405.5,"High":3406,"Low":3402,"Close":3402.5,"Volume":2330887},{"Time":1544619420000,"Open":3402.5,"High":3402.5,"Low":3392.5,"Close":3395.5,"Volume":9672574},{"Time":1544619600000,"Open":3395.5,"High":3398,"Low":3395,"Close":3395,"Volume":2037452},{"Time":1544619780000,"Open":3395,"High":3395,"Low":3392,"Close":3394,"Volume":3017373},{"Time":1544619960000,"Open":3394,"High":3395,"Low":3394,"Close":3394,"Volume":2230197},{"Time":1544620140000,"Open":3394,"High":3394,"Low":3391.5,"Close":3393.5,"Volume":2294366},{"Time":1544620320000,"Open":3393.5,"High":3393.5,"Low":3391.5,"Close":3391.5,"Volume":1590376},{"Time":1544620500000,"Open":3391.5,"High":3397,"Low":3391.5,"Close":3395.5,"Volume":2627932},{"Time":1544620680000,"Open":3395.5,"High":3398,"Low":3395.5,"Close":3397.5,"Volume":2161379},{"Time":1544620860000,"Open":3397.5,"High":3402.5,"Low":3397.5,"Close":3400,"Volume":2290654},{"Time":1544621040000,"Open":3400,"High":3402,"Low":3396,"Close":3396,"Volume":1801004},{"Time":1544621220000,"Open":3396,"High":3398.5,"Low":3396,"Close":3396.5,"Volume":1559835},{"Time":1544621400000,"Open":3396.5,"High":3399.5,"Low":3396.5,"Close":3399.5,"Volume":1015908},{"Time":1544621580000,"Open":3399.5,"High":3404.5,"Low":3399,"Close":3404.5,"Volume":1517698},{"Time":1544621760000,"Open":3404.5,"High":3404.5,"Low":3403,"Close":3404.5,"Volume":1557308},{"Time":1544621940000,"Open":3404.5,"High":3406.5,"Low":3404,"Close":3406,"Volume":1334629},{"Time":1544622120000,"Open":3406,"High":3408,"Low":3406,"Close":3407.5,"Volume":2037275},{"Time":1544622300000,"Open":3407.5,"High":3408,"Low":3405.5,"Close":3405.5,"Volume":1522537},{"Time":1544622480000,"Open":3405.5,"High":3406,"Low":3400,"Close":3400.5,"Volume":3015730},{"Time":1544622660000,"Open":3400.5,"High":3402.5,"Low":3400.5,"Close":3402.5,"Volume":1120775},{"Time":1544622840000,"Open":3402.5,"High":3404,"Low":3402.5,"Close":3403.5,"Volume":491985},{"Time":1544623020000,"Open":3403.5,"High":3404,"Low":3400,"Close":3401,"Volume":2153367},{"Time":1544623200000,"Open":3401,"High":3401.5,"Low":3400,"Close":3401.5,"Volume":1480468},{"Time":1544623380000,"Open":3401.5,"High":3403,"Low":3401,"Close":3403,"Volume":749864},{"Time":1544623560000,"Open":3403,"High":3406.5,"Low":3402.5,"Close":3406,"Volume":2210565},{"Time":1544623740000,"Open":3406,"High":3408,"Low":3406,"Close":3408,"Volume":1646307},{"Time":1544623920000,"Open":3408,"High":3418,"Low":3408,"Close":3417,"Volume":10014908},{"Time":1544624100000,"Open":3417,"High":3418,"Low":3412,"Close":3412,"Volume":4101696},{"Time":1544624280000,"Open":3412,"High":3418,"Low":3412,"Close":3417.5,"Volume":2816168},{"Time":1544624460000,"Open":3417.5,"High":3419.5,"Low":3416,"Close":3416,"Volume":3931316},{"Time":1544624640000,"Open":3416,"High":3418,"Low":3414,"Close":3414,"Volume":2903479},{"Time":1544624820000,"Open":3414,"High":3414.5,"Low":3411,"Close":3411,"Volume":1931792},{"Time":1544625000000,"Open":3411,"High":3413,"Low":3411,"Close":3412.5,"Volume":1011394},{"Time":1544625180000,"Open":3412.5,"High":3413,"Low":3412,"Close":3412.5,"Volume":719346},{"Time":1544625360000,"Open":3412.5,"High":3412.5,"Low":3411.5,"Close":3412,"Volume":1306726},{"Time":1544625540000,"Open":3412,"High":3412,"Low":3410.5,"Close":3410.5,"Volume":739501},{"Time":1544625720000,"Open":3410.5,"High":3411,"Low":3406,"Close":3406,"Volume":2514308},{"Time":1544625900000,"Open":3406,"High":3407.5,"Low":3406,"Close":3407,"Volume":826998},{"Time":1544626080000,"Open":3407,"High":3407.5,"Low":3404,"Close":3404,"Volume":1580595},{"Time":1544626260000,"Open":3404,"High":3404.5,"Low":3401.5,"Close":3401.5,"Volume":2359647},{"Time":1544626440000,"Open":3401.5,"High":3402,"Low":3400,"Close":3400,"Volume":2066510},{"Time":1544626620000,"Open":3400,"High":3400.5,"Low":3392,"Close":3393.5,"Volume":5350590},{"Time":1544626800000,"Open":3393.5,"High":3394,"Low":3381.5,"Close":3391,"Volume":12678486},{"Time":1544626980000,"Open":3391,"High":3395.5,"Low":3388.5,"Close":3395.5,"Volume":6025540},{"Time":1544627160000,"Open":3395.5,"High":3395.5,"Low":3389.5,"Close":3389.5,"Volume":3633268},{"Time":1544627340000,"Open":3389.5,"High":3391.5,"Low":3389,"Close":3389,"Volume":1834853},{"Time":1544627520000,"Open":3389,"High":3396,"Low":3389,"Close":3396,"Volume":2255055},{"Time":1544627700000,"Open":3396,"High":3396,"Low":3393,"Close":3393.5,"Volume":1442741},{"Time":1544627880000,"Open":3393.5,"High":3393.5,"Low":3390,"Close":3390,"Volume":1761376},{"Time":1544628060000,"Open":3390,"High":3390.5,"Low":3387.5,"Close":3387.5,"Volume":2017399},{"Time":1544628240000,"Open":3387.5,"High":3419,"Low":3387.5,"Close":3416.5,"Volume":16124686},{"Time":1544628420000,"Open":3416.5,"High":3417,"Low":3411.5,"Close":3414.5,"Volume":2365806}]

honeyligo Futures_BitMEX 错误 GetAccount: 403: <html> <head><title>403 Forbidden</title></head> <body bgcolor="white"> <center><h1>403 Forbidden</h1></center> </body> </html> <!-- a padding to disable MSIE and Chrome friendly error page --> <!-- a padding to disable MSIE and Chrome friendly error page --> <!-- a padding to disable MSIE and Chrome friendly error page --> <!-- a padding to disable MSIE and Chrome friendly error page --> <!-- a padding to disable MSIE and Chrome friendly error page --> <!-- a padding to disable MSIE and Chrome friendly error page --> 2018-12-12 22:53:45 Futures_BitMEX 错误 GetAccount: 403: <html> <head><title>403 Forbidden</title></head> <body bgcolor="white"> <center><h1>403 Forbidden</h1></center> </body> </html> <!-- a padding to disable MSIE and Chrome friendly error page --> <!-- a padding to disable MSIE and Chrome friendly error page --> <!-- a padding to disable MSIE and Chrome friendly error page --> <!-- a padding to disable MSIE and Chrome friendly error page --> <!-- a padding to disable MSIE and Chrome friendly error page --> <!-- a padding to disable MSIE and Chrome friendly error page --> 2018-12-12 22:53:44 信息 started 2018-12-12 22:53:44 重启 2018-12-12 22:50:59 Futures_BitMEX 错误 Futures_OP 0: 403: {"error":{"message":"Access Denied","name":"HTTPError"}} 2018-12-12 22:50:54 Futures_BitMEX 错误 Futures_OP 0: 403: {"error":{"message":"Access Denied","name":"HTTPError"}}

小小梦 OK

honeyligo 调试模式是指我们调试工具那个。原因找到了, 创建api key的地方没有选择 下单权限

小小梦 估计 你账户已经被 BITMEX 标记为 无效(垃圾)账户了,给BITMEX 发邮件 解锁一下。 访问 频率 不能太高,访问 BITMEX 建议 不要用 公共服务器托管者。

小小梦 调试 模式 是 test.BitMex.com 这个 ?

honeyligo 已经是2秒左右的频率了

honeyligo 另外我换了一个账号试了也一样Access Denied,换一个vpn ip也一样,我快疯了

honeyligo 但是调试模式可以请求,而且浏览器也能正常登陆进去,这个怎么解决呢

小小梦 Forbidden 关键词, 交易所 拒绝了。这个 估计直接和 账号关联了。