ANX fix typo

This commit is contained in:
Adrian Gallagher
2018-01-28 20:29:11 +11:00
parent 292d150595
commit 53b80f8bd4

View File

@@ -26,7 +26,7 @@ const (
ANX_RECEIVE_ADDRESS = "receive"
ANX_CREATE_ADDRESS = "receive/create"
ANX_TICKER = "money/ticker"
ANX_DEPTH = "money/depth"
ANX_DEPTH = "money/depth/full"
)
type ANX struct {
@@ -93,7 +93,7 @@ func (a *ANX) GetTicker(currency string) (ANXTicker, error) {
func (a *ANX) GetDepth(currency string) (Depth, error) {
var depth Depth
err := common.SendHTTPGetRequest(fmt.Sprintf("%sapi/2/%s/%s", ANX_API_URL, currency, ANX_TICKER), true, a.Verbose, &depth)
err := common.SendHTTPGetRequest(fmt.Sprintf("%sapi/2/%s/%s", ANX_API_URL, currency, ANX_DEPTH), true, a.Verbose, &depth)
if err != nil {
return depth, err
}