Classes Files

com::wombat::mamda::MamdaTradeSide

More…

Public Functions

  Name
String toString(short tradeSide)
short mamdaTradeSideFromString(String tradeSide)
void setState(short side)
short getState()

Public Attributes

  Name
final short TRADE_SIDE_UNKNOWN
final short TRADE_SIDE_BUY
final short TRADE_SIDE_SELL

Detailed Description

class com::wombat::mamda::MamdaTradeSide;

A class representing trade Side.

Public Functions Documentation

function toString

static inline String toString(
    short tradeSide
)

Parameters:

  • tradeSide The tradeSide as a short.

Convert a MamdaTradeSide to an appropriate, displayable string.

function mamdaTradeSideFromString

static inline short mamdaTradeSideFromString(
    String tradeSide
)

function setState

inline void setState(
    short side
)

function getState

inline short getState()

Public Attributes Documentation

variable TRADE_SIDE_UNKNOWN

static final short TRADE_SIDE_UNKNOWN = 0;

The Values of TradeSide: The value 0 maps to Unknown The value 1 maps to Buy The value 2 maps to Sell

variable TRADE_SIDE_BUY

static final short TRADE_SIDE_BUY = 1;

variable TRADE_SIDE_SELL

static final short TRADE_SIDE_SELL = 2;

Updated on 2023-03-31 at 15:30:36 +0100