gateio / gateapi-python

247 stars 92 forks source link

How to determine the real withdrawn amount for a withdrawal #58

Closed Programmierus closed 3 years ago

Programmierus commented 3 years ago

I don't see any way to determine the real withdrawn amount for a (submitted) withdrawal after the withdrawal fee has been applied.

Nor it is possible to determine the withdrawal fee, because list_withdraw_status() method returns only one record per token and in multi-chain case fees differ from chain to chain. Hard-coding a fixed fee isn't an option either since they change on an hourly basis.

Please advise.

revilwang commented 3 years ago

I'll report this issue back to the server implementation.

revilwang commented 3 years ago

We've add a new withdraw_fix_on_chains dict returned which contains all fees on multiple chains.

pip install --upgrade gate-api==4.21.5 to use the new field

Programmierus commented 3 years ago

Thank you for the update. Will try and report!

Programmierus commented 3 years ago

Works