English
6. Table Definition
6.1 Account

Account

NamePKTypeDescription
AccountIDStringThe unique identification number of an account.
BalanceDoubleThe amount of funds on the account.
EquityDoubleThe amount of funds on the account, including profits and losses of all open positions (the floating balance of the account).
DayPLDoubleThe amount of profits and losses (both floating and realized) of the current trading day.
UsedMarginDoubleThe amount of funds used to maintain all open positions on the account.
UsableMarginDoubleThe amount of funds available to open new positions or to absorb losses of the existing positions.
GrossPLDoubleThe amount of profits and losses of all open positions on the account.
HedgingStringHedge Transactions [Possible values: 'Y'(enable), 'N'(disable)]
6.2 Offer

Market data

NamePKTypeDescription
OfferIDStringThe unique identification number of the instrument.
SymbolStringThe symbol of the instrument.
BidDoubleThe current market price the instrument can be sold at.
AskDoubleThe current market price the instrument can be bought at.
HighDoubleThe highest ask price of the instrument for the current trading day.
LowDoubleThe lowest bid price of the instrument for the current trading day.
PipCostDoubleThe cost of one pip per lot.
PointSizeDoubleThe size of one pip.
TimeDateThe date and time of the last update of the instrument.
6.3 Order

Order

NamePKTypeDescription
AccountIDStringThe unique identification number of an account.
OrderIDStringThe unique identification number of the order.
RequestIDStringThe identifier of the request to create an order.
OfferIDStringThe unique identification number of the instrument.
SymbolStringThe symbol of the instrument.
TradeIDStringThe unique identification number of the position to be opened/closed by the order.
BSStringThe direction of the trade. [Possible value: 'B'(buy), 'S'(sell)]
AmountDoubleThe amount of the order.
RateDoubleThe price the order is placed at.
StopDoubleThe price of the associated stop order.
LimitDoubleThe price of the associated limit order.
TimeDateThe date and time of the last update of the order.
6.4 Trade

Open position and Closed position

NamePKTypeDescription
AccountIDStringThe unique identification number of an account.
TradeIDStringThe unique identification number of the position.
OfferIDStringThe unique identification number of the instrument.
SymbolStringThe symbol of the instrument.
AmountDoubleThe amount of the position.
BSStringThe trade operation the position is opened by.
[Possible value: 'B'(buy), 'S'(sell)]
OpenDoubleThe price the position is opened at.
CloseDoubleThe price the position is closed at.
StopDoubleThe price of the associated stop order.
LimitDoubleThe price of the associated limit order.
HighDoubleThe highest price ever reached for the instrument opening a position.
LowDoubleThe lowest price ever reached for the instrument opening a position.
PLDoubleThe current profit/loss per one lot of the position.
GrossPLDoubleThe profit/loss of the position.
OpenTimeDateThe date and time when the position is opened.
CloseTimeDateThe date and time when the position is closed.
OpenOrderIDStringThe unique identification number of the order the position is opened by.
CloseOrderIDStringThe unique identification number of the order the position is closed by.
MaxSumPLDoubleMaximum total profit and loss of all opening positions.
MaxSumPLCountIntegerThe number of all opening positions when the total profit and loss reaches the maximum.
MaxSumPLTimeDateThe date and time of all opening positions when the total profit and loss reaches the maximum.
CurSumPLDoubleThe current value of the total profit and loss of all opening positions.
CurSumPLCountIntegerThe number of all opening positions.
6.5 TsContext

The data such as technical indicators at opening position are saved as context information.

NamePKTypeDescription
AccountIDStringThe unique identification number of an account.
OrderIDStringThe unique identification number of the order.
ClassStringThe class of context.
TitleSeqStringThe hash value obtained by concatenating the title of a context item into a string.
C1∼C40StringThe context item (Refer to _SetTsContext, Which can be set up to 40.)
TradeMethodPeriodStringThe candlestick chart minute-hour of trade method (Refer to _SetTradeMethodPeriod)
TradeMethodNameStringThe name of trade method (Refer to _SetTradeMethodName)
TrailMoveTsNameStringThe name of trailing move (Refer to _SetTrailMoveTsName)
NoteStringThe note (Refer to _SetTsContext)
6.6 TsContextTitle

The title of context item

NamePKTypeDescription
TitleSeqStringThe hash value obtained by concatenating the title of a context item into a string.
T1∼T40StringThe title of context item (Refer to _SetTsContext, Which can be set up to 40.)
6.7 ImplPlan

The execution plans

NamePKTypeDescription
AccountIDStringThe unique identification number of an account.
SymbolStringThe symbol of the instrument.
IP1∼IP20StringThe item of execution plans (Refer to _LoadImplPlan, Which can be set up to 20.)