pancake

package
v0.0.0-...-e9fdc67 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 17, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BSCBase

type BSCBase struct {
	Status int32  `json:"status"`
	Error  string `json:"error"`
}

type BSCPriceResponse

type BSCPriceResponse struct {
	BSCBase
	Data struct {
		AveragePrice   float64 `json:"average_price"`
		ReceivedAmount float64 `json:"received_amount"`
	} `json:"data"`
}

type Service

type Service struct {
	MarketRateURL string
}

Service is a common structure for a exchange

func InitService

func InitService() *Service

InitService is used to safely start a new service reference.

func (*Service) CoinMarketOrders

func (s *Service) CoinMarketOrders(coin string) (orders map[string][]models.MarketOrder, err error)

CoinMarketOrders is used to get the market sell and buy wall from a coin

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL