trader

package
v0.0.0-...-6165795 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2015 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package trader defines the interfaces that models must implement to trade in a full capacity.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuctionAsker

type AuctionAsker interface {
	NewBid(xchg.AuctionID, xchg.Bid)                             // A new bid has been placed on your auction.
	UpdateAuction(xchg.AuctionID, xchg.TradeStatus, xchg.Reason) // Signals the other party's tradestatus
	ConfirmAuction(xchg.AuctionID) xchg.TradeStatus              // The market will periodically check up on transactions to make sure nobody's filing under a false identity
}

type AuctionBidder

type AuctionBidder interface {
	NewAuction(xchg.Auction)                             // A new auction has been placed
	UpdateBid(xchg.BidID, xchg.TradeStatus, xchg.Reason) // The bid's tradestatus has been changed. i.e. you have won the auction, awaiting payment, etc.
	ConfirmBid(xchg.BidID) xchg.TradeStatus              // The market will periodically check up on transactions to make sure nobody's filing under a false identity
}

type Dealer

type Dealer interface {
	DealerList([]xchg.Dealer)
	UpdateDeal(xchg.Deal, xchg.TradeStatus)
	ConfirmDeal(xchg.Deal) xchg.TradeStatus
}

type Trader

type Trader interface {
	xchg.Statuser
	Init(xchg.LicenseID)     // You've been licensed, here's your ID
	GetID() xchg.LicenseID   // What's your ID?
	GetAcct() bank.AccountID // What's your bank account?
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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