0

我正在为 Gemini 使用 Python 私人客户端——https: //github.com/mtusman/gemini-python。我这样下限价单...

order=private_client.new_order(symbol=formatted_name,
                          side=order_type,
                          price=str(fiat_price),
                          amount=str(amount)
                        )

这将返回一个带有“Id”键的哈希,我以后可以使用它来查询订单的状态......

status = private_client.status_of_order(order_id=check)

它返回一个如下所示的哈希

{'order_id': '1277897568', 'id': '1277897568', 'symbol': 'ethusd', 'exchange': 'gemini', 'avg_execution_price': '4347.51', 'side': 'buy', 'type': 'exchange limit', 'timestamp': '1638845825', 'timestampms': 1638845825850, 'is_live': False, 'is_cancelled': False, 'is_hidden': False, 'was_forced': False, 'executed_amount': '0.23', 'options': ['immediate-or-cancel'], 'price': '4347.51', 'original_amount': '0.23', 'remaining_amount': '0'}

我怎样才能知道我为完成的交易收取了哪些费用?我似乎无法从上面的状态中弄清楚,但我也没有看到可以提供此信息的 API 调用。

4

0 回答 0