server

package
v0.0.0-...-cafecf9 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AccountOrders map[string]int

For a given account give the number of tx it is involved

View Source
var AccountsNumber int

The number of accounts active

View Source
var ArbitrageOffersDB []*ArbitrageOpportunities

ArbitrageOffersDB : Datastructure to hold arbitrage opportunities

View Source
var Clients []string

List the clients

View Source
var Issuers []string

List the issuers

View Source
var LatestOpportunity []*Opportunity
View Source
var RecentOpportunities []*OpportunityInfo

Functions

func LaunchServer

func LaunchServer()

Types

type ArbitrageOpportunities

type ArbitrageOpportunities struct {
	Pair   []string
	Offers []*OfferSummary
}

type OK

type OK struct {
	Welcome string
}

type OfferSummary

type OfferSummary struct {
	From   string
	To     string
	Rate   float64
	Hash   string
	Volume float64
}

type Opportunity

type Opportunity struct {
	Step     int
	Sent     string
	Received string
	Rate     float64
	Hash     string
}

[{step: 1, sent: "139.359 XRP", received: "1501.834 ULT", rate: 10.433, hash: "KJDSNFKJSDNF"}, {step: 2 ....} {step: 3 ...} ]

type OpportunityInfo

type OpportunityInfo struct {
	Pairs     string
	CycleSize int
	Volume    float64
	Profit    float64
}

Jump to

Keyboard shortcuts

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