233 lines
6.4 KiB
Go
233 lines
6.4 KiB
Go
// -------------------------------------------------------------------------------
|
|
|
|
// PLEASE DO NOT EDIT THIS FILE, IT IS GENERATED AND WILL BE OVERWRITTEN:
|
|
// https://github.com/ccxt/ccxt/blob/master/CONTRIBUTING.md#how-to-contribute-code
|
|
|
|
// -------------------------------------------------------------------------------
|
|
|
|
package ccxt
|
|
|
|
func (this *btcalpha) PublicGetCurrencies (args ...interface{}) <-chan interface{} {
|
|
parameters := GetArg(args, 0, nil)
|
|
ch := make(chan interface{})
|
|
go func() {
|
|
defer close(ch)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ch <- "panic:" + ToString(r)
|
|
}
|
|
}()
|
|
ch <- (<-this.callEndpoint ("publicGetCurrencies", parameters))
|
|
PanicOnError(ch)
|
|
}()
|
|
return ch
|
|
}
|
|
|
|
func (this *btcalpha) PublicGetPairs (args ...interface{}) <-chan interface{} {
|
|
parameters := GetArg(args, 0, nil)
|
|
ch := make(chan interface{})
|
|
go func() {
|
|
defer close(ch)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ch <- "panic:" + ToString(r)
|
|
}
|
|
}()
|
|
ch <- (<-this.callEndpoint ("publicGetPairs", parameters))
|
|
PanicOnError(ch)
|
|
}()
|
|
return ch
|
|
}
|
|
|
|
func (this *btcalpha) PublicGetOrderbookPairName (args ...interface{}) <-chan interface{} {
|
|
parameters := GetArg(args, 0, nil)
|
|
ch := make(chan interface{})
|
|
go func() {
|
|
defer close(ch)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ch <- "panic:" + ToString(r)
|
|
}
|
|
}()
|
|
ch <- (<-this.callEndpoint ("publicGetOrderbookPairName", parameters))
|
|
PanicOnError(ch)
|
|
}()
|
|
return ch
|
|
}
|
|
|
|
func (this *btcalpha) PublicGetExchanges (args ...interface{}) <-chan interface{} {
|
|
parameters := GetArg(args, 0, nil)
|
|
ch := make(chan interface{})
|
|
go func() {
|
|
defer close(ch)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ch <- "panic:" + ToString(r)
|
|
}
|
|
}()
|
|
ch <- (<-this.callEndpoint ("publicGetExchanges", parameters))
|
|
PanicOnError(ch)
|
|
}()
|
|
return ch
|
|
}
|
|
|
|
func (this *btcalpha) PublicGetChartsPairTypeChart (args ...interface{}) <-chan interface{} {
|
|
parameters := GetArg(args, 0, nil)
|
|
ch := make(chan interface{})
|
|
go func() {
|
|
defer close(ch)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ch <- "panic:" + ToString(r)
|
|
}
|
|
}()
|
|
ch <- (<-this.callEndpoint ("publicGetChartsPairTypeChart", parameters))
|
|
PanicOnError(ch)
|
|
}()
|
|
return ch
|
|
}
|
|
|
|
func (this *btcalpha) PublicGetTicker (args ...interface{}) <-chan interface{} {
|
|
parameters := GetArg(args, 0, nil)
|
|
ch := make(chan interface{})
|
|
go func() {
|
|
defer close(ch)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ch <- "panic:" + ToString(r)
|
|
}
|
|
}()
|
|
ch <- (<-this.callEndpoint ("publicGetTicker", parameters))
|
|
PanicOnError(ch)
|
|
}()
|
|
return ch
|
|
}
|
|
|
|
func (this *btcalpha) PrivateGetWallets (args ...interface{}) <-chan interface{} {
|
|
parameters := GetArg(args, 0, nil)
|
|
ch := make(chan interface{})
|
|
go func() {
|
|
defer close(ch)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ch <- "panic:" + ToString(r)
|
|
}
|
|
}()
|
|
ch <- (<-this.callEndpoint ("privateGetWallets", parameters))
|
|
PanicOnError(ch)
|
|
}()
|
|
return ch
|
|
}
|
|
|
|
func (this *btcalpha) PrivateGetOrdersOwn (args ...interface{}) <-chan interface{} {
|
|
parameters := GetArg(args, 0, nil)
|
|
ch := make(chan interface{})
|
|
go func() {
|
|
defer close(ch)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ch <- "panic:" + ToString(r)
|
|
}
|
|
}()
|
|
ch <- (<-this.callEndpoint ("privateGetOrdersOwn", parameters))
|
|
PanicOnError(ch)
|
|
}()
|
|
return ch
|
|
}
|
|
|
|
func (this *btcalpha) PrivateGetOrderId (args ...interface{}) <-chan interface{} {
|
|
parameters := GetArg(args, 0, nil)
|
|
ch := make(chan interface{})
|
|
go func() {
|
|
defer close(ch)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ch <- "panic:" + ToString(r)
|
|
}
|
|
}()
|
|
ch <- (<-this.callEndpoint ("privateGetOrderId", parameters))
|
|
PanicOnError(ch)
|
|
}()
|
|
return ch
|
|
}
|
|
|
|
func (this *btcalpha) PrivateGetExchangesOwn (args ...interface{}) <-chan interface{} {
|
|
parameters := GetArg(args, 0, nil)
|
|
ch := make(chan interface{})
|
|
go func() {
|
|
defer close(ch)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ch <- "panic:" + ToString(r)
|
|
}
|
|
}()
|
|
ch <- (<-this.callEndpoint ("privateGetExchangesOwn", parameters))
|
|
PanicOnError(ch)
|
|
}()
|
|
return ch
|
|
}
|
|
|
|
func (this *btcalpha) PrivateGetDeposits (args ...interface{}) <-chan interface{} {
|
|
parameters := GetArg(args, 0, nil)
|
|
ch := make(chan interface{})
|
|
go func() {
|
|
defer close(ch)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ch <- "panic:" + ToString(r)
|
|
}
|
|
}()
|
|
ch <- (<-this.callEndpoint ("privateGetDeposits", parameters))
|
|
PanicOnError(ch)
|
|
}()
|
|
return ch
|
|
}
|
|
|
|
func (this *btcalpha) PrivateGetWithdraws (args ...interface{}) <-chan interface{} {
|
|
parameters := GetArg(args, 0, nil)
|
|
ch := make(chan interface{})
|
|
go func() {
|
|
defer close(ch)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ch <- "panic:" + ToString(r)
|
|
}
|
|
}()
|
|
ch <- (<-this.callEndpoint ("privateGetWithdraws", parameters))
|
|
PanicOnError(ch)
|
|
}()
|
|
return ch
|
|
}
|
|
|
|
func (this *btcalpha) PrivatePostOrder (args ...interface{}) <-chan interface{} {
|
|
parameters := GetArg(args, 0, nil)
|
|
ch := make(chan interface{})
|
|
go func() {
|
|
defer close(ch)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ch <- "panic:" + ToString(r)
|
|
}
|
|
}()
|
|
ch <- (<-this.callEndpoint ("privatePostOrder", parameters))
|
|
PanicOnError(ch)
|
|
}()
|
|
return ch
|
|
}
|
|
|
|
func (this *btcalpha) PrivatePostOrderCancel (args ...interface{}) <-chan interface{} {
|
|
parameters := GetArg(args, 0, nil)
|
|
ch := make(chan interface{})
|
|
go func() {
|
|
defer close(ch)
|
|
defer func() {
|
|
if r := recover(); r != nil {
|
|
ch <- "panic:" + ToString(r)
|
|
}
|
|
}()
|
|
ch <- (<-this.callEndpoint ("privatePostOrderCancel", parameters))
|
|
PanicOnError(ch)
|
|
}()
|
|
return ch
|
|
}
|