C# 클래스 MemExchange.ClientApi.Client

상속: IClient
파일 보기 프로젝트 열기: ThomasVestergaard/MemExchange

공개 메소드들

메소드 설명
CancelLimitOrder ( uint exchangeOrderId ) : void
CancelStopLimitOrder ( uint exchangeOrderId ) : void
Client ( IMessageConnection messageConnection, IServerMessageSubscriber subscriber ) : System
ModifyDuoLimitOrders ( uint order1OrderId, double order1NewPrice, int order1NewQuantity, uint order2OrderId, double order2NewPrice, int order2NewQuantity ) : void
ModifyLimitOrder ( uint exchangeOrderId, double newPrice, int newQuantity ) : void
ModifyStopLimitOrder ( uint exchangeOrderId, double newTriggerPrice, double newLimitPrice, int newQuantity ) : void
RequestOpenLimitOrders ( ) : void
RequestOpenStopLimitOrders ( ) : void
Start ( int clientId, string serverAddress, int serverCommandPort, int serverPublishPort ) : void
Stop ( ) : void
SubmitLimitOrder ( string symbol, double price, int quantity, WayEnum way ) : void
SubmitMarketOrder ( string symbol, int quantity, WayEnum way ) : void
SubmitStopLimitOrder ( string symbol, double triggerPrice, double limitPrice, int quantity, WayEnum way ) : void

비공개 메소드들

메소드 설명
HandleServerMessage ( ServerToClientMessage message ) : void

메소드 상세

CancelLimitOrder() 공개 메소드

public CancelLimitOrder ( uint exchangeOrderId ) : void
exchangeOrderId uint
리턴 void

CancelStopLimitOrder() 공개 메소드

public CancelStopLimitOrder ( uint exchangeOrderId ) : void
exchangeOrderId uint
리턴 void

Client() 공개 메소드

public Client ( IMessageConnection messageConnection, IServerMessageSubscriber subscriber ) : System
messageConnection IMessageConnection
subscriber IServerMessageSubscriber
리턴 System

ModifyDuoLimitOrders() 공개 메소드

public ModifyDuoLimitOrders ( uint order1OrderId, double order1NewPrice, int order1NewQuantity, uint order2OrderId, double order2NewPrice, int order2NewQuantity ) : void
order1OrderId uint
order1NewPrice double
order1NewQuantity int
order2OrderId uint
order2NewPrice double
order2NewQuantity int
리턴 void

ModifyLimitOrder() 공개 메소드

public ModifyLimitOrder ( uint exchangeOrderId, double newPrice, int newQuantity ) : void
exchangeOrderId uint
newPrice double
newQuantity int
리턴 void

ModifyStopLimitOrder() 공개 메소드

public ModifyStopLimitOrder ( uint exchangeOrderId, double newTriggerPrice, double newLimitPrice, int newQuantity ) : void
exchangeOrderId uint
newTriggerPrice double
newLimitPrice double
newQuantity int
리턴 void

RequestOpenLimitOrders() 공개 메소드

public RequestOpenLimitOrders ( ) : void
리턴 void

RequestOpenStopLimitOrders() 공개 메소드

public RequestOpenStopLimitOrders ( ) : void
리턴 void

Start() 공개 메소드

public Start ( int clientId, string serverAddress, int serverCommandPort, int serverPublishPort ) : void
clientId int
serverAddress string
serverCommandPort int
serverPublishPort int
리턴 void

Stop() 공개 메소드

public Stop ( ) : void
리턴 void

SubmitLimitOrder() 공개 메소드

public SubmitLimitOrder ( string symbol, double price, int quantity, WayEnum way ) : void
symbol string
price double
quantity int
way WayEnum
리턴 void

SubmitMarketOrder() 공개 메소드

public SubmitMarketOrder ( string symbol, int quantity, WayEnum way ) : void
symbol string
quantity int
way WayEnum
리턴 void

SubmitStopLimitOrder() 공개 메소드

public SubmitStopLimitOrder ( string symbol, double triggerPrice, double limitPrice, int quantity, WayEnum way ) : void
symbol string
triggerPrice double
limitPrice double
quantity int
way WayEnum
리턴 void