Documentation ¶
Index ¶
- Variables
- type DaemonVoteExtension
- func (*DaemonVoteExtension) Descriptor() ([]byte, []int)
- func (m *DaemonVoteExtension) GetPrices() []PricePair
- func (m *DaemonVoteExtension) Marshal() (dAtA []byte, err error)
- func (m *DaemonVoteExtension) MarshalTo(dAtA []byte) (int, error)
- func (m *DaemonVoteExtension) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*DaemonVoteExtension) ProtoMessage()
- func (m *DaemonVoteExtension) Reset()
- func (m *DaemonVoteExtension) Size() (n int)
- func (m *DaemonVoteExtension) String() string
- func (m *DaemonVoteExtension) Unmarshal(dAtA []byte) error
- func (m *DaemonVoteExtension) XXX_DiscardUnknown()
- func (m *DaemonVoteExtension) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DaemonVoteExtension) XXX_Merge(src proto.Message)
- func (m *DaemonVoteExtension) XXX_Size() int
- func (m *DaemonVoteExtension) XXX_Unmarshal(b []byte) error
- type PricePair
- func (*PricePair) Descriptor() ([]byte, []int)
- func (m *PricePair) GetMarketId() uint32
- func (m *PricePair) GetPnlPrice() []byte
- func (m *PricePair) GetSpotPrice() []byte
- func (m *PricePair) Marshal() (dAtA []byte, err error)
- func (m *PricePair) MarshalTo(dAtA []byte) (int, error)
- func (m *PricePair) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*PricePair) ProtoMessage()
- func (m *PricePair) Reset()
- func (m *PricePair) Size() (n int)
- func (m *PricePair) String() string
- func (m *PricePair) Unmarshal(dAtA []byte) error
- func (m *PricePair) XXX_DiscardUnknown()
- func (m *PricePair) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PricePair) XXX_Merge(src proto.Message)
- func (m *PricePair) XXX_Size() int
- func (m *PricePair) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type DaemonVoteExtension ¶
type DaemonVoteExtension struct { // Prices defines a map of marketId -> PricePair. Prices []PricePair `protobuf:"bytes,1,rep,name=prices,proto3" json:"prices"` }
Daemon VoteExtension defines the vote extension structure for daemon prices.
func (*DaemonVoteExtension) Descriptor ¶
func (*DaemonVoteExtension) Descriptor() ([]byte, []int)
func (*DaemonVoteExtension) GetPrices ¶
func (m *DaemonVoteExtension) GetPrices() []PricePair
func (*DaemonVoteExtension) Marshal ¶
func (m *DaemonVoteExtension) Marshal() (dAtA []byte, err error)
func (*DaemonVoteExtension) MarshalTo ¶
func (m *DaemonVoteExtension) MarshalTo(dAtA []byte) (int, error)
func (*DaemonVoteExtension) MarshalToSizedBuffer ¶
func (m *DaemonVoteExtension) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*DaemonVoteExtension) ProtoMessage ¶
func (*DaemonVoteExtension) ProtoMessage()
func (*DaemonVoteExtension) Reset ¶
func (m *DaemonVoteExtension) Reset()
func (*DaemonVoteExtension) Size ¶
func (m *DaemonVoteExtension) Size() (n int)
func (*DaemonVoteExtension) String ¶
func (m *DaemonVoteExtension) String() string
func (*DaemonVoteExtension) Unmarshal ¶
func (m *DaemonVoteExtension) Unmarshal(dAtA []byte) error
func (*DaemonVoteExtension) XXX_DiscardUnknown ¶
func (m *DaemonVoteExtension) XXX_DiscardUnknown()
func (*DaemonVoteExtension) XXX_Marshal ¶
func (m *DaemonVoteExtension) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*DaemonVoteExtension) XXX_Merge ¶
func (m *DaemonVoteExtension) XXX_Merge(src proto.Message)
func (*DaemonVoteExtension) XXX_Size ¶
func (m *DaemonVoteExtension) XXX_Size() int
func (*DaemonVoteExtension) XXX_Unmarshal ¶
func (m *DaemonVoteExtension) XXX_Unmarshal(b []byte) error
type PricePair ¶
type PricePair struct { MarketId uint32 `protobuf:"varint,1,opt,name=market_id,json=marketId,proto3" json:"market_id,omitempty"` SpotPrice []byte `protobuf:"bytes,2,opt,name=spot_price,json=spotPrice,proto3" json:"spot_price,omitempty"` PnlPrice []byte `protobuf:"bytes,3,opt,name=pnl_price,json=pnlPrice,proto3" json:"pnl_price,omitempty"` }
PricePair defines a pair of prices for a market.
func (*PricePair) Descriptor ¶
func (*PricePair) GetMarketId ¶
func (*PricePair) GetPnlPrice ¶
func (*PricePair) GetSpotPrice ¶
func (*PricePair) MarshalToSizedBuffer ¶
func (*PricePair) ProtoMessage ¶
func (*PricePair) ProtoMessage()
func (*PricePair) XXX_DiscardUnknown ¶
func (m *PricePair) XXX_DiscardUnknown()
func (*PricePair) XXX_Marshal ¶
func (*PricePair) XXX_Unmarshal ¶
Click to show internal directories.
Click to hide internal directories.