201 lines
5.5 KiB
Go
201 lines
5.5 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 *yobit) PublicGetDepthPair (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 ("publicGetDepthPair", parameters))
|
||
|
PanicOnError(ch)
|
||
|
}()
|
||
|
return ch
|
||
|
}
|
||
|
|
||
|
func (this *yobit) PublicGetInfo (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 ("publicGetInfo", parameters))
|
||
|
PanicOnError(ch)
|
||
|
}()
|
||
|
return ch
|
||
|
}
|
||
|
|
||
|
func (this *yobit) PublicGetTickerPair (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 ("publicGetTickerPair", parameters))
|
||
|
PanicOnError(ch)
|
||
|
}()
|
||
|
return ch
|
||
|
}
|
||
|
|
||
|
func (this *yobit) PublicGetTradesPair (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 ("publicGetTradesPair", parameters))
|
||
|
PanicOnError(ch)
|
||
|
}()
|
||
|
return ch
|
||
|
}
|
||
|
|
||
|
func (this *yobit) PrivatePostActiveOrders (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 ("privatePostActiveOrders", parameters))
|
||
|
PanicOnError(ch)
|
||
|
}()
|
||
|
return ch
|
||
|
}
|
||
|
|
||
|
func (this *yobit) PrivatePostCancelOrder (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 ("privatePostCancelOrder", parameters))
|
||
|
PanicOnError(ch)
|
||
|
}()
|
||
|
return ch
|
||
|
}
|
||
|
|
||
|
func (this *yobit) PrivatePostGetDepositAddress (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 ("privatePostGetDepositAddress", parameters))
|
||
|
PanicOnError(ch)
|
||
|
}()
|
||
|
return ch
|
||
|
}
|
||
|
|
||
|
func (this *yobit) PrivatePostGetInfo (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 ("privatePostGetInfo", parameters))
|
||
|
PanicOnError(ch)
|
||
|
}()
|
||
|
return ch
|
||
|
}
|
||
|
|
||
|
func (this *yobit) PrivatePostOrderInfo (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 ("privatePostOrderInfo", parameters))
|
||
|
PanicOnError(ch)
|
||
|
}()
|
||
|
return ch
|
||
|
}
|
||
|
|
||
|
func (this *yobit) PrivatePostTrade (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 ("privatePostTrade", parameters))
|
||
|
PanicOnError(ch)
|
||
|
}()
|
||
|
return ch
|
||
|
}
|
||
|
|
||
|
func (this *yobit) PrivatePostTradeHistory (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 ("privatePostTradeHistory", parameters))
|
||
|
PanicOnError(ch)
|
||
|
}()
|
||
|
return ch
|
||
|
}
|
||
|
|
||
|
func (this *yobit) PrivatePostWithdrawCoinsToAddress (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 ("privatePostWithdrawCoinsToAddress", parameters))
|
||
|
PanicOnError(ch)
|
||
|
}()
|
||
|
return ch
|
||
|
}
|