Kraken: Add support for XTZ based pairs

This commit is contained in:
Adrian Gallagher
2018-10-23 17:11:32 +11:00
parent 8cbe99cf2f
commit 7315e6604c

View File

@@ -46,7 +46,9 @@ func (k *Kraken) Run() {
continue
}
if v.Base[0] == 'X' {
v.Base = v.Base[1:]
if len(v.Base) > 3 {
v.Base = v.Base[1:]
}
}
if v.Quote[0] == 'Z' || v.Quote[0] == 'X' {
v.Quote = v.Quote[1:]