S  PositionService

This service allows access to Position data by various criteria as well as the ability to create a new Position


«service»PositionServicegetPosition( tradeId : string ) :PositionBase?getPositionsByBook( bookId : string ) : list<PositionBase>getPositionsByProduct( type :ProductIdType, productId : string ) : list<PositionBase>createPositionRecord( position :PositionBase)
No constructor arguments

Methods

Name Arguments Return type Description
getPosition
Name Type Description
tradeId string
 T  PositionBase ?

Fetch a position by TradeId. If matching record is found it is return, else none

getPositionsByBook
Name Type Description
bookId string
list<  T  PositionBase >

Fetch all active Positions for the given book

getPositionsByProduct
Name Type Description
type  Em  ProductIdType
productId string
list<  T  PositionBase >

Fetch all active Positions for the given ProductIdType and ProductId

createPositionRecord
Name Type Description
position  T  PositionBase
void

Create a new Position record