我正在尝试使用 MtGox gem 取消订单,但是,我只收到以下错误消息:
{"error":"Must be logged in"}
我正在使用以下代码拨打电话:
MtGox.configure {|c| c.key = user.mtgox_key; c.secret = user.mtgox_secret}
MtGox.cancel('oid'=>'a3c348d9-36c3-4927-b84d-206f421907f5', 'type'=>1)
我还尝试使用以下方法获取特定用户的所有未结订单:
MtGox.post('/api/0/getOrders.php', {})
唉,每次调用都会返回相同的错误消息。我错过了什么吗?