ccxt-go/hyperliquid_api.go

41 lines
1.2 KiB
Go
Raw Normal View History

2025-02-28 10:33:20 +08:00
// -------------------------------------------------------------------------------
// 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 *hyperliquid) PublicPostInfo (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 ("publicPostInfo", parameters))
PanicOnError(ch)
}()
return ch
}
func (this *hyperliquid) PrivatePostExchange (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 ("privatePostExchange", parameters))
PanicOnError(ch)
}()
return ch
}