C# Class MemExchange.ClientApi.Client

Inheritance: IClient
Afficher le fichier Open project: ThomasVestergaard/MemExchange

Méthodes publiques

Méthode 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

Méthode Description
HandleServerMessage ( ServerToClientMessage message ) : void

Method Details

CancelLimitOrder() public méthode

public CancelLimitOrder ( uint exchangeOrderId ) : void
exchangeOrderId uint
Résultat void

CancelStopLimitOrder() public méthode

public CancelStopLimitOrder ( uint exchangeOrderId ) : void
exchangeOrderId uint
Résultat void

Client() public méthode

public Client ( IMessageConnection messageConnection, IServerMessageSubscriber subscriber ) : System
messageConnection IMessageConnection
subscriber IServerMessageSubscriber
Résultat System

ModifyDuoLimitOrders() public méthode

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
Résultat void

ModifyLimitOrder() public méthode

public ModifyLimitOrder ( uint exchangeOrderId, double newPrice, int newQuantity ) : void
exchangeOrderId uint
newPrice double
newQuantity int
Résultat void

ModifyStopLimitOrder() public méthode

public ModifyStopLimitOrder ( uint exchangeOrderId, double newTriggerPrice, double newLimitPrice, int newQuantity ) : void
exchangeOrderId uint
newTriggerPrice double
newLimitPrice double
newQuantity int
Résultat void

RequestOpenLimitOrders() public méthode

public RequestOpenLimitOrders ( ) : void
Résultat void

RequestOpenStopLimitOrders() public méthode

public RequestOpenStopLimitOrders ( ) : void
Résultat void

Start() public méthode

public Start ( int clientId, string serverAddress, int serverCommandPort, int serverPublishPort ) : void
clientId int
serverAddress string
serverCommandPort int
serverPublishPort int
Résultat void

Stop() public méthode

public Stop ( ) : void
Résultat void

SubmitLimitOrder() public méthode

public SubmitLimitOrder ( string symbol, double price, int quantity, WayEnum way ) : void
symbol string
price double
quantity int
way WayEnum
Résultat void

SubmitMarketOrder() public méthode

public SubmitMarketOrder ( string symbol, int quantity, WayEnum way ) : void
symbol string
quantity int
way WayEnum
Résultat void

SubmitStopLimitOrder() public méthode

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