dex

package
v1.3.4 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2020 License: GPL-2.0, GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewBuyOrder

func NewBuyOrder(seed string, assetName string, issuer string,
	amount string, price string) (int32, string, error)

NewBuyOrder creates a new buy order on the stellar dex

func NewSellOrder

func NewSellOrder(seed string, assetName string, issuer string, amount string,
	price string) (int32, string, error)

NewSellOrder creates a new sell order on the stellar dex

func StableCoinBuy

func StableCoinBuy(seed string, amount string) (int32, string, error)

StableCoinBuy gets the price from an oracle and places an order on the DEX to buy AnchorUSD

func StableCoinSell

func StableCoinSell(seed string, amount string) (int32, string, error)

StableCoinSell places a sell order for STABLEUSD on the Stellar dex

Types

This section is empty.

Jump to

Keyboard shortcuts

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