C# Class MemExchange.ClientApi.Client

Inheritance: IClient
Exibir arquivo Open project: ThomasVestergaard/MemExchange

Public Methods

Method Description
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

Private Methods

Method Description
HandleServerMessage ( ServerToClientMessage message ) : void

Method Details

CancelLimitOrder() public method

public CancelLimitOrder ( uint exchangeOrderId ) : void
exchangeOrderId uint
return void

CancelStopLimitOrder() public method

public CancelStopLimitOrder ( uint exchangeOrderId ) : void
exchangeOrderId uint
return void

Client() public method

public Client ( IMessageConnection messageConnection, IServerMessageSubscriber subscriber ) : System
messageConnection IMessageConnection
subscriber IServerMessageSubscriber
return System

ModifyDuoLimitOrders() public method

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
return void

ModifyLimitOrder() public method

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

ModifyStopLimitOrder() public method

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

RequestOpenLimitOrders() public method

public RequestOpenLimitOrders ( ) : void
return void

RequestOpenStopLimitOrders() public method

public RequestOpenStopLimitOrders ( ) : void
return void

Start() public method

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

Stop() public method

public Stop ( ) : void
return void

SubmitLimitOrder() public method

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

SubmitMarketOrder() public method

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

SubmitStopLimitOrder() public method

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