FTX: Add REST subaccount support (#653)

* FTX: Add REST API subaccount support

* Add API key check to GetSubaccounts

* Fix missing comment and expand to rest of the codebase

* Address glorious nits

* Address various nits

* Fix ZB typo

https://www.zb.com/api#hsptccieyyqomlp
This commit is contained in:
Adrian Gallagher
2021-03-29 16:06:30 +11:00
committed by GitHub
parent fe3d0e9ed1
commit 2855e68bac
16 changed files with 296 additions and 29 deletions

View File

@@ -436,7 +436,7 @@ func (z *ZB) Withdraw(currency, address, safepassword string, amount, fees float
vals.Set("fees", strconv.FormatFloat(fees, 'f', -1, 64))
vals.Set("itransfer", strconv.FormatBool(itransfer))
vals.Set("method", "withdraw")
vals.Set("recieveAddr", address)
vals.Set("receiveAddr", address)
vals.Set("safePwd", safepassword)
var resp response