简体   繁体   English

GDAX沙箱的状态?

[英]Status of GDAX Sandbox?

In the gdax-java library there's a note that the sandbox was shutdown. 在gdax-java库中,有一个注释说明沙箱已关闭。 The GDAX API still mentions it, though, so I tried it and can get lists of orders, make a web socket connection, etc. GDAX API仍然提到了它,所以我尝试了它,并且可以获取订单列表,建立Web套接字连接等。

However, trying to place an order on the sandbox simply returns {"message":"forbidden"} 但是,尝试在沙盒上下订单只会返回{“ message”:“ forbidden”}

Does anyone know the current status of the sandbox? 有人知道沙箱的当前状态吗? Should I be able to place orders on it? 我应该可以下订单吗?

GDAX Sandbox appears to be up. GDAX沙箱似乎已启动。

Submitted order moments ago: 之前提交的订单:

def test3():
buy = auth_client.buy(price=10500,size=1,product_id='BTC-USD')
print(buy)

Received this output of buy: 收到以下购买结果:

{'type': 'limit', 'stp': 'dc', 'size': '1.00000000', 'filled_size': '0.00000000', 'executed_value': '0.0000000000000000', 'status': 'pending', 'settled': False, 'post_only': False, 'price': '10500.00000000', 'fill_fees': '0.0000000000000000', 'side': 'buy', 'id': 'removed the order id', 'product_id': 'BTC-USD', 'created_at': '2018-03-02T07:36:04.297056Z', 'time_in_force': 'GTC'} {'type':'limit','stp':'dc','size':'1.00000000','filled_size':'0.00000000','executed_value':'0.0000000000000000','status':'pending','已结算':False,'post_only':False,'price':'10500.00000000','fill_fees':'0.0000000000000000','side':'buy','id':'已删除订单ID','product_id': 'BTC-USD','created_at':'2018-03-02T07:36:04.297056Z','time_in_force':'GTC'}

Ensure you are using currency pairing BTC/USD as I did above. 确保您像上面一样使用BTC / USD货币配对。 It will work. 它会工作。

Also, make sure your API is allowed to "Trade." 另外,请确保您的API被允许进行“交易”。 In the past, I had API's built that were only in the view type. 过去,我仅在视图类型中构建了API。 This would forbid you from Trading using the API. 这将禁止您使用API​​进行交易。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM