Versions in this module Expand all Collapse all v1 v1.1.0 May 27, 2018 Changes in this version type Int + func (x Int) Add(y Int) Int type Market + Depth Int v1.0.2 May 17, 2018 Changes in this version type Order + Status OrderStatus + type OrderStatus string + const OPEN + const UNDER_FUNDED v1.0.1 May 12, 2018 Changes in this version type Int + func (x *Int) UnmarshalJSON(input []byte) error v1.0.0 May 2, 2018 Changes in this version + const ETH_ADDRESS + const GETH + const TREZOR + const TYPED_SIG_EIP + var ORDER_HASH_SCHEME = NewHash("0xb9caf644225739cd2bda9073346357ae4a0c3d71809876978bd81cc702b7fdc7") + type Address struct + func HexToAddress(hex string) Address + func (a *Address) MarshalJSON() ([]byte, error) + func (a *Address) SetBSON(raw bson.Raw) error + func (a Address) GetBSON() (interface{}, error) + func (a Address) IsZero() bool + type EC struct + R Hash + S Hash + SigMode SigMode + V int + func (ec *EC) Verify(address Address, hash Hash) bool + type Hash struct + func NewHash(hash string) Hash + func (h *Hash) SetBSON(raw bson.Raw) error + func (h *Hash) UnmarshalJSON(input []byte) error + func (h Hash) GetBSON() (interface{}, error) + func (h Hash) MarshalJSON() ([]byte, error) + type Int struct + func NewInt(x int64) Int + func (x *Int) SetBSON(raw bson.Raw) error + func (x Int) GetBSON() (interface{}, error) + func (x Int) MarshalJSON() ([]byte, error) + func (x Int) U256() []byte + type Market struct + Ask float64 + Bid float64 + Last float64 + Token Address + Volume float64 + type Order struct + Exchange Address + Expires Timestamp + Filled Int + Hash Hash + Make Trade + Maker Address + Nonce int64 + Price float64 + Signature EC + Take Trade + func (o *Order) OrderHash() Hash + func (o *Order) Validate() error + type Orders struct + Asks []Order + Bids []Order + type Pair struct + Base Address + Quote Address + type Price struct + Base string + Quote string + type Prices map[Address]Price + type SigMode int + type Tick struct + Block int64 + Close float64 + High float64 + Low float64 + Open float64 + Pair Pair + Timestamp Timestamp + Volume Int + type Timestamp struct + func NewTimestampFromInt(t Int) Timestamp + func (t *Timestamp) UnmarshalJSON(b []byte) error + func (t Timestamp) MarshalJSON() ([]byte, error) + type Trade struct + Amount Int + Token Address + type Transaction struct + BlockNumber uint64 + Make Trade + Maker Address + OrderHash Hash + Take Trade + Taker Address + Timestamp Timestamp + TransactionID Hash + TransactionIndex uint + func NewTransaction(trade contracts.ExchangeTraded, timestamp Int) Transaction