mirror of
https://github.com/Ichinga-Samuel/aiomql.git
synced 2026-07-29 05:07:43 +00:00
8.0 KiB
8.0 KiB
Table of Contents
aiomql.core.models
AccountInfo Objects
class AccountInfo(Base)
Account Information Class.
Attributes:
login- intpassword- strserver- strtrade_mode- AccountTradeModebalance- floatleverage- floatprofit- floatpoint- floatamount- float = 0equity- floatcredit- floatmargin- floatmargin_level- floatmargin_free- floatmargin_mode- AccountMarginModemargin_so_mode- AccountStopoutModemargin_so_call- floatmargin_so_so- floatmargin_initial- floatmargin_maintenance- floatfifo_close- boollimit_orders- floatcurrency- str = "USD"trade_allowed- bool = Truetrade_expert- bool = Truecurrency_digits- intassets- floatliabilities- floatcommission_blocked- floatname- strcompany- str
TerminalInfo Objects
class TerminalInfo(Base)
Terminal information class. Holds information about the terminal.
Attributes:
community_account- boolcommunity_connection- boolconnected- booldlls_allowed- booltrade_allowed- booltradeapi_disabled- boolemail_enabled- boolftp_enabled- boolnotifications_enabled- boolmqid- boolbuild- intmaxbars- intcodepage- intping_last- intcommunity_balance- floatretransmission- floatcompany- strname- strlanguage- strpath- strdata_path- strcommondata_path- str
SymbolInfo Objects
class SymbolInfo(Base)
Symbol Information Class. Symbols are financial instruments available for trading in the MetaTrader 5 terminal.
Attributes:
name- strcustom- boolchart_mode- SymbolChartModeselect- boolvisible- boolsession_deals- intsession_buy_orders- intsession_sell_orders- intvolume- floatvolumehigh- floatvolumelow- floattime- intdigits- intspread- floatspread_float- boolticks_bookdepth- inttrade_calc_mode- SymbolCalcModetrade_mode- SymbolTradeModestart_time- intexpiration_time- inttrade_stops_level- inttrade_freeze_level- inttrade_exemode- SymbolTradeExecutionswap_mode- SymbolSwapModeswap_rollover3days- DayOfWeekmargin_hedged_use_leg- boolexpiration_mode- intfilling_mode- intorder_mode- intorder_gtc_mode- SymbolOrderGTCModeoption_mode- SymbolOptionModeoption_right- SymbolOptionRightbid- floatbidhigh- floatbidlow- floatask- floataskhigh- floatasklow- floatlast- floatlasthigh- floatlastlow- floatvolume_real- floatvolumehigh_real- floatvolumelow_real- floatoption_strike- floatpoint- floattrade_tick_value- floattrade_tick_value_profit- floattrade_tick_value_loss- floattrade_tick_size- floattrade_contract_size- floattrade_accrued_interest- floattrade_face_value- floattrade_liquidity_rate- floatvolume_min- floatvolume_max- floatvolume_step- floatvolume_limit- floatswap_long- floatswap_short- floatmargin_initial- floatmargin_maintenance- floatsession_volume- floatsession_turnover- floatsession_interest- floatsession_buy_orders_volume- floatsession_sell_orders_volume- floatsession_open- floatsession_close- floatsession_aw- floatsession_price_settlement- floatsession_price_limit_min- floatsession_price_limit_max- floatmargin_hedged- floatprice_change- floatprice_volatility- floatprice_theoretical- floatprice_greeks_delta- floatprice_greeks_theta- floatprice_greeks_gamma- floatprice_greeks_vega- floatprice_greeks_rho- floatprice_greeks_omega- floatprice_sensitivity- floatbasis- strcategory- strcurrency_base- strcurrency_profit- strcurrency_margin- Anybank- strdescription- strexchange- strformula- Anyisin- Anyname- strpage- strpath- str
BookInfo Objects
class BookInfo(Base)
Book Information Class.
Attributes:
type- BookTypeprice- floatvolume- floatvolume_dbl- float
TradeOrder Objects
class TradeOrder(Base)
Trade Order Class.
Attributes:
ticket- inttime_setup- inttime_setup_msc- inttime_expiration- inttime_done- inttime_done_msc- inttype- OrderTypetype_time- OrderTimetype_filling- OrderFillingstate- intmagic- intposition_id- intposition_by_id- intreason- OrderReasonvolume_current- floatvolume_initial- floatprice_open- floatsl- floattp- floatprice_current- floatprice_stoplimit- floatsymbol- strcomment- strexternal_id- str
TradeRequest Objects
class TradeRequest(Base)
Trade Request Class.
Attributes:
action- TradeActiontype- OrderTypeorder- intsymbol- strvolume- floatsl- floattp- floatprice- floatdeviation- floatstop_limit- floattype_time- OrderTimetype_filling- OrderFillingexpiration- intposition- intposition_by- intcomment- strmagic- intdeviation- intcomment- str
OrderCheckResult Objects
class OrderCheckResult(Base)
Order Check Result
Attributes:
retcode- intbalance- floatequity- floatprofit- floatmargin- floatmargin_free- floatmargin_level- floatcomment- strrequest- TradeRequest
OrderSendResult Objects
class OrderSendResult(Base)
Order Send Result
Attributes:
retcode- intdeal- intorder- intvolume- floatprice- floatbid- floatask- floatcomment- strrequest- TradeRequestrequest_id- intretcode_external- intprofit- float
TradePosition Objects
class TradePosition(Base)
Trade Position
Attributes:
ticket- inttime- inttime_msc- inttime_update- inttime_update_msc- inttype- OrderTypemagic- floatidentifier- intreason- PositionReasonvolume- floatprice_open- floatsl- floattp- floatprice_current- floatswap- floatprofit- floatsymbol- strcomment- strexternal_id- str
TradeDeal Objects
class TradeDeal(Base)
Trade Deal
Attributes:
ticket- intorder- inttime- inttime_msc- inttype- DealTypeentry- DealEntrymagic- intposition_id- intreason- DealReasonvolume- floatprice- floatcommission- floatswap- floatprofit- floatfee- floatsl- floattp- floatsymbol- strcomment- strexternal_id- str