Documentation
¶
Index ¶
Constants ¶
View Source
const ( // AccountStateSubscription ... AccountStateSubscription = "account" PositionsStateSubscription = "position" OrdersStateSubscription = "order" HeartbeatSubscription = "account" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Account ¶
type Account struct { XMLName xml.Name `xml:"body"` Username string `xml:"username"` Currency string `xml:"currency"` AccountID int64 `xml:"accountId"` RegistrationLegalEntity string `xml:"registrationLegalEntity"` DisplayLocale string `xml:"displayLocale"` FundingDisallowed bool `xml:"fundingDisallowed"` }
Account ...
type EventsManager ¶
type EventsManager interface { AddEventListener(t events.Type, o events.Observer) RemoveEventListener(t events.Type, o events.Observer) }
EventsManager ...
type Request ¶
type Request interface { Header() map[string]string RequestURI() string Write(w io.Writer) error AddParam(key, value string) }
Request ...
type RequestWrapper ¶
RequestWrapper ...
func NewRequestWrapper ¶
func NewRequestWrapper(r interface{}) *RequestWrapper
NewRequestWrapper ...
func NewSubscriptionWrapper ¶
func NewSubscriptionWrapper(s interface{}) *RequestWrapper
NewSubscriptionWrapper ...
type RestAPI ¶
type RestAPI interface { Post(request Request, success func(r io.Reader), failure func(code int, r io.Reader)) error Get(request Request, success func(r io.Reader), failure func(code int, r io.Reader)) error }
RestAPI ...
type Session ¶
type Session interface { Server RestAPI SessionCredentials EventsManager Logout(request Request, success func(r io.Reader), failure func(code int, r io.Reader)) error HeartbeatRequest(request Request, success func(), failure func(code int, r io.Reader), disconnected func()) error }
Session ...
type SessionCredentials ¶
SessionCredentials ...
Click to show internal directories.
Click to hide internal directories.