41 lines
1.2 KiB
Go
41 lines
1.2 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 *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
|
||
|
}
|