我正在为Gemini使用private - 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调用来提供这些信息。
发布于 2022-06-21 16:37:33
https://docs.gemini.com/rest-api/#get-trade-volume;,这可能会有帮助。
否则,您可能可以实现一个函数,根据交易金额计算您的费用*与您的交易量相对应的费用,在这里列出的费用如下:https://www.gemini.com/fees/api-fee-schedule#section-api-fee-schedule
https://stackoverflow.com/questions/70267374
复制相似问题