Documentation ¶
Index ¶
Constants ¶
View Source
const (
API_BASE = "https://api.stealthex.io/api/v2" // StealthEX API endpoint
)
Variables ¶
This section is empty.
Functions ¶
func NewClient ¶
func NewClient(apiKey string) (c *client)
NewClient return a new StealthEX HTTP client
func NewClientWithCustomHttpConfig ¶
NewClientWithCustomHttpConfig returns a new StealthEX HTTP client using the predefined http client
func NewClientWithCustomTimeout ¶
NewClient returns a new StealthEX HTTP client with custom timeout
Types ¶
type StealthEX ¶
type StealthEX struct {
// contains filtered or unexported fields
}
StealthEX represent a StealthEX client
func NewWithCustomHttpClient ¶
NewWithCustomHttpClient returns an instantiated StealthEX struct with custom http client
func NewWithCustomTimeout ¶
NewWithCustomTimeout returns an instantiated StealthEX struct with custom timeout
type Trade ¶
type Trade struct { Id string `json:"id"` Type string `json:"type"` Timestamp time.Time `json:"timestamp"` CurrencyFrom string `json:"currency_from"` CurrencyTo string `json:"currency_to"` AmountFrom float64 `json:"amount_from,string"` ExpectedAmount float64 `json:"expected_amount,string"` AmountTo float64 `json:"amount_to,string"` AddressFrom string `json:"address_from"` AddressTo string `json:"address_to"` ExtraIdFrom string `json:"extra_id_from"` ExtraIdTo string `json:"extra_id_to"` TxFrom string `json:"tx_from"` TxTo string `json:"tx_to"` Status string `json:"status"` RefundAddress string `json:"refund_address"` RefundExtraId string `json:"refund_extra_id"` }
func (*Trade) UnmarshalJSON ¶
Click to show internal directories.
Click to hide internal directories.