1497 lines
41 KiB
Go
1497 lines
41 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 *bitmex) PublicGetAnnouncement (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 ("publicGetAnnouncement", parameters))
|
||
|
PanicOnError(ch)
|
||
|
}()
|
||
|
return ch
|
||
|
}
|
||
|
|
||
|
func (this *bitmex) PublicGetAnnouncementUrgent (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 ("publicGetAnnouncementUrgent", parameters))
|
||
|
PanicOnError(ch)
|
||
|
}()
|
||
|
return ch
|
||
|
}
|
||
|
|
||
|
func (this *bitmex) PublicGetChat (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 ("publicGetChat", parameters))
|
||
|
PanicOnError(ch)
|
||
|
}()
|
||
|
return ch
|
||
|
}
|
||
|
|
||
|
func (this *bitmex) PublicGetChatChannels (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 ("publicGetChatChannels", parameters))
|
||
|
PanicOnError(ch)
|
||
|
}()
|
||
|
return ch
|
||
|
}
|
||
|
|
||
|
func (this *bitmex) PublicGetChatConnected (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 ("publicGetChatConnected", parameters))
|
||
|
PanicOnError(ch)
|
||
|
}()
|
||
|
return ch
|
||
|
}
|
||
|
|
||
|
func (this *bitmex) PublicGetChatPinned (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 ("publicGetChatPinned", parameters))
|
||
|
PanicOnError(ch)
|
||
|
}()
|
||
|
return ch
|
||
|
}
|
||
|
|
||
|
func (this *bitmex) PublicGetFunding (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 ("publicGetFunding", parameters))
|
||
|
PanicOnError(ch)
|
||
|
}()
|
||
|
return ch
|
||
|
}
|
||
|
|
||
|
func (this *bitmex) PublicGetGuild (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 ("publicGetGuild", parameters))
|
||
|
PanicOnError(ch)
|
||
|
}()
|
||
|
return ch
|
||
|
}
|
||
|
|
||
|
func (this *bitmex) PublicGetInstrument (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 ("publicGetInstrument", parameters))
|
||
|
PanicOnError(ch)
|
||
|
}()
|
||
|
return ch
|
||
|
}
|
||
|
|
||
|
func (this *bitmex) PublicGetInstrumentActive (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 ("publicGetInstrumentActive", parameters))
|
||
|
PanicOnError(ch)
|
||
|
}()
|
||
|
return ch
|
||
|
}
|
||
|
|
||
|
func (this *bitmex) PublicGetInstrumentActiveAndIndices (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 ("publicGetInstrumentActiveAndIndices", parameters))
|
||
|
PanicOnError(ch)
|
||
|
}()
|
||
|
return ch
|
||
|
}
|
||
|
|
||
|
func (this *bitmex) PublicGetInstrumentActiveIntervals (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 ("publicGetInstrumentActiveIntervals", parameters))
|
||
|
PanicOnError(ch)
|
||
|
}()
|
||
|
return ch
|
||
|
}
|
||
|
|
||
|
func (this *bitmex) PublicGetInstrumentCompositeIndex (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 ("publicGetInstrumentCompositeIndex", parameters))
|
||
|
PanicOnError(ch)
|
||
|
}()
|
||
|
return ch
|
||
|
}
|
||
|
|
||
|
func (this *bitmex) PublicGetInstrumentIndices (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 ("publicGetInstrumentIndices", parameters))
|
||
|
PanicOnError(ch)
|
||
|
}()
|
||
|
return ch
|
||
|
}
|
||
|
|
||
|
func (this *bitmex) PublicGetInstrumentUsdVolume (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 ("publicGetInstrumentUsdVolume", parameters))
|
||
|
PanicOnError(ch)
|
||
|
}()
|
||
|
return ch
|
||
|
}
|
||
|
|
||
|
func (this *bitmex) PublicGetInsurance (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 ("publicGetInsurance", parameters))
|
||
|
PanicOnError(ch)
|
||
|
}()
|
||
|
return ch
|
||
|
}
|
||
|
|
||
|
func (this *bitmex) PublicGetLeaderboard (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 ("publicGetLeaderboard", parameters))
|
||
|
PanicOnError(ch)
|
||
|
}()
|
||
|
return ch
|
||
|
}
|
||
|
|
||
|
func (this *bitmex) PublicGetLiquidation (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 ("publicGetLiquidation", parameters))
|
||
|
PanicOnError(ch)
|
||
|
}()
|
||
|
return ch
|
||
|
}
|
||
|
|
||
|
func (this *bitmex) PublicGetOrderBookL2 (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 ("publicGetOrderBookL2", parameters))
|
||
|
PanicOnError(ch)
|
||
|
}()
|
||
|
return ch
|
||
|
}
|
||
|
|
||
|
func (this *bitmex) PublicGetPorlNonce (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 ("publicGetPorlNonce", parameters))
|
||
|
PanicOnError(ch)
|
||
|
}()
|
||
|
return ch
|
||
|
}
|
||
|
|
||
|
func (this *bitmex) PublicGetQuote (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 ("publicGetQuote", parameters))
|
||
|
PanicOnError(ch)
|
||
|
}()
|
||
|
return ch
|
||
|
}
|
||
|
|
||
|
func (this *bitmex) PublicGetQuoteBucketed (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 ("publicGetQuoteBucketed", parameters))
|
||
|
PanicOnError(ch)
|
||
|
}()
|
||
|
return ch
|
||
|
}
|
||
|
|
||
|
func (this *bitmex) PublicGetSchema (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 ("publicGetSchema", parameters))
|
||
|
PanicOnError(ch)
|
||
|
}()
|
||
|
return ch
|
||
|
}
|
||
|
|
||
|
func (this *bitmex) PublicGetSchemaWebsocketHelp (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 ("publicGetSchemaWebsocketHelp", parameters))
|
||
|
PanicOnError(ch)
|
||
|
}()
|
||
|
return ch
|
||
|
}
|
||
|
|
||
|
func (this *bitmex) PublicGetSettlement (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 ("publicGetSettlement", parameters))
|
||
|
PanicOnError(ch)
|
||
|
}()
|
||
|
return ch
|
||
|
}
|
||
|
|
||
|
func (this *bitmex) PublicGetStats (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 ("publicGetStats", parameters))
|
||
|
PanicOnError(ch)
|
||
|
}()
|
||
|
return ch
|
||
|
}
|
||
|
|
||
|
func (this *bitmex) PublicGetStatsHistory (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 ("publicGetStatsHistory", parameters))
|
||
|
PanicOnError(ch)
|
||
|
}()
|
||
|
return ch
|
||
|
}
|
||
|
|
||
|
func (this *bitmex) PublicGetStatsHistoryUSD (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 ("publicGetStatsHistoryUSD", parameters))
|
||
|
PanicOnError(ch)
|
||
|
}()
|
||
|
return ch
|
||
|
}
|
||
|
|
||
|
func (this *bitmex) PublicGetTrade (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 ("publicGetTrade", parameters))
|
||
|
PanicOnError(ch)
|
||
|
}()
|
||
|
return ch
|
||
|
}
|
||
|
|
||
|
func (this *bitmex) PublicGetTradeBucketed (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 ("publicGetTradeBucketed", parameters))
|
||
|
PanicOnError(ch)
|
||
|
}()
|
||
|
return ch
|
||
|
}
|
||
|
|
||
|
func (this *bitmex) PublicGetWalletAssets (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 ("publicGetWalletAssets", parameters))
|
||
|
PanicOnError(ch)
|
||
|
}()
|
||
|
return ch
|
||
|
}
|
||
|
|
||
|
func (this *bitmex) PublicGetWalletNetworks (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 ("publicGetWalletNetworks", parameters))
|
||
|
PanicOnError(ch)
|
||
|
}()
|
||
|
return ch
|
||
|
}
|
||
|
|
||
|
func (this *bitmex) PrivateGetAddress (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 ("privateGetAddress", parameters))
|
||
|
PanicOnError(ch)
|
||
|
}()
|
||
|
return ch
|
||
|
}
|
||
|
|
||
|
func (this *bitmex) PrivateGetApiKey (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 ("privateGetApiKey", parameters))
|
||
|
PanicOnError(ch)
|
||
|
}()
|
||
|
return ch
|
||
|
}
|
||
|
|
||
|
func (this *bitmex) PrivateGetExecution (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 ("privateGetExecution", parameters))
|
||
|
PanicOnError(ch)
|
||
|
}()
|
||
|
return ch
|
||
|
}
|
||
|
|
||
|
func (this *bitmex) PrivateGetExecutionTradeHistory (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 ("privateGetExecutionTradeHistory", parameters))
|
||
|
PanicOnError(ch)
|
||
|
}()
|
||
|
return ch
|
||
|
}
|
||
|
|
||
|
func (this *bitmex) PrivateGetGlobalNotification (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 ("privateGetGlobalNotification", parameters))
|
||
|
PanicOnError(ch)
|
||
|
}()
|
||
|
return ch
|
||
|
}
|
||
|
|
||
|
func (this *bitmex) PrivateGetLeaderboardName (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 ("privateGetLeaderboardName", parameters))
|
||
|
PanicOnError(ch)
|
||
|
}()
|
||
|
return ch
|
||
|
}
|
||
|
|
||
|
func (this *bitmex) PrivateGetOrder (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 ("privateGetOrder", parameters))
|
||
|
PanicOnError(ch)
|
||
|
}()
|
||
|
return ch
|
||
|
}
|
||
|
|
||
|
func (this *bitmex) PrivateGetPorlSnapshots (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 ("privateGetPorlSnapshots", parameters))
|
||
|
PanicOnError(ch)
|
||
|
}()
|
||
|
return ch
|
||
|
}
|
||
|
|
||
|
func (this *bitmex) PrivateGetPosition (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 ("privateGetPosition", parameters))
|
||
|
PanicOnError(ch)
|
||
|
}()
|
||
|
return ch
|
||
|
}
|
||
|
|
||
|
func (this *bitmex) PrivateGetUser (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 ("privateGetUser", parameters))
|
||
|
PanicOnError(ch)
|
||
|
}()
|
||
|
return ch
|
||
|
}
|
||
|
|
||
|
func (this *bitmex) PrivateGetUserAffiliateStatus (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 ("privateGetUserAffiliateStatus", parameters))
|
||
|
PanicOnError(ch)
|
||
|
}()
|
||
|
return ch
|
||
|
}
|
||
|
|
||
|
func (this *bitmex) PrivateGetUserCheckReferralCode (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 ("privateGetUserCheckReferralCode", parameters))
|
||
|
PanicOnError(ch)
|
||
|
}()
|
||
|
return ch
|
||
|
}
|
||
|
|
||
|
func (this *bitmex) PrivateGetUserCommission (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 ("privateGetUserCommission", parameters))
|
||
|
PanicOnError(ch)
|
||
|
}()
|
||
|
return ch
|
||
|
}
|
||
|
|
||
|
func (this *bitmex) PrivateGetUserCsa (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 ("privateGetUserCsa", parameters))
|
||
|
PanicOnError(ch)
|
||
|
}()
|
||
|
return ch
|
||
|
}
|
||
|
|
||
|
func (this *bitmex) PrivateGetUserDepositAddress (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 ("privateGetUserDepositAddress", parameters))
|
||
|
PanicOnError(ch)
|
||
|
}()
|
||
|
return ch
|
||
|
}
|
||
|
|
||
|
func (this *bitmex) PrivateGetUserExecutionHistory (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 ("privateGetUserExecutionHistory", parameters))
|
||
|
PanicOnError(ch)
|
||
|
}()
|
||
|
return ch
|
||
|
}
|
||
|
|
||
|
func (this *bitmex) PrivateGetUserGetWalletTransferAccounts (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 ("privateGetUserGetWalletTransferAccounts", parameters))
|
||
|
PanicOnError(ch)
|
||
|
}()
|
||
|
return ch
|
||
|
}
|
||
|
|
||
|
func (this *bitmex) PrivateGetUserMargin (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 ("privateGetUserMargin", parameters))
|
||
|
PanicOnError(ch)
|
||
|
}()
|
||
|
return ch
|
||
|
}
|
||
|
|
||
|
func (this *bitmex) PrivateGetUserQuoteFillRatio (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 ("privateGetUserQuoteFillRatio", parameters))
|
||
|
PanicOnError(ch)
|
||
|
}()
|
||
|
return ch
|
||
|
}
|
||
|
|
||
|
func (this *bitmex) PrivateGetUserQuoteValueRatio (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 ("privateGetUserQuoteValueRatio", parameters))
|
||
|
PanicOnError(ch)
|
||
|
}()
|
||
|
return ch
|
||
|
}
|
||
|
|
||
|
func (this *bitmex) PrivateGetUserStaking (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 ("privateGetUserStaking", parameters))
|
||
|
PanicOnError(ch)
|
||
|
}()
|
||
|
return ch
|
||
|
}
|
||
|
|
||
|
func (this *bitmex) PrivateGetUserStakingInstruments (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 ("privateGetUserStakingInstruments", parameters))
|
||
|
PanicOnError(ch)
|
||
|
}()
|
||
|
return ch
|
||
|
}
|
||
|
|
||
|
func (this *bitmex) PrivateGetUserStakingTiers (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 ("privateGetUserStakingTiers", parameters))
|
||
|
PanicOnError(ch)
|
||
|
}()
|
||
|
return ch
|
||
|
}
|
||
|
|
||
|
func (this *bitmex) PrivateGetUserTradingVolume (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 ("privateGetUserTradingVolume", parameters))
|
||
|
PanicOnError(ch)
|
||
|
}()
|
||
|
return ch
|
||
|
}
|
||
|
|
||
|
func (this *bitmex) PrivateGetUserUnstakingRequests (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 ("privateGetUserUnstakingRequests", parameters))
|
||
|
PanicOnError(ch)
|
||
|
}()
|
||
|
return ch
|
||
|
}
|
||
|
|
||
|
func (this *bitmex) PrivateGetUserWallet (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 ("privateGetUserWallet", parameters))
|
||
|
PanicOnError(ch)
|
||
|
}()
|
||
|
return ch
|
||
|
}
|
||
|
|
||
|
func (this *bitmex) PrivateGetUserWalletHistory (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 ("privateGetUserWalletHistory", parameters))
|
||
|
PanicOnError(ch)
|
||
|
}()
|
||
|
return ch
|
||
|
}
|
||
|
|
||
|
func (this *bitmex) PrivateGetUserWalletSummary (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 ("privateGetUserWalletSummary", parameters))
|
||
|
PanicOnError(ch)
|
||
|
}()
|
||
|
return ch
|
||
|
}
|
||
|
|
||
|
func (this *bitmex) PrivateGetUserAffiliates (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 ("privateGetUserAffiliates", parameters))
|
||
|
PanicOnError(ch)
|
||
|
}()
|
||
|
return ch
|
||
|
}
|
||
|
|
||
|
func (this *bitmex) PrivateGetUserEvent (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 ("privateGetUserEvent", parameters))
|
||
|
PanicOnError(ch)
|
||
|
}()
|
||
|
return ch
|
||
|
}
|
||
|
|
||
|
func (this *bitmex) PrivatePostAddress (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 ("privatePostAddress", parameters))
|
||
|
PanicOnError(ch)
|
||
|
}()
|
||
|
return ch
|
||
|
}
|
||
|
|
||
|
func (this *bitmex) PrivatePostChat (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 ("privatePostChat", parameters))
|
||
|
PanicOnError(ch)
|
||
|
}()
|
||
|
return ch
|
||
|
}
|
||
|
|
||
|
func (this *bitmex) PrivatePostGuild (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 ("privatePostGuild", parameters))
|
||
|
PanicOnError(ch)
|
||
|
}()
|
||
|
return ch
|
||
|
}
|
||
|
|
||
|
func (this *bitmex) PrivatePostGuildArchive (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 ("privatePostGuildArchive", parameters))
|
||
|
PanicOnError(ch)
|
||
|
}()
|
||
|
return ch
|
||
|
}
|
||
|
|
||
|
func (this *bitmex) PrivatePostGuildJoin (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 ("privatePostGuildJoin", parameters))
|
||
|
PanicOnError(ch)
|
||
|
}()
|
||
|
return ch
|
||
|
}
|
||
|
|
||
|
func (this *bitmex) PrivatePostGuildKick (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 ("privatePostGuildKick", parameters))
|
||
|
PanicOnError(ch)
|
||
|
}()
|
||
|
return ch
|
||
|
}
|
||
|
|
||
|
func (this *bitmex) PrivatePostGuildLeave (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 ("privatePostGuildLeave", parameters))
|
||
|
PanicOnError(ch)
|
||
|
}()
|
||
|
return ch
|
||
|
}
|
||
|
|
||
|
func (this *bitmex) PrivatePostGuildSharesTrades (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 ("privatePostGuildSharesTrades", parameters))
|
||
|
PanicOnError(ch)
|
||
|
}()
|
||
|
return ch
|
||
|
}
|
||
|
|
||
|
func (this *bitmex) 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 *bitmex) PrivatePostOrderCancelAllAfter (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 ("privatePostOrderCancelAllAfter", parameters))
|
||
|
PanicOnError(ch)
|
||
|
}()
|
||
|
return ch
|
||
|
}
|
||
|
|
||
|
func (this *bitmex) PrivatePostOrderClosePosition (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 ("privatePostOrderClosePosition", parameters))
|
||
|
PanicOnError(ch)
|
||
|
}()
|
||
|
return ch
|
||
|
}
|
||
|
|
||
|
func (this *bitmex) PrivatePostPositionIsolate (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 ("privatePostPositionIsolate", parameters))
|
||
|
PanicOnError(ch)
|
||
|
}()
|
||
|
return ch
|
||
|
}
|
||
|
|
||
|
func (this *bitmex) PrivatePostPositionLeverage (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 ("privatePostPositionLeverage", parameters))
|
||
|
PanicOnError(ch)
|
||
|
}()
|
||
|
return ch
|
||
|
}
|
||
|
|
||
|
func (this *bitmex) PrivatePostPositionRiskLimit (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 ("privatePostPositionRiskLimit", parameters))
|
||
|
PanicOnError(ch)
|
||
|
}()
|
||
|
return ch
|
||
|
}
|
||
|
|
||
|
func (this *bitmex) PrivatePostPositionTransferMargin (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 ("privatePostPositionTransferMargin", parameters))
|
||
|
PanicOnError(ch)
|
||
|
}()
|
||
|
return ch
|
||
|
}
|
||
|
|
||
|
func (this *bitmex) PrivatePostUserAddSubaccount (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 ("privatePostUserAddSubaccount", parameters))
|
||
|
PanicOnError(ch)
|
||
|
}()
|
||
|
return ch
|
||
|
}
|
||
|
|
||
|
func (this *bitmex) PrivatePostUserCancelWithdrawal (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 ("privatePostUserCancelWithdrawal", parameters))
|
||
|
PanicOnError(ch)
|
||
|
}()
|
||
|
return ch
|
||
|
}
|
||
|
|
||
|
func (this *bitmex) PrivatePostUserCommunicationToken (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 ("privatePostUserCommunicationToken", parameters))
|
||
|
PanicOnError(ch)
|
||
|
}()
|
||
|
return ch
|
||
|
}
|
||
|
|
||
|
func (this *bitmex) PrivatePostUserConfirmEmail (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 ("privatePostUserConfirmEmail", parameters))
|
||
|
PanicOnError(ch)
|
||
|
}()
|
||
|
return ch
|
||
|
}
|
||
|
|
||
|
func (this *bitmex) PrivatePostUserConfirmWithdrawal (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 ("privatePostUserConfirmWithdrawal", parameters))
|
||
|
PanicOnError(ch)
|
||
|
}()
|
||
|
return ch
|
||
|
}
|
||
|
|
||
|
func (this *bitmex) PrivatePostUserLogout (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 ("privatePostUserLogout", parameters))
|
||
|
PanicOnError(ch)
|
||
|
}()
|
||
|
return ch
|
||
|
}
|
||
|
|
||
|
func (this *bitmex) PrivatePostUserPreferences (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 ("privatePostUserPreferences", parameters))
|
||
|
PanicOnError(ch)
|
||
|
}()
|
||
|
return ch
|
||
|
}
|
||
|
|
||
|
func (this *bitmex) PrivatePostUserRequestWithdrawal (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 ("privatePostUserRequestWithdrawal", parameters))
|
||
|
PanicOnError(ch)
|
||
|
}()
|
||
|
return ch
|
||
|
}
|
||
|
|
||
|
func (this *bitmex) PrivatePostUserUnstakingRequests (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 ("privatePostUserUnstakingRequests", parameters))
|
||
|
PanicOnError(ch)
|
||
|
}()
|
||
|
return ch
|
||
|
}
|
||
|
|
||
|
func (this *bitmex) PrivatePostUserUpdateSubaccount (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 ("privatePostUserUpdateSubaccount", parameters))
|
||
|
PanicOnError(ch)
|
||
|
}()
|
||
|
return ch
|
||
|
}
|
||
|
|
||
|
func (this *bitmex) PrivatePostUserWalletTransfer (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 ("privatePostUserWalletTransfer", parameters))
|
||
|
PanicOnError(ch)
|
||
|
}()
|
||
|
return ch
|
||
|
}
|
||
|
|
||
|
func (this *bitmex) PrivatePutGuild (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 ("privatePutGuild", parameters))
|
||
|
PanicOnError(ch)
|
||
|
}()
|
||
|
return ch
|
||
|
}
|
||
|
|
||
|
func (this *bitmex) PrivatePutOrder (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 ("privatePutOrder", parameters))
|
||
|
PanicOnError(ch)
|
||
|
}()
|
||
|
return ch
|
||
|
}
|
||
|
|
||
|
func (this *bitmex) PrivateDeleteOrder (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 ("privateDeleteOrder", parameters))
|
||
|
PanicOnError(ch)
|
||
|
}()
|
||
|
return ch
|
||
|
}
|
||
|
|
||
|
func (this *bitmex) PrivateDeleteOrderAll (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 ("privateDeleteOrderAll", parameters))
|
||
|
PanicOnError(ch)
|
||
|
}()
|
||
|
return ch
|
||
|
}
|
||
|
|
||
|
func (this *bitmex) PrivateDeleteUserUnstakingRequests (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 ("privateDeleteUserUnstakingRequests", parameters))
|
||
|
PanicOnError(ch)
|
||
|
}()
|
||
|
return ch
|
||
|
}
|