Skip to content

Variables to be used in Execution Module

Usage

Steps to use Execution variables
# Create the Execution object
import quantsapp
qapp_execution = quantsapp.Execution(
    session_context=session_context, # (1)!
)

# Now the variables can be used like below examples
qapp_execution.variables.Exchange.NSE_FNO # (2)!
qapp_execution.variables.Broker.DHAN # (3)!
qapp_execution.variables.BrokerRole.EXECUTOR # (4)!
qapp_execution.variables.BrokerAccountValidity.EXPIRED # (5)!
qapp_execution.variables.OrderBuySell.BUY # (6)!
qapp_execution.variables.OrderProductType.INTRADAY # (7)!
qapp_execution.variables.OrderType.LIMIT # (8)!
qapp_execution.variables.OrderStatus.COMPLETED # (9)!
qapp_execution.variables.OrderValidity.DAY # (10)!
  1. Get the Before session_context via Login to Quantsapp
  2. Exchange variable
  3. Broker variable
  4. BrokerRole variable
  5. BrokerAccountValidity variable
  6. OrderBuySell variable
  7. OrderProductType variable
  8. OrderType variable
  9. OrderStatus variable
  10. OrderValidity variable

Exchange

Bases: StrEnum

Exchange to be used in the execution module

Attributes

NSE_FNO = 'NSE-FO'


Broker

Bases: StrEnum

Broker to be used in the execution module

Attributes

ALICEBLUE = 'aliceblue'

ANGEL = 'angel'

CHOICE = 'choice'

DHAN = 'dhan'

FIVEPAISA = 'fivepaisa'

FIVEPAISA_XTS = 'fivepaisa-xts'

FYERS = 'fyers'

MOTILAL_OSWAL = 'mo'

MSTOCK = 'mstock'

NUVAMA = 'nuvama'

SHAREKHAN = 'sharekhan'

UPSTOX = 'upstox'

ZERODHA = 'zerodha'


BrokerAccountValidity

Bases: StrEnum

Broker Account Validity to be used in the execution module

Attributes

EXPIRED = '-2'

INFINITY = '0'

UNKNOWN = '-1'


BrokerRole

Bases: StrEnum

BrokerRole to be used in the execution module

Attributes

EXECUTOR = 'executor'

OWNER = 'owner'

READER = 'reader'


OrderBuySell

Bases: StrEnum

Order Buy Sell to be used in the execution module

Attributes

BUY = 'b'

SELL = 's'


OrderProductType

Bases: StrEnum

Order Product Type to be used in the execution module

Attributes

INTRADAY = 'intraday'

NRML = 'nrml'


OrderType

Bases: StrEnum

Order Type to be used in the execution module

Attributes

LIMIT = 'limit'

MARKET = 'market'

SLL = 'sll'

SL_M = 'slm'


OrderValidity

Bases: StrEnum

Order Validity to be used in the execution module

Attributes

DAY = 'day'

IOC = 'ioc'


OrderStatus

Bases: StrEnum

Order Status to be used in the execution module

Attributes

CANCELLED = 'cancelled'

COMPLETED = 'completed'

FAILED = 'failed'

PARTIAL = 'partial'

PENDING = 'pending'

PLACED = 'placed'

REJECTED = 'rejected'

TRANSIT = 'transit'