Documentation ¶
Index ¶
- func ServeAccountResource(r *mux.Router, accountService interfaces.AccountService)
- func ServeInfoResource(r *mux.Router, walletService interfaces.WalletService, ...)
- func ServeOHLCVResource(r *mux.Router, ohlcvService interfaces.OHLCVService)
- func ServeOrderBookResource(r *mux.Router, orderBookService interfaces.OrderBookService)
- func ServeOrderResource(r *mux.Router, orderService interfaces.OrderService, ...)
- func ServePairResource(r *mux.Router, p interfaces.PairService)
- func ServeTokenResource(r *mux.Router, tokenService interfaces.TokenService)
- func ServeTradeResource(r *mux.Router, tradeService interfaces.TradeService)
- type OHLCVEndpoint
- type OrderBookEndpoint
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ServeAccountResource ¶
func ServeAccountResource( r *mux.Router, accountService interfaces.AccountService, )
func ServeInfoResource ¶
func ServeInfoResource( r *mux.Router, walletService interfaces.WalletService, tokenService interfaces.TokenService, infoService interfaces.InfoService, )
func ServeOHLCVResource ¶
func ServeOHLCVResource( r *mux.Router, ohlcvService interfaces.OHLCVService, )
func ServeOrderBookResource ¶
func ServeOrderBookResource( r *mux.Router, orderBookService interfaces.OrderBookService, )
ServePairResource sets up the routing of pair endpoints and the corresponding handlers.
func ServeOrderResource ¶
func ServeOrderResource( r *mux.Router, orderService interfaces.OrderService, accountService interfaces.AccountService, engine interfaces.Engine, )
ServeOrderResource sets up the routing of order endpoints and the corresponding handlers.
func ServePairResource ¶
func ServePairResource( r *mux.Router, p interfaces.PairService, )
ServePairResource sets up the routing of pair endpoints and the corresponding handlers.
func ServeTokenResource ¶
func ServeTokenResource( r *mux.Router, tokenService interfaces.TokenService, )
ServeTokenResource sets up the routing of token endpoints and the corresponding handlers.
func ServeTradeResource ¶
func ServeTradeResource( r *mux.Router, tradeService interfaces.TradeService, )
ServeTradeResource sets up the routing of trade endpoints and the corresponding handlers. TODO trim down to one single endpoint with the 3 following params: base, quote, address
Types ¶
type OHLCVEndpoint ¶
type OHLCVEndpoint struct {
// contains filtered or unexported fields
}
type OrderBookEndpoint ¶
type OrderBookEndpoint struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.