service

package
v0.0.0-...-8647d6b Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2021 License: GPL-3.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

View Source
const (
	OneMin valueobject.Timeunit = iota
	FiveMin
	FifteenMin
	ThirtyMin
	OneHour
	FourHour
	EightHour
	TweleveHour
	OneDay
	OneWeek
)

OneMin is a timeunit

View Source
const DefaultCurrencyCode = "RU"

Variables

This section is empty.

Functions

This section is empty.

Types

type Billing

type Billing struct{}

Billing is billing app

func (Billing) Create

func (b Billing) Create(u *domain.User) (*BillingCreateResponse, error)

func (Billing) Get

type BillingCreateResponse

type BillingCreateResponse struct {
	ID            uuid.UUID
	CurrencyCode  string
	Name          string
	Balance       decimal.Decimal
	BlockedAmount decimal.Decimal
}

BillingCreateResponse is response of billing

type Bitbank

type Bitbank struct{}

Bitbank is an bitcoin exchange

func (Bitbank) Ohlc

Ohlc gets open, high, low, and close via bitbank public api NOTICE: This works from 0AM (UTC) due to its api constraints

func (Bitbank) Ticker

Ticker gets ticker via bitbank public api

type Order

type Order struct{}

Order is order app

func (Order) Create

func (b Order) Create(o *domain.Order) (*domain.Order, error)

func (Order) Delete

func (b Order) Delete(o *domain.Order) (*domain.Order, error)

func (Order) Find

func (b Order) Find(a *domain.Account) ([]*domain.Order, error)

Jump to

Keyboard shortcuts

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