net.sourceforge.eclipsetrader.core
Interface ITradingProvider

All Known Implementing Classes:
TradingProvider

public interface ITradingProvider

Interface for trading provider plugins.


Method Summary
 java.lang.String getName()
           
 java.util.List getRoutes()
          Gets a list of the supported routes (or exchanges).
 java.util.List getSides()
          Gets a list of the supported order sides.
 java.util.List getTypes()
          Gets a list of the supported order types.
 java.util.List getValidity()
          Gets a list of the supported validity values.
 void sendCancelRequest(Order order)
          Send a request to the receiver to cancel the order.
 void sendNew(Order order)
          Send a new order to the receiver.
 void sendReplaceRequest(Order order)
          Send a request to the receiver to replace the order values.
 void setName(java.lang.String name)
           
 

Method Detail

setName

public void setName(java.lang.String name)

getName

public java.lang.String getName()

getTypes

public java.util.List getTypes()
Gets a list of the supported order types.

Returns:
a list or OrderType objects

getSides

public java.util.List getSides()
Gets a list of the supported order sides.

Returns:
a list or OrderSide objects

getValidity

public java.util.List getValidity()
Gets a list of the supported validity values.

Returns:
a list or OrderValidity objects

getRoutes

public java.util.List getRoutes()
Gets a list of the supported routes (or exchanges).

Returns:
a list or OrderRoute objects

sendNew

public void sendNew(Order order)
Send a new order to the receiver. The order instance passed as argument may not be the same instance that is saved in the orders repository. Callers should not add observers or keep the passed instance as it may be never updated.

Parameters:
order - - the order to send

sendCancelRequest

public void sendCancelRequest(Order order)
Send a request to the receiver to cancel the order.

Parameters:
order - - the order to cancel

sendReplaceRequest

public void sendReplaceRequest(Order order)
Send a request to the receiver to replace the order values.

Parameters:
order - - the order to cancel