bitfinexcom / bitfinex-api-go

BITFINEX Go trading API - Bitcoin, Litecoin, and Ether exchange
https://www.bitfinex.com/
MIT License
303 stars 222 forks source link

v2: DepositAddress and CreateDepositAddress do not work #202

Closed andreygrehov closed 4 years ago

andreygrehov commented 4 years ago

Issue type

Brief description

NotifyInfo is nil

Steps to reproduce

package main

import (
    "fmt"

    "github.com/bitfinexcom/bitfinex-api-go/v2/rest"
)

func main() {
    key := "<KEY>"
    secret := "<SECRET>"
    r := rest.NewClient().Credentials(key, secret)
    n, err := r.Wallet.DepositAddress("exchange", "bitcoin")
    if err != nil {
        panic(err)
    }
    fmt.Println(n.NotifyInfo)
}
JacobPlaster commented 4 years ago

Nice spot @andreygrehov - fixed in https://github.com/bitfinexcom/bitfinex-api-go/pull/203 please review when you get the chance

andreygrehov commented 4 years ago

Resolved. Thank you, Jacob.