package
Version:
v0.0.0-...-dc0a48c
Opens a new window with list of versions in this module.
Published: Apr 20, 2024
License: MIT
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type Data struct {
Code uint32 `json:"code"`
Trades []Trade `json:"trades"`
}
type Request struct {
Pair string `url:"pair"`
Count int64 `url:"count,omitempty"`
OrderID int64 `url:"order_id,omitempty"`
Since time.Time `url:"-"`
End time.Time `url:"-"`
SinceUnix int64 `url:"since,omitempty"`
EndUnix int64 `url:"end,omitempty"`
Order string `url:"order,omitempty"`
}
type Response struct {
Success int8 `json:"success"`
Data Data `json:"data"`
}
type Trade struct {
TradeID int64 `json:"trade_id"`
OrderID int64 `json:"order_id"`
Pair string `json:"pair"`
Type string `json:"type"`
Side string `json:"side"`
Price string `json:"price"`
Amount string `json:"amount"`
MakerTaker string `json:"maker_taker"`
FeeAmountBase string `json:"fee_amount_base"`
FeeAmountQuote string `json:"fee_amount_quote"`
ExecutedAt types.Time `json:"executed_at"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.