Q26 ALPHA-TRADING SYSTEM
Public Member Functions | Public Attributes | List of all members
POSITION Class Reference

Public Member Functions

def __init__ (self)
 
def read (self)
 

Public Attributes

 orderID
 
 symbol
 
 volume
 
 action
 
 executionPrice
 
 executionDate
 
 brokerLoan
 
 requestMargin
 
 possibleClosePrice
 
 possibleCloseDate
 
 profit
 
 comment
 
 closed
 

Detailed Description


Q26 - QuanTester module - POSITION object.

Description :

Examples :

Planned developments :

Known bugs :

Member Data Documentation

◆ action

action

Action position

Type : string
Defaut value : None
Description :
Position direction ("long" or "short").

◆ brokerLoan

brokerLoan

Broker Loan

Type : float
Defaut value : None
Description :
Broker loan at position opening (to be reimbursed).

◆ closed

closed

Position status

Type : boolean
Defaut value : False
Description :
True if the POSITION is closed.

◆ comment

comment

User comment

Type : string
Defaut value : None
Description :
User can write a comment if he close the position manually.

◆ executionDate

executionDate

Execution date

Type : datetime
Defaut value : None
Description :
Execution date at position opening.

◆ executionPrice

executionPrice

Execution price

Type : float
Defaut value : None
Description :
Execution price at position opening.

◆ orderID

orderID

Order ID

Type : integer
Defaut value : None
Description :
ID of the parent order that generated the POSITION.

◆ possibleCloseDate

possibleCloseDate

Potential close date

Type : datetime
Defaut value : None
Description :
Potential date if close now.

◆ possibleClosePrice

possibleClosePrice

Potential close price

Type : float
Defaut value : None
Description :
Potential price if close now.

◆ profit

profit

Potential profit

Type : float
Defaut value : None
Description :
Potential profit if close now.

◆ requestMargin

requestMargin

Paid Margin

Type : float
Defaut value : None
Description :
Margin paid by the user to open this position.

◆ symbol

symbol

Symbol name

Type : string
Defaut value : None
Description :
Name of the symbol on which the POSITION is active.

◆ volume

volume

Asset volume

Type : float
Defaut value : None
Description :
Current owned volume of the asset.


The documentation for this class was generated from the following file: