bitfinexService

package
v0.0.0-...-07b162f Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewClient

func NewClient(APIKey string, APISecret string) *bitfinex.Client

Types

type BitfinexClient

type BitfinexClient struct {
	Client *bitfinex.Client
	User   *models.User
}

BitfinexClient is setting by user

func (*BitfinexClient) CancelOffer

func (bfc *BitfinexClient) CancelOffer(orderID int64) bitfinex.MarginOffer

func (*BitfinexClient) CreateLend

func (bfc *BitfinexClient) CreateLend(currency string, amount, rate float64, period int) bitfinex.MarginOffer

func (*BitfinexClient) GetAllFundingOffers

func (bfc *BitfinexClient) GetAllFundingOffers() []bitfinex.ActiveOffer

func (*BitfinexClient) GetFundingBalance

func (bfc *BitfinexClient) GetFundingBalance() float64

func (*BitfinexClient) GetLendBook

func (bfc *BitfinexClient) GetLendBook(currency string, limitBids, limitAsks int) bitfinex.Lendbook

type Service

type Service struct {
	// contains filtered or unexported fields
}

func New

func New(db *pg.DB) (s *Service)

func (*Service) CreateNewBFClient

func (s *Service) CreateNewBFClient(APIKey string, APISecret string) *BitfinexClient

func (*Service) Start

func (s *Service) Start()

Jump to

Keyboard shortcuts

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