diff --git a/.github/workflows/code_generators.yml b/.github/workflows/code_generators.yml index 5ad7650d40..4ab56a19a7 100644 --- a/.github/workflows/code_generators.yml +++ b/.github/workflows/code_generators.yml @@ -12,7 +12,6 @@ jobs: matrix: script: [Alternative-Datasets-Code-Generator, API-Reference-Code-Generator, - enum-table-generator, fred-categories-table-code-generator, fundamentals-table-code-generator, future-table-code-generator, diff --git a/03 Writing Algorithms/03 Securities/99 Asset Classes/03 Crypto/01 Requesting Data/06 Supported Markets.php b/03 Writing Algorithms/03 Securities/99 Asset Classes/03 Crypto/01 Requesting Data/06 Supported Markets.php index d217023933..a30a10ccc7 100644 --- a/03 Writing Algorithms/03 Securities/99 Asset Classes/03 Crypto/01 Requesting Data/06 Supported Markets.php +++ b/03 Writing Algorithms/03 Securities/99 Asset Classes/03 Crypto/01 Requesting Data/06 Supported Markets.php @@ -1,4 +1,4 @@ - +

To set the market for a security, pass a market argument to the AddCryptoadd_crypto method.

diff --git a/03 Writing Algorithms/03 Securities/99 Asset Classes/06 Futures/01 Requesting Data/04 Supported Markets.php b/03 Writing Algorithms/03 Securities/99 Asset Classes/06 Futures/01 Requesting Data/04 Supported Markets.php index e2683de046..476c6edd53 100644 --- a/03 Writing Algorithms/03 Securities/99 Asset Classes/06 Futures/01 Requesting Data/04 Supported Markets.php +++ b/03 Writing Algorithms/03 Securities/99 Asset Classes/06 Futures/01 Requesting Data/04 Supported Markets.php @@ -1,4 +1,4 @@ - +

Historical data for backtesting is unavailable for ICE, INDIA, SGX and NYSELIFFE. In live trading, LEAN sources this data from your brokerage or a third-party data provider.

diff --git a/03 Writing Algorithms/03 Securities/99 Asset Classes/07 Future Options/01 Requesting Data/04 Supported Markets.php b/03 Writing Algorithms/03 Securities/99 Asset Classes/07 Future Options/01 Requesting Data/04 Supported Markets.php index a4ed5aae55..a2b39ce9eb 100644 --- a/03 Writing Algorithms/03 Securities/99 Asset Classes/07 Future Options/01 Requesting Data/04 Supported Markets.php +++ b/03 Writing Algorithms/03 Securities/99 Asset Classes/07 Future Options/01 Requesting Data/04 Supported Markets.php @@ -1,3 +1,3 @@ - +

You don't need to pass a Market argument to the AddFutureOptionContractadd_future_option_contract method because the contract Symbol already contains the market.

diff --git a/03 Writing Algorithms/03 Securities/99 Asset Classes/09 Index Options/01 Requesting Data/04 Supported Markets.php b/03 Writing Algorithms/03 Securities/99 Asset Classes/09 Index Options/01 Requesting Data/04 Supported Markets.php index 66a5ea46a4..b4b07d08c9 100644 --- a/03 Writing Algorithms/03 Securities/99 Asset Classes/09 Index Options/01 Requesting Data/04 Supported Markets.php +++ b/03 Writing Algorithms/03 Securities/99 Asset Classes/09 Index Options/01 Requesting Data/04 Supported Markets.php @@ -1,3 +1,3 @@ - +

You don't need to pass a Marketmarket argument to the AddIndexOptionContractadd_index_option_contract method because the contract Symbol already contains the market.

diff --git a/04 Research Environment/03 Datasets/10 Crypto/07 Markets.php b/04 Research Environment/03 Datasets/10 Crypto/07 Markets.php index 24795310d5..c6d198b8cb 100644 --- a/04 Research Environment/03 Datasets/10 Crypto/07 Markets.php +++ b/04 Research Environment/03 Datasets/10 Crypto/07 Markets.php @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/04 Research Environment/03 Datasets/12 Futures/06 Markets.php b/04 Research Environment/03 Datasets/12 Futures/06 Markets.php index e6ca0872df..bc5194a24a 100644 --- a/04 Research Environment/03 Datasets/12 Futures/06 Markets.php +++ b/04 Research Environment/03 Datasets/12 Futures/06 Markets.php @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/04 Research Environment/03 Datasets/14 Futures Options/06 Markets.php b/04 Research Environment/03 Datasets/14 Futures Options/06 Markets.php index e2de90cdf0..d74e7160e9 100644 --- a/04 Research Environment/03 Datasets/14 Futures Options/06 Markets.php +++ b/04 Research Environment/03 Datasets/14 Futures Options/06 Markets.php @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/04 Research Environment/03 Datasets/22 Index Options/06 Markets.php b/04 Research Environment/03 Datasets/22 Index Options/06 Markets.php index 69127f96a6..b386fb6bdc 100644 --- a/04 Research Environment/03 Datasets/22 Index Options/06 Markets.php +++ b/04 Research Environment/03 Datasets/22 Index Options/06 Markets.php @@ -1,3 +1,3 @@ \ No newline at end of file diff --git a/Resources/enumerations/market-cfd.html b/Resources/datasets/supported-securities/cfd/market.html similarity index 100% rename from Resources/enumerations/market-cfd.html rename to Resources/datasets/supported-securities/cfd/market.html diff --git a/Resources/datasets/supported-securities/crypto/market.html b/Resources/datasets/supported-securities/crypto/market.html new file mode 100644 index 0000000000..251e37b9c8 --- /dev/null +++ b/Resources/datasets/supported-securities/crypto/market.html @@ -0,0 +1,2 @@ +

The following Market enumeration members are available for Crypto:

+
\ No newline at end of file diff --git a/Resources/enumerations/market-cryptofuture.html b/Resources/datasets/supported-securities/cryptofuture/market.html similarity index 52% rename from Resources/enumerations/market-cryptofuture.html rename to Resources/datasets/supported-securities/cryptofuture/market.html index 4350121cc9..8401e91573 100644 --- a/Resources/enumerations/market-cryptofuture.html +++ b/Resources/datasets/supported-securities/cryptofuture/market.html @@ -1,2 +1,2 @@

The following Market enumeration members are available for Cryptofuture:

-
\ No newline at end of file +
\ No newline at end of file diff --git a/Resources/enumerations/market-equity.html b/Resources/datasets/supported-securities/equity/market.html similarity index 100% rename from Resources/enumerations/market-equity.html rename to Resources/datasets/supported-securities/equity/market.html diff --git a/Resources/enumerations/market-forex.html b/Resources/datasets/supported-securities/forex/market.html similarity index 100% rename from Resources/enumerations/market-forex.html rename to Resources/datasets/supported-securities/forex/market.html diff --git a/Resources/enumerations/market-future.html b/Resources/datasets/supported-securities/future/market.html similarity index 100% rename from Resources/enumerations/market-future.html rename to Resources/datasets/supported-securities/future/market.html diff --git a/Resources/enumerations/market-futureoption.html b/Resources/datasets/supported-securities/futureoption/market.html similarity index 100% rename from Resources/enumerations/market-futureoption.html rename to Resources/datasets/supported-securities/futureoption/market.html diff --git a/Resources/enumerations/market-index.html b/Resources/datasets/supported-securities/index/market.html similarity index 100% rename from Resources/enumerations/market-index.html rename to Resources/datasets/supported-securities/index/market.html diff --git a/Resources/enumerations/market-indexoption.html b/Resources/datasets/supported-securities/indexoption/market.html similarity index 100% rename from Resources/enumerations/market-indexoption.html rename to Resources/datasets/supported-securities/indexoption/market.html diff --git a/Resources/enumerations/market-option.html b/Resources/datasets/supported-securities/option/market.html similarity index 100% rename from Resources/enumerations/market-option.html rename to Resources/datasets/supported-securities/option/market.html diff --git a/Resources/enumerations/account_type.html b/Resources/enumerations/account_type.html deleted file mode 100644 index 3e7ef1e132..0000000000 --- a/Resources/enumerations/account_type.html +++ /dev/null @@ -1,29 +0,0 @@ -

The following table describes the AccountType enumeration members:

- - - - - - - - - - - - - - - - - - - - - -
MemberValueDescription
MarginMARGIN0Margin account type (0)
CashCASH1Cash account type (1)
- - \ No newline at end of file diff --git a/Resources/enumerations/algorithm_mode.html b/Resources/enumerations/algorithm_mode.html deleted file mode 100644 index a1bfd49b66..0000000000 --- a/Resources/enumerations/algorithm_mode.html +++ /dev/null @@ -1,39 +0,0 @@ -

The following table describes the AlgorithmMode enumeration members:

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
MemberValueDescription
LiveLIVE0Live (0)
OptimizationOPTIMIZATION1Optimization (1)
BacktestingBACKTESTING2Backtesting (2)
ResearchRESEARCH3Research (3)
- - \ No newline at end of file diff --git a/Resources/enumerations/algorithm_status.html b/Resources/enumerations/algorithm_status.html deleted file mode 100644 index d3110524cf..0000000000 --- a/Resources/enumerations/algorithm_status.html +++ /dev/null @@ -1,79 +0,0 @@ -

The following table describes the AlgorithmStatus enumeration members:

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
MemberValueDescription
DeployErrorDEPLOY_ERROR0Error compiling algorithm at start (0)
InQueueIN_QUEUE1Waiting for a server (1)
RunningRUNNING2Running algorithm (2)
StoppedSTOPPED3Stopped algorithm or exited with runtime errors (3)
LiquidatedLIQUIDATED4Liquidated algorithm (4)
DeletedDELETED5Algorithm has been deleted (5)
CompletedCOMPLETED6Algorithm completed running (6)
RuntimeErrorRUNTIME_ERROR7Runtime Error Stoped Algorithm (7)
InvalidINVALID8Error in the algorithm id (not used) (8)
LoggingInLOGGING_IN9The algorithm is logging into the brokerage (9)
InitializingINITIALIZING10The algorithm is initializing (10)
HistoryHISTORY11History status update (11)
- - \ No newline at end of file diff --git a/Resources/enumerations/bar_direction.html b/Resources/enumerations/bar_direction.html deleted file mode 100644 index 53421d1143..0000000000 --- a/Resources/enumerations/bar_direction.html +++ /dev/null @@ -1,34 +0,0 @@ -

The following table describes the BarDirection enumeration members:

- - - - - - - - - - - - - - - - - - - - - - - - - - -
MemberValueDescription
RisingRISING0Rising bar (0)
NoDeltaNO_DELTA1No change (1)
FallingFALLING2Falling bar (2)
- - \ No newline at end of file diff --git a/Resources/enumerations/brokerage_environment.html b/Resources/enumerations/brokerage_environment.html deleted file mode 100644 index 15bcf2527e..0000000000 --- a/Resources/enumerations/brokerage_environment.html +++ /dev/null @@ -1,29 +0,0 @@ -

The following table describes the BrokerageEnvironment enumeration members:

- - - - - - - - - - - - - - - - - - - - - -
MemberValueDescription
LiveLIVE0Live trading (0)
PaperPAPER1Paper trading (1)
- - \ No newline at end of file diff --git a/Resources/enumerations/brokerage_message_type.html b/Resources/enumerations/brokerage_message_type.html deleted file mode 100644 index 626c88a7b2..0000000000 --- a/Resources/enumerations/brokerage_message_type.html +++ /dev/null @@ -1,44 +0,0 @@ -

The following table describes the BrokerageMessageType enumeration members:

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
MemberValueDescription
InformationINFORMATION0Informational message (0)
WarningWARNING1Warning message (1)
ErrorERROR2Fatal error message, the algo will be stopped (2)
ReconnectRECONNECT3Brokerage reconnected with remote server (3)
DisconnectDISCONNECT4Brokerage disconnected from remote server (4)
- - \ No newline at end of file diff --git a/Resources/enumerations/candle_color.html b/Resources/enumerations/candle_color.html deleted file mode 100644 index a24566c80f..0000000000 --- a/Resources/enumerations/candle_color.html +++ /dev/null @@ -1,29 +0,0 @@ -

The following table describes the CandleColor enumeration members:

- - - - - - - - - - - - - - - - - - - - - -
MemberValueDescription
BlackBLACK-1Black is a down candle (close lower than open) (-1)
WhiteWHITE1White is an up candle (close higher or equal than open) (1)
- - \ No newline at end of file diff --git a/Resources/enumerations/candle_range_type.html b/Resources/enumerations/candle_range_type.html deleted file mode 100644 index 9e7ff3c98a..0000000000 --- a/Resources/enumerations/candle_range_type.html +++ /dev/null @@ -1,34 +0,0 @@ -

The following table describes the CandleRangeType enumeration members:

- - - - - - - - - - - - - - - - - - - - - - - - - - -
MemberValueDescription
RealBodyREAL_BODY0The part of the candle between open and close (0)
HighLowHIGH_LOW1The complete range of the candle (1)
ShadowsSHADOWS2The shadows (or tails) of the candle (2)
- - \ No newline at end of file diff --git a/Resources/enumerations/candle_setting_type.html b/Resources/enumerations/candle_setting_type.html deleted file mode 100644 index a16a1927fb..0000000000 --- a/Resources/enumerations/candle_setting_type.html +++ /dev/null @@ -1,74 +0,0 @@ -

The following table describes the CandleSettingType enumeration members:

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
MemberValueDescription
BodyLongBODY_LONG0Real body is long when it's longer than the average of the 10 previous candles' real body (0)
BodyVeryLongBODY_VERY_LONG1Real body is very long when it's longer than 3 times the average of the 10 previous candles' real body (1)
BodyShortBODY_SHORT2Real body is short when it's shorter than the average of the 10 previous candles' real bodies (2)
BodyDojiBODY_DOJI3Real body is like doji's body when it's shorter than 10% the average of the 10 previous candles' high-low range (3)
ShadowLongSHADOW_LONG4Shadow is long when it's longer than the real body (4)
ShadowVeryLongSHADOW_VERY_LONG5Shadow is very long when it's longer than 2 times the real body (5)
ShadowShortSHADOW_SHORT6Shadow is short when it's shorter than half the average of the 10 previous candles' sum of shadows (6)
ShadowVeryShortSHADOW_VERY_SHORT7Shadow is very short when it's shorter than 10% the average of the 10 previous candles' high-low range (7)
NearNEAR8When measuring distance between parts of candles or width of gaps "near" means "<= 20% of the average of the 5 previous candles' high-low range" (8)
FarFAR9When measuring distance between parts of candles or width of gaps "far" means ">= 60% of the average of the 5 previous candles' high-low range" (9)
EqualEQUAL10When measuring distance between parts of candles or width of gaps "equal" means "<= 5% of the average of the 5 previous candles' high-low range" (10)
- - \ No newline at end of file diff --git a/Resources/enumerations/cash_book_update_type.html b/Resources/enumerations/cash_book_update_type.html deleted file mode 100644 index 0c1b081260..0000000000 --- a/Resources/enumerations/cash_book_update_type.html +++ /dev/null @@ -1,34 +0,0 @@ -

The following table describes the CashBookUpdateType enumeration members:

- - - - - - - - - - - - - - - - - - - - - - - - - - -
MemberValueDescription
AddedADDED0A new Cash.Symbol was added (0)
RemovedREMOVED1One or more Cash instances were removed (1)
UpdatedUPDATED2An existing Cash.Symbol was updated (2)
- - \ No newline at end of file diff --git a/Resources/enumerations/channel_status.html b/Resources/enumerations/channel_status.html deleted file mode 100644 index 5155db07e4..0000000000 --- a/Resources/enumerations/channel_status.html +++ /dev/null @@ -1,23 +0,0 @@ -

The following table describes the ChannelStatus enumeration members:

- - - - - - - - - - - - - - - - - - - - - -
MemberValueDescription
VacatedVACATED"channel_vacated"The channel is empty
OccupiedOCCUPIED"channel_occupied"The channel has subscribers
diff --git a/Resources/enumerations/chart_type.html b/Resources/enumerations/chart_type.html deleted file mode 100644 index 6c2c5cf7af..0000000000 --- a/Resources/enumerations/chart_type.html +++ /dev/null @@ -1,29 +0,0 @@ -

The following table describes the ChartType enumeration members:

- - - - - - - - - - - - - - - - - - - - - -
MemberValueDescription
OverlayOVERLAY0Overlayed stacked (0)
StackedSTACKED1Stacked series on top of each other. (1)
- - \ No newline at end of file diff --git a/Resources/enumerations/crisis_event.html b/Resources/enumerations/crisis_event.html deleted file mode 100644 index 413ba39693..0000000000 --- a/Resources/enumerations/crisis_event.html +++ /dev/null @@ -1,104 +0,0 @@ -

The following table describes the CrisisEvent enumeration members:

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
MemberValueDescription
DotComDOT_COM0DotCom bubble - https://en.wikipedia.org/wiki/Dot-com_bubble (0)
SeptemberEleventhSEPTEMBER_ELEVENTH1September 11, 2001 attacks - https://en.wikipedia.org/wiki/September_11_attacks (1)
USHousingBubble2003US_HOUSING_BUBBLE20032United States housing bubble - https://en.wikipedia.org/wiki/United_States_housing_bubble (2)
GlobalFinancialCrisisGLOBAL_FINANCIAL_CRISIS3https://en.wikipedia.org/wiki/Financial_crisis_of_2007%E2%80%9308 (3)
FlashCrashFLASH_CRASH4The flash crash of 2010 - https://en.wikipedia.org/wiki/2010_Flash_Crash (4)
FukushimaMeltdownFUKUSHIMA_MELTDOWN5Fukushima nuclear power plant meltdown - https://en.wikipedia.org/wiki/Fukushima_Daiichi_nuclear_disaster (5)
USDowngradeEuropeanDebtUS_DOWNGRADE_EUROPEAN_DEBT6United States credit rating downgrade - https://en.wikipedia.org/wiki/United_States_federal_government_credit-rating_downgrades European debt crisis - https://en.wikipedia.org/wiki/European_debt_crisis (6)
EurozoneSeptember2012EUROZONE_SEPTEMBER20127European debt crisis - https://en.wikipedia.org/wiki/European_debt_crisis (7)
EurozoneOctober2014EUROZONE_OCTOBER20148European debt crisis - https://en.wikipedia.org/wiki/European_debt_crisis (8)
MarketSellOff2015MARKET_SELL_OFF201592015-2016 market sell off https://en.wikipedia.org/wiki/2015%E2%80%9316_stock_market_selloff (9)
RecoveryRECOVERY10Crisis recovery (2010 - 2012) (10)
NewNormalNEW_NORMAL112014 - 2019 market performance (11)
COVID19COVID1912COVID-19 pandemic market crash (12)
PostCOVIDRunUpPOST_C_O_V_I_D_RUN_UP13Post COVID-19 recovery (13)
MemeSeasonMEME_SEASON14Meme-craze era like GME, AMC, and DOGE (14)
RussiaInvadesUkraineRUSSIA_INVADES_UKRAINE15Russia invased Ukraine (15)
AIBoomA_I_BOOM16Artificial intelligence boom (16)
- - \ No newline at end of file diff --git a/Resources/enumerations/data_feed_endpoint.html b/Resources/enumerations/data_feed_endpoint.html deleted file mode 100644 index 50686976d2..0000000000 --- a/Resources/enumerations/data_feed_endpoint.html +++ /dev/null @@ -1,39 +0,0 @@ -

The following table describes the DataFeedEndpoint enumeration members:

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
MemberValueDescription
BacktestingBACKTESTING0Backtesting Datafeed Endpoint (0)
FileSystemFILE_SYSTEM1Loading files off the local system (1)
LiveTradingLIVE_TRADING2Getting datafeed from a QC-Live-Cloud (2)
DatabaseDATABASE3Database (3)
- - \ No newline at end of file diff --git a/Resources/enumerations/data_mapping_mode.html b/Resources/enumerations/data_mapping_mode.html deleted file mode 100644 index 7c077b0211..0000000000 --- a/Resources/enumerations/data_mapping_mode.html +++ /dev/null @@ -1,39 +0,0 @@ -

The following table describes the DataMappingMode enumeration members:

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
MemberValueDescription
LastTradingDayLAST_TRADING_DAY0The contract maps on the previous day of expiration of the front month (0)
FirstDayMonthFIRST_DAY_MONTH1The contract maps on the first date of the delivery month of the front month. If the contract expires prior to this date, then it rolls on the contract's last trading date instead (1) For example, the Crude Oil WTI (CL) 'DEC 2021 CLZ1' contract expires on November, 19 2021, so the mapping date will be its expiration date. Another example is the Corn 'DEC 2021 ZCZ1' contract, which expires on December, 14 2021, so the mapping date will be December 1, 2021.
OpenInterestOPEN_INTEREST2The contract maps when the following back month contract has a higher open interest that the current front month (2)
OpenInterestAnnualOPEN_INTEREST_ANNUAL3The contract maps when any of the back month contracts of the next year have a higher volume that the current front month (3)
- - \ No newline at end of file diff --git a/Resources/enumerations/data_normalization_mode.html b/Resources/enumerations/data_normalization_mode.html deleted file mode 100644 index 47daf3e058..0000000000 --- a/Resources/enumerations/data_normalization_mode.html +++ /dev/null @@ -1,59 +0,0 @@ -

The following table describes the DataNormalizationMode enumeration members:

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
MemberValueDescription
RawRAW0No modifications to the asset price at all. For Equities, dividends are paid in cash and splits are applied directly to your portfolio quantity. (0)
AdjustedADJUSTED1Splits and dividends are backward-adjusted into the price of the asset. The price today is identical to the current market price. (1)
SplitAdjustedSPLIT_ADJUSTED2Equity splits are applied to the price adjustment but dividends are paid in cash to your portfolio. This normalization mode allows you to manage dividend payments (e.g. reinvestment) while still giving a smooth time series of prices for indicators. (2)
TotalReturnTOTAL_RETURN3Equity splits are applied to the price adjustment and the value of all future dividend payments is added to the initial asset price. (3)
ForwardPanamaCanalFORWARD_PANAMA_CANAL4Eliminates price jumps between two consecutive contracts, adding a factor based on the difference of their prices. The first contract has the true price. Factor 0. (4) First contract is the true one, factor 0
BackwardsPanamaCanalBACKWARDS_PANAMA_CANAL5Eliminates price jumps between two consecutive contracts, adding a factor based on the difference of their prices. The last contract has the true price. Factor 0. (5) Last contract is the true one, factor 0
BackwardsRatioBACKWARDS_RATIO6Eliminates price jumps between two consecutive contracts, multiplying the prices by their ratio. The last contract has the true price. Factor 1. (6) Last contract is the true one, factor 1
ScaledRawSCALED_RAW7Splits and dividends are adjusted into the prices in a given date. Only for history requests. (7)
- - \ No newline at end of file diff --git a/Resources/enumerations/date_format.html b/Resources/enumerations/date_format.html deleted file mode 100644 index 3ec70fde81..0000000000 --- a/Resources/enumerations/date_format.html +++ /dev/null @@ -1,78 +0,0 @@ -

The following table describes the DateFormat enumeration members:

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
MemberValueDescription
SixCharacterSIX_CHARACTER"yyMMdd"Year-Month-Date 6 Character Date Representation
EightCharacterEIGHT_CHARACTER"yyyyMMdd"YYYY-MM-DD Eight Character Date Representation
TwelveCharacterTWELVE_CHARACTER"yyyyMMdd HH:mm"Daily and hourly time format
DBDB"yyyy-MM-dd HH:mm:ss"MySQL Format Date Representation
UIUI"yyyy-MM-dd HH:mm:ss"QuantConnect UX Date Representation
USShortUS_SHORT"M/d/yy h:mm tt"en-US Short Date and Time Pattern
USShortDateOnlyUS_SHORT_DATE_ONLY"M/d/yy"en-US Short Date Pattern
USUS"M/d/yyyy h:mm:ss tt"en-US format
USDateOnlyUS_DATE_ONLY"M/d/yyyy"en-US Date format
ForexFOREX"yyyyMMdd HH:mm:ss.ffff"Date format of QC forex data
FIXFIX"yyyyMMdd-HH:mm:ss"Date format of FIX Protocol UTC Timestamp without milliseconds
FIXWithMillisecondF_I_X_WITH_MILLISECOND"yyyyMMdd-HH:mm:ss.fff"Date format of FIX Protocol UTC Timestamp with milliseconds
YearMonthYEAR_MONTH"yyyyMM"YYYYMM Year and Month Character Date Representation (used for futures)
diff --git a/Resources/enumerations/delisting_type.html b/Resources/enumerations/delisting_type.html deleted file mode 100644 index c101f953dc..0000000000 --- a/Resources/enumerations/delisting_type.html +++ /dev/null @@ -1,29 +0,0 @@ -

The following table describes the DelistingType enumeration members:

- - - - - - - - - - - - - - - - - - - - - -
MemberValueDescription
WarningWARNING0Specifies a warning of an imminent delisting (0)
DelistedDELISTED1Specifies the symbol has been delisted (1)
- - \ No newline at end of file diff --git a/Resources/enumerations/deployment_target.html b/Resources/enumerations/deployment_target.html deleted file mode 100644 index 55e8f19409..0000000000 --- a/Resources/enumerations/deployment_target.html +++ /dev/null @@ -1,29 +0,0 @@ -

The following table describes the DeploymentTarget enumeration members:

- - - - - - - - - - - - - - - - - - - - - -
MemberValueDescription
CloudPlatformCLOUD_PLATFORM0Cloud Platform (0)
LocalPlatformLOCAL_PLATFORM1Local Platform (1)
- - \ No newline at end of file diff --git a/Resources/enumerations/field.html b/Resources/enumerations/field.html deleted file mode 100644 index f7514244b5..0000000000 --- a/Resources/enumerations/field.html +++ /dev/null @@ -1,52 +0,0 @@ -

The following table describes the Field class selector methods:

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
ValueDescription
Field.OpenSelects the Open price
Field.HighSelects the High price
Field.LowSelects the Low price
Field.CloseSelects the Close value
Field.VolumeSelects the Volume. The value is zero if no TradeBar information is available.
Field.AverageSelects the Average price that is equal to (O + H + L + C) / 4
Field.MedianSelects the Median price that is equal to (H + L) / 2
Field.TypicalSelects the Typical price that is equal to (H + L + C) / 3
Field.WeightedSelects the Weighted price that is equal to (H + L + 2 * C) / 4
Field.SevenBarSelects the SevenBar price that is equal to (2 * O + H + L + 3 * C)/7
\ No newline at end of file diff --git a/Resources/enumerations/file_format.html b/Resources/enumerations/file_format.html deleted file mode 100644 index 56659298d6..0000000000 --- a/Resources/enumerations/file_format.html +++ /dev/null @@ -1,49 +0,0 @@ -

The following table describes the FileFormat enumeration members:

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
MemberValueDescription
CsvCSV0Comma separated values (0)
BinaryBINARY1Binary file data (1)
ZipEntryNameZIP_ENTRY_NAME2Only the zip entry names are read in as symbols (2)
UnfoldingCollectionUNFOLDING_COLLECTION3Reader returns a BaseDataCollection object (3) Lean will unfold the collection and consume it as individual data points
IndexINDEX4Data stored using an intermediate index source (4)
FoldingCollectionFOLDING_COLLECTION5Data type inherits from BaseDataCollection. Reader method can return a non BaseDataCollection type which will be folded, based on unique time, into an instance of the data type (5)
- - \ No newline at end of file diff --git a/Resources/enumerations/fill_grouping_method.html b/Resources/enumerations/fill_grouping_method.html deleted file mode 100644 index c7f0a06173..0000000000 --- a/Resources/enumerations/fill_grouping_method.html +++ /dev/null @@ -1,34 +0,0 @@ -

The following table describes the FillGroupingMethod enumeration members:

- - - - - - - - - - - - - - - - - - - - - - - - - - -
MemberValueDescription
FillToFillFILL_TO_FILL0A Trade is defined by a fill that establishes or increases a position and an offsetting fill that reduces the position size (0)
FlatToFlatFLAT_TO_FLAT1A Trade is defined by a sequence of fills, from a flat position to a non-zero position which may increase or decrease in quantity, and back to a flat position (1)
FlatToReducedFLAT_TO_REDUCED2A Trade is defined by a sequence of fills, from a flat position to a non-zero position and an offsetting fill that reduces the position size (2)
- - \ No newline at end of file diff --git a/Resources/enumerations/fill_matching_method.html b/Resources/enumerations/fill_matching_method.html deleted file mode 100644 index 0e9017d2de..0000000000 --- a/Resources/enumerations/fill_matching_method.html +++ /dev/null @@ -1,29 +0,0 @@ -

The following table describes the FillMatchingMethod enumeration members:

- - - - - - - - - - - - - - - - - - - - - -
MemberValueDescription
FIFOFIFO0First In First Out fill matching method (0)
LIFOLIFO1Last In Last Out fill matching method (1)
- - \ No newline at end of file diff --git a/Resources/enumerations/india_product_type.html b/Resources/enumerations/india_product_type.html deleted file mode 100644 index e69add78a9..0000000000 --- a/Resources/enumerations/india_product_type.html +++ /dev/null @@ -1,34 +0,0 @@ -

The following table describes the IndiaProductType enumeration members:

- - - - - - - - - - - - - - - - - - - - - - - - - - -
MemberValueDescription
MISMIS0Margin Intraday Square Off (0)
CNCCNC1Cash and Carry (1)
NRMLNRML2Normal (2)
- - \ No newline at end of file diff --git a/Resources/enumerations/indicator_status.html b/Resources/enumerations/indicator_status.html deleted file mode 100644 index 14577afc3b..0000000000 --- a/Resources/enumerations/indicator_status.html +++ /dev/null @@ -1,39 +0,0 @@ -

The following table describes the IndicatorStatus enumeration members:

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
MemberValueDescription
SuccessSUCCESS0The indicator successfully calculated a value for the input data (0)
InvalidInputINVALID_INPUT1The indicator detected an invalid input data point or tradebar (1)
MathErrorMATH_ERROR2The indicator encountered a math error during calculations (2)
ValueNotReadyVALUE_NOT_READY3The indicator value is not ready (3)
- - \ No newline at end of file diff --git a/Resources/enumerations/insight_direction.html b/Resources/enumerations/insight_direction.html deleted file mode 100644 index c7f7286d8a..0000000000 --- a/Resources/enumerations/insight_direction.html +++ /dev/null @@ -1,34 +0,0 @@ -

The following table describes the InsightDirection enumeration members:

- - - - - - - - - - - - - - - - - - - - - - - - - - -
MemberValueDescription
DownDOWN-1The value will go down (-1)
FlatFLAT0The value will stay flat (0)
UpUP1The value will go up (1)
- - \ No newline at end of file diff --git a/Resources/enumerations/insight_score_type.html b/Resources/enumerations/insight_score_type.html deleted file mode 100644 index e05e2f9a47..0000000000 --- a/Resources/enumerations/insight_score_type.html +++ /dev/null @@ -1,29 +0,0 @@ -

The following table describes the InsightScoreType enumeration members:

- - - - - - - - - - - - - - - - - - - - - -
MemberValueDescription
DirectionDIRECTION0Directional accuracy (0)
MagnitudeMAGNITUDE1Magnitude accuracy (1)
- - \ No newline at end of file diff --git a/Resources/enumerations/insight_type.html b/Resources/enumerations/insight_type.html deleted file mode 100644 index b2d69c2226..0000000000 --- a/Resources/enumerations/insight_type.html +++ /dev/null @@ -1,29 +0,0 @@ -

The following table describes the InsightType enumeration members:

- - - - - - - - - - - - - - - - - - - - - -
MemberValueDescription
PricePRICE0The insight is for a security's price (0)
VolatilityVOLATILITY1The insight is for a security's price volatility (1)
- - \ No newline at end of file diff --git a/Resources/enumerations/language.html b/Resources/enumerations/language.html deleted file mode 100644 index 72118899a8..0000000000 --- a/Resources/enumerations/language.html +++ /dev/null @@ -1,44 +0,0 @@ -

The following table describes the Language enumeration members:

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
MemberValueDescription
CSharpC_SHARP0C# Language Project (0)
FSharpF_SHARP1FSharp Project (1)
VisualBasicVISUAL_BASIC2Visual Basic Project (2)
JavaJAVA3Java Language Project (3)
PythonPYTHON4Python Language Project (4)
- - \ No newline at end of file diff --git a/Resources/enumerations/market-crypto.html b/Resources/enumerations/market-crypto.html deleted file mode 100644 index e5ce3ade3d..0000000000 --- a/Resources/enumerations/market-crypto.html +++ /dev/null @@ -1,2 +0,0 @@ -

The following Market enumeration members are available for Crypto:

-
\ No newline at end of file diff --git a/Resources/enumerations/market.html b/Resources/enumerations/market.html deleted file mode 100644 index e90ab8b7de..0000000000 --- a/Resources/enumerations/market.html +++ /dev/null @@ -1,178 +0,0 @@ -

The following table describes the Market enumeration members:

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
MemberValueDescription
USAUSA"usa"USA Market
OandaOANDA"oanda"Oanda Market
FXCMFXCM"fxcm"FXCM Market Hours
DukascopyDUKASCOPY"dukascopy"Dukascopy Market
BitfinexBITFINEX"bitfinex"Bitfinex market
GlobexGLOBEX"cmeglobex"CME Globex
NYMEXNYMEX"nymex"NYMEX
CBOTCBOT"cbot"CBOT
ICEICE"ice"ICE
CBOECBOE"cboe"CBOE
CFECFE"cfe"CFE
IndiaINDIA"india"NSE - National Stock Exchange
COMEXCOMEX"comex"Comex
CMECME"cme"CME
SGXSGX"sgx"Singapore Exchange
HKFEHKFE"hkfe"Hong Kong Exchange
NYSELIFFENYSELIFFE"nyseliffe"London International Financial Futures and Options Exchange
GDAXGDAXCoinbase
KrakenKRAKEN"kraken"Kraken
BitstampBITSTAMP"bitstamp"Bitstamp
OkCoinOK_COIN"okcoin"OkCoin
BithumbBITHUMB"bithumb"Bithumb
BinanceBINANCE"binance"Binance
PoloniexPOLONIEX"poloniex"Poloniex
CoinoneCOINONE"coinone"Coinone
HitBTCHIT_B_T_C"hitbtc"HitBTC
BittrexBITTREX"bittrex"Bittrex
FTXFTX"ftx"FTX
FTXUSFTXUS"ftxus"FTX.US
BinanceUSBINANCE_US"binanceus"Binance.US
BybitBYBIT"bybit"Bybit
CoinbaseCOINBASE"coinbase"Coinbase
InteractiveBrokersINTERACTIVE_BROKERS"interactivebrokers"InteractiveBrokers market
diff --git a/Resources/enumerations/market_data_type.html b/Resources/enumerations/market_data_type.html deleted file mode 100644 index d00ff07163..0000000000 --- a/Resources/enumerations/market_data_type.html +++ /dev/null @@ -1,54 +0,0 @@ -

The following table describes the MarketDataType enumeration members:

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
MemberValueDescription
BaseBASE0Base market data type (0)
TradeBarTRADE_BAR1TradeBar market data type (OHLC summary bar) (1)
TickTICK2Tick market data type (price-time pair) (2)
AuxiliaryAUXILIARY3Data associated with an instrument (3)
QuoteBarQUOTE_BAR4QuoteBar market data type (4) [Bid(OHLC), Ask(OHLC) and Mid(OHLC) summary bar]
OptionChainOPTION_CHAIN5Option chain data (5)
FuturesChainFUTURES_CHAIN6Futures chain data (6)
- - \ No newline at end of file diff --git a/Resources/enumerations/market_hours_state.html b/Resources/enumerations/market_hours_state.html deleted file mode 100644 index eb6871fbf1..0000000000 --- a/Resources/enumerations/market_hours_state.html +++ /dev/null @@ -1,39 +0,0 @@ -

The following table describes the MarketHoursState enumeration members:

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
MemberValueDescription
ClosedCLOSED0The market is not open (0)
PreMarketPRE_MARKET1The market is open, but before normal trading hours (1)
MarketMARKET2The market is open and within normal trading hours (2)
PostMarketPOST_MARKET3The market is open, but after normal trading hours (3)
- - \ No newline at end of file diff --git a/Resources/enumerations/moving_average_type.html b/Resources/enumerations/moving_average_type.html deleted file mode 100644 index 4f8eff234e..0000000000 --- a/Resources/enumerations/moving_average_type.html +++ /dev/null @@ -1,74 +0,0 @@ -

The following table describes the MovingAverageType enumeration members:

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
MemberValueDescription
SimpleSIMPLE0An unweighted, arithmetic mean (0)
ExponentialEXPONENTIAL1The standard exponential moving average, using a smoothing factor of 2/(n+1) (1)
WildersWILDERS2An exponential moving average, using a smoothing factor of 1/n and simple moving average as seeding (2)
LinearWeightedMovingAverageLINEAR_WEIGHTED_MOVING_AVERAGE3A weighted moving average type (3)
DoubleExponentialDOUBLE_EXPONENTIAL4The double exponential moving average (4)
TripleExponentialTRIPLE_EXPONENTIAL5The triple exponential moving average (5)
TriangularTRIANGULAR6The triangular moving average (6)
T3T37The T3 moving average (7)
KamaKAMA8The Kaufman Adaptive Moving Average (8)
HullHULL9The Hull Moving Average (9)
AlmaALMA10The Arnaud Legoux Moving Average (10)
- - \ No newline at end of file diff --git a/Resources/enumerations/optimization_status.html b/Resources/enumerations/optimization_status.html deleted file mode 100644 index bedc75bdd2..0000000000 --- a/Resources/enumerations/optimization_status.html +++ /dev/null @@ -1,39 +0,0 @@ -

The following table describes the OptimizationStatus enumeration members:

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
MemberValueDescription
NewNEW0Just created and not running optimization (0)
AbortedABORTED1We failed or we were aborted (1)
RunningRUNNING2We are running (2)
CompletedCOMPLETED3Optimization job has completed (3)
- - \ No newline at end of file diff --git a/Resources/enumerations/option_right.html b/Resources/enumerations/option_right.html deleted file mode 100644 index fdebae23e8..0000000000 --- a/Resources/enumerations/option_right.html +++ /dev/null @@ -1,29 +0,0 @@ -

The following table describes the OptionRight enumeration members:

- - - - - - - - - - - - - - - - - - - - - -
MemberValueDescription
CallCALL0A call option, the right to buy at the strike price (0)
PutPUT1A put option, the right to sell at the strike price (1)
- - \ No newline at end of file diff --git a/Resources/enumerations/option_style.html b/Resources/enumerations/option_style.html deleted file mode 100644 index 2ae78d2041..0000000000 --- a/Resources/enumerations/option_style.html +++ /dev/null @@ -1,29 +0,0 @@ -

The following table describes the OptionStyle enumeration members:

- - - - - - - - - - - - - - - - - - - - - -
MemberValueDescription
AmericanAMERICAN0American style options are able to be exercised at any time on or before the expiration date (0)
EuropeanEUROPEAN1European style options are able to be exercised on the expiration date only (1)
- - \ No newline at end of file diff --git a/Resources/enumerations/order_direction.html b/Resources/enumerations/order_direction.html deleted file mode 100644 index bbdfb4632b..0000000000 --- a/Resources/enumerations/order_direction.html +++ /dev/null @@ -1,34 +0,0 @@ -

The following table describes the OrderDirection enumeration members:

- - - - - - - - - - - - - - - - - - - - - - - - - - -
MemberValueDescription
BuyBUY0Buy Order (0)
SellSELL1Sell Order (1)
HoldHOLD2Default Value - No Order Direction (2) Unfortunately this does not have a value of zero because there are backtests saved that reference the values in this order
- - \ No newline at end of file diff --git a/Resources/enumerations/order_error.html b/Resources/enumerations/order_error.html deleted file mode 100644 index 0f0d051392..0000000000 --- a/Resources/enumerations/order_error.html +++ /dev/null @@ -1,64 +0,0 @@ -

The following table describes the OrderError enumeration members:

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
MemberValueDescription
CanNotUpdateFilledOrderCAN_NOT_UPDATE_FILLED_ORDER-8
GeneralErrorGENERAL_ERROR-7
TimestampErrorTIMESTAMP_ERROR-6
MaxOrdersExceededMAX_ORDERS_EXCEEDED-5
InsufficientCapitalINSUFFICIENT_CAPITAL-4
MarketClosedMARKET_CLOSED-3
NoDataNO_DATA-2
ZeroQuantityZERO_QUANTITY-1
NoneNONE0
- - \ No newline at end of file diff --git a/Resources/enumerations/order_field.html b/Resources/enumerations/order_field.html deleted file mode 100644 index 5392d77345..0000000000 --- a/Resources/enumerations/order_field.html +++ /dev/null @@ -1,44 +0,0 @@ -

The following table describes the OrderField enumeration members:

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
MemberValueDescription
LimitPriceLIMIT_PRICE0The limit price for a LimitOrder, StopLimitOrder or LimitIfTouchedOrder (0)
StopPriceSTOP_PRICE1The stop price for stop orders (StopMarketOrder, StopLimitOrder) (1)
TriggerPriceTRIGGER_PRICE2The trigger price for a LimitIfTouchedOrder (2)
TrailingAmountTRAILING_AMOUNT3The trailing amount for a TrailingStopOrder (3)
TrailingAsPercentageTRAILING_AS_PERCENTAGE4Whether the trailing amount for a TrailingStopOrder is a percentage or an absolute currency value (4)
- - \ No newline at end of file diff --git a/Resources/enumerations/order_position.html b/Resources/enumerations/order_position.html deleted file mode 100644 index e02f490561..0000000000 --- a/Resources/enumerations/order_position.html +++ /dev/null @@ -1,39 +0,0 @@ -

The following table describes the OrderPosition enumeration members:

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
MemberValueDescription
BuyToOpenBUY_TO_OPEN0Indicates the buy order will result in a long position, starting either from zero or an existing long position (0)
BuyToCloseBUY_TO_CLOSE1Indicates the buy order is starting from an existing short position, resulting in a closed or long position (1)
SellToOpenSELL_TO_OPEN2Indicates the sell order will result in a short position, starting either from zero or an existing short position (2)
SellToCloseSELL_TO_CLOSE3Indicates the sell order is starting from an existing long position, resulting in a closed or short position (3)
- - \ No newline at end of file diff --git a/Resources/enumerations/order_request_status.html b/Resources/enumerations/order_request_status.html deleted file mode 100644 index 2307aa4f2f..0000000000 --- a/Resources/enumerations/order_request_status.html +++ /dev/null @@ -1,39 +0,0 @@ -

The following table describes the OrderRequestStatus enumeration members:

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
MemberValueDescription
UnprocessedUNPROCESSED0This is an unprocessed request (0)
ProcessingPROCESSING1This request is partially processed (1)
ProcessedPROCESSED2This request has been completely processed (2)
ErrorERROR3This request encountered an error (3)
- - \ No newline at end of file diff --git a/Resources/enumerations/order_request_type.html b/Resources/enumerations/order_request_type.html deleted file mode 100644 index 61d43f5f30..0000000000 --- a/Resources/enumerations/order_request_type.html +++ /dev/null @@ -1,34 +0,0 @@ -

The following table describes the OrderRequestType enumeration members:

- - - - - - - - - - - - - - - - - - - - - - - - - - -
MemberValueDescription
SubmitSUBMIT0The request is a SubmitOrderRequest (0)
UpdateUPDATE1The request is a UpdateOrderRequest (1)
CancelCANCEL2The request is a CancelOrderRequest (2)
- - \ No newline at end of file diff --git a/Resources/enumerations/order_response_error_code.html b/Resources/enumerations/order_response_error_code.html deleted file mode 100644 index 0d3d456073..0000000000 --- a/Resources/enumerations/order_response_error_code.html +++ /dev/null @@ -1,194 +0,0 @@ -

The following table describes the OrderResponseErrorCode enumeration members:

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
MemberValueDescription
OptionOrderOnStockSplitOPTION_ORDER_ON_STOCK_SPLIT-34Option order is invalid due to underlying stock split (-34)
EuropeanOptionNotExpiredOnExerciseEUROPEAN_OPTION_NOT_EXPIRED_ON_EXERCISE-33Exercise time before expiry for European options (-33)
InvalidNewOrderStatusINVALID_NEW_ORDER_STATUS-32Cannot update/cancel orders with OrderStatus.New (-32)
ExceedsShortableQuantityEXCEEDS_SHORTABLE_QUANTITY-31The order's quantity exceeds the max shortable quantity set by the brokerage (-31)
OrderQuantityLessThanLotSizeORDER_QUANTITY_LESS_THAN_LOT_SIZE-30Cannot submit or update orders with quantity that is less than lot size (-30)
NonExercisableSecurityNON_EXERCISABLE_SECURITY-29The order's symbol references a non-exercisable security (-29)
NonTradableSecurityNON_TRADABLE_SECURITY-28The order's symbol references a non-tradable security (-28)
ConversionRateZeroCONVERSION_RATE_ZERO-27Need conversion rate to account currency (-27)
QuoteCurrencyRequiredQUOTE_CURRENCY_REQUIRED-26Need quote currency in cashbook to trade (-26)
BrokerageModelRefusedToUpdateOrderBROKERAGE_MODEL_REFUSED_TO_UPDATE_ORDER-25Internal logic invalidated update order (-25)
AlgorithmWarmingUpALGORITHM_WARMING_UP-24All orders are invalidated while algorithm is warming up (-24)
RequestCanceledREQUEST_CANCELED-23Request was canceled by user (-23)
InvalidRequestINVALID_REQUEST-22Request is invalid or null (-22)
MarketOnCloseOrderTooLateMARKET_ON_CLOSE_ORDER_TOO_LATE-21Below buffer time for MOC order to be placed before exchange closes. 15.5 minutes by default (-21)
ExceededMaximumOrdersEXCEEDED_MAXIMUM_ORDERS-20Transaction manager's cache is full (-20)
SecurityHasNoDataSECURITY_HAS_NO_DATA-19Should not attempt trading without at least one data point (-19)
ForexConversionRateZeroFOREX_CONVERSION_RATE_ZERO-18Need conversion rate to account currency (-18)
ForexBaseAndQuoteCurrenciesRequiredFOREX_BASE_AND_QUOTE_CURRENCIES_REQUIRED-17Need both currencies in cashbook to trade a pair (-17)
SecurityPriceZeroSECURITY_PRICE_ZERO-16Zero security price is probably due to bad data (-16)
ExchangeNotOpenEXCHANGE_NOT_OPEN-15Some order types require open exchange (-15)
MissingSecurityMISSING_SECURITY-14Security is missing. Probably did not subscribe (-14)
PreOrderChecksErrorPRE_ORDER_CHECKS_ERROR-13Unknown error during pre order request validation (-13)
UnsupportedRequestTypeUNSUPPORTED_REQUEST_TYPE-12This type of request is unsupported (-12)
OrderQuantityZeroORDER_QUANTITY_ZERO-11Cannot submit or update orders with zero quantity (-11)
UnableToFindOrderUNABLE_TO_FIND_ORDER-10Missing order (-10)
InvalidOrderStatusINVALID_ORDER_STATUS-9Only pending orders can be canceled (-9)
BrokerageFailedToCancelOrderBROKERAGE_FAILED_TO_CANCEL_ORDER-8Brokerage cancel error (-8)
BrokerageHandlerRefusedToUpdateOrderBROKERAGE_HANDLER_REFUSED_TO_UPDATE_ORDER-7Internal logic invalidated update order (-7)
BrokerageFailedToUpdateOrderBROKERAGE_FAILED_TO_UPDATE_ORDER-6Brokerage update error (-6)
BrokerageFailedToSubmitOrderBROKERAGE_FAILED_TO_SUBMIT_ORDER-5Brokerage submit error (-5)
BrokerageModelRefusedToSubmitOrderBROKERAGE_MODEL_REFUSED_TO_SUBMIT_ORDER-4Internal logic invalidated submit order (-4)
InsufficientBuyingPowerINSUFFICIENT_BUYING_POWER-3Not enough money to to submit order (-3)
OrderAlreadyExistsORDER_ALREADY_EXISTS-2Cannot submit because order already exists (-2)
ProcessingErrorPROCESSING_ERROR-1Unknown error (-1)
NoneNONE0No error (0)
- - \ No newline at end of file diff --git a/Resources/enumerations/order_status.html b/Resources/enumerations/order_status.html deleted file mode 100644 index 9f74346f0d..0000000000 --- a/Resources/enumerations/order_status.html +++ /dev/null @@ -1,64 +0,0 @@ -

The following table describes the OrderStatus enumeration members:

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
MemberValueDescription
NewNEW0New order pre-submission to the order processor (0)
SubmittedSUBMITTED1Order submitted to the market (1)
PartiallyFilledPARTIALLY_FILLED2Partially filled, In Market Order (2)
FilledFILLED3Completed, Filled, In Market Order (3)
CanceledCANCELED5Order cancelled before it was filled (5)
NoneNONE6No Order State Yet (6)
InvalidINVALID7Order invalidated before it hit the market (e.g. insufficient capital) (7)
CancelPendingCANCEL_PENDING8Order waiting for confirmation of cancellation (8)
UpdateSubmittedUPDATE_SUBMITTED9Order update submitted to the market (9)
- - \ No newline at end of file diff --git a/Resources/enumerations/order_type.html b/Resources/enumerations/order_type.html deleted file mode 100644 index ab6e016a57..0000000000 --- a/Resources/enumerations/order_type.html +++ /dev/null @@ -1,79 +0,0 @@ -

The following table describes the OrderType enumeration members:

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
MemberValueDescription
MarketMARKET0Market Order Type (0)
LimitLIMIT1Limit Order Type (1)
StopMarketSTOP_MARKET2Stop Market Order Type - Fill at market price when break target price (2)
StopLimitSTOP_LIMIT3Stop limit order type - trigger fill once pass the stop price; but limit fill to limit price (3)
MarketOnOpenMARKET_ON_OPEN4Market on open type - executed on exchange open (4)
MarketOnCloseMARKET_ON_CLOSE5Market on close type - executed on exchange close (5)
OptionExerciseOPTION_EXERCISE6Option Exercise Order Type (6)
LimitIfTouchedLIMIT_IF_TOUCHED7Limit if Touched Order Type - a limit order to be placed after first reaching a trigger value (7)
ComboMarketCOMBO_MARKET8Combo Market Order Type - (8)
ComboLimitCOMBO_LIMIT9Combo Limit Order Type - (9)
ComboLegLimitCOMBO_LEG_LIMIT10Combo Leg Limit Order Type - (10)
TrailingStopTRAILING_STOP11Trailing Stop Order Type - (11)
- - \ No newline at end of file diff --git a/Resources/enumerations/period.html b/Resources/enumerations/period.html deleted file mode 100644 index 9a680e8473..0000000000 --- a/Resources/enumerations/period.html +++ /dev/null @@ -1,89 +0,0 @@ -

The following table describes the Period enumeration members:

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
MemberValueDescription
TenSecondsTEN_SECONDS10Period Short Codes - 10
ThirtySecondsTHIRTY_SECONDS30Period Short Codes - 30 Second
OneMinuteONE_MINUTE60Period Short Codes - 60 Second
TwoMinutesTWO_MINUTES120Period Short Codes - 120 Second
ThreeMinutesTHREE_MINUTES180Period Short Codes - 180 Second
FiveMinutesFIVE_MINUTES300Period Short Codes - 300 Second
TenMinutesTEN_MINUTES600Period Short Codes - 600 Second
FifteenMinutesFIFTEEN_MINUTES900Period Short Codes - 900 Second
TwentyMinutesTWENTY_MINUTES1200Period Short Codes - 1200 Second
ThirtyMinutesTHIRTY_MINUTES1800Period Short Codes - 1800 Second
OneHourONE_HOUR3600Period Short Codes - 3600 Second
TwoHoursTWO_HOURS7200Period Short Codes - 7200 Second
FourHoursFOUR_HOURS14400Period Short Codes - 14400 Second
SixHoursSIX_HOURS21600Period Short Codes - 21600 Second
- - \ No newline at end of file diff --git a/Resources/enumerations/pivot_point_type.html b/Resources/enumerations/pivot_point_type.html deleted file mode 100644 index 16ae41d961..0000000000 --- a/Resources/enumerations/pivot_point_type.html +++ /dev/null @@ -1,39 +0,0 @@ -

The following table describes the PivotPointType enumeration members:

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
MemberValueDescription
LowLOW-1Low pivot point (-1)
NoneNONE0No pivot point (0)
HighHIGH1High pivot point (1)
BothBOTH2Both high and low pivot point (2)
- - \ No newline at end of file diff --git a/Resources/enumerations/portfolio_bias.html b/Resources/enumerations/portfolio_bias.html deleted file mode 100644 index e9095d8d88..0000000000 --- a/Resources/enumerations/portfolio_bias.html +++ /dev/null @@ -1,34 +0,0 @@ -

The following table describes the PortfolioBias enumeration members:

- - - - - - - - - - - - - - - - - - - - - - - - - - -
MemberValueDescription
ShortSHORT-1Portfolio can only have short positions (-1)
LongShortLONG_SHORT0Portfolio can have both long and short positions (0)
LongLONG1Portfolio can only have long positions (1)
- - \ No newline at end of file diff --git a/Resources/enumerations/position_side.html b/Resources/enumerations/position_side.html deleted file mode 100644 index 20710f11dc..0000000000 --- a/Resources/enumerations/position_side.html +++ /dev/null @@ -1,34 +0,0 @@ -

The following table describes the PositionSide enumeration members:

- - - - - - - - - - - - - - - - - - - - - - - - - - -
MemberValueDescription
ShortSHORT-1A short position, quantity less than zero (-1)
NoneNONE0No position, quantity equals zero (0)
LongLONG1A long position, quantity greater than zero (1)
- - \ No newline at end of file diff --git a/Resources/enumerations/predicate_target_value.html b/Resources/enumerations/predicate_target_value.html deleted file mode 100644 index 0430f5704a..0000000000 --- a/Resources/enumerations/predicate_target_value.html +++ /dev/null @@ -1,39 +0,0 @@ -

The following table describes the PredicateTargetValue enumeration members:

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
MemberValueDescription
RightRIGHT0Predicate matches on OptionPosition.Right (0)
QuantityQUANTITY1Predicate match on OptionPosition.Quantity (1)
StrikeSTRIKE2Predicate matches on OptionPosition.Strike (2)
ExpirationEXPIRATION3Predicate matches on OptionPosition.Expiration (3)
- - \ No newline at end of file diff --git a/Resources/enumerations/renko_type.html b/Resources/enumerations/renko_type.html deleted file mode 100644 index 7550f31b6b..0000000000 --- a/Resources/enumerations/renko_type.html +++ /dev/null @@ -1,29 +0,0 @@ -

The following table describes the RenkoType enumeration members:

- - - - - - - - - - - - - - - - - - - - - -
MemberValueDescription
ClassicCLASSIC0Indicates that the RenkoConsolidator works in its original implementation; Specifically: - It only returns a single bar, at most, irrespective of tick movement - It will emit consecutive bars side by side - By default even bars are created (0) the Classic mode has only been retained for backwards compatibility with existing code.
WickedWICKED1Indicates that the RenkoConsolidator works properly; Specifically: - returns zero or more bars per tick, as appropriate. - Will not emit consecutive bars side by side - Creates (1)
- - \ No newline at end of file diff --git a/Resources/enumerations/resolution.html b/Resources/enumerations/resolution.html deleted file mode 100644 index a86753b02c..0000000000 --- a/Resources/enumerations/resolution.html +++ /dev/null @@ -1,44 +0,0 @@ -

The following table describes the Resolution enumeration members:

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
MemberValueDescription
TickTICK0Tick Resolution (0)
SecondSECOND1Second Resolution (1)
MinuteMINUTE2Minute Resolution (2)
HourHOUR3Hour Resolution (3)
DailyDAILY4Daily Resolution (4)
- - \ No newline at end of file diff --git a/Resources/enumerations/scatter_marker_symbol.html b/Resources/enumerations/scatter_marker_symbol.html deleted file mode 100644 index 0b0a94922a..0000000000 --- a/Resources/enumerations/scatter_marker_symbol.html +++ /dev/null @@ -1,49 +0,0 @@ -

The following table describes the ScatterMarkerSymbol enumeration members:

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
MemberValueDescription
NoneNONE0Circle symbol (0)
CircleCIRCLE1Circle symbol (1)
SquareSQUARE2Square symbol (2)
DiamondDIAMOND3Diamond symbol (3)
TriangleTRIANGLE4Triangle symbol (4)
TriangleDownTRIANGLE_DOWN5Triangle-down symbol (5)
- - \ No newline at end of file diff --git a/Resources/enumerations/security_type.html b/Resources/enumerations/security_type.html deleted file mode 100644 index 8efc4b062d..0000000000 --- a/Resources/enumerations/security_type.html +++ /dev/null @@ -1,79 +0,0 @@ -

The following table describes the SecurityType enumeration members:

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
MemberValueDescription
BaseBASE0Base class for all security types (0)
EquityEQUITY1US Equity Security (1)
OptionOPTION2Option Security Type (2)
CommodityCOMMODITY3Commodity Security Type (3)
ForexFOREX4FOREX Security (4)
FutureFUTURE5Future Security Type (5)
CfdCFD6Contract For a Difference Security Type (6)
CryptoCRYPTO7Cryptocurrency Security Type (7)
FutureOptionFUTURE_OPTION8Futures Options Security Type (8) Futures options function similar to equity options, but with a few key differences. Firstly, the contract unit of trade is 1x, rather than 100x. This means that each option represents the right to buy or sell 1 future contract at expiry/exercise. The contract multiplier for Futures Options plays a big part in determining the premium of the option, which can also differ from the underlying future's multiplier.
IndexINDEX9Index Security Type (9)
IndexOptionINDEX_OPTION10Index Option Security Type (10) For index options traded on American markets, they tend to be European-style options and are Cash-settled.
CryptoFutureCRYPTO_FUTURE11Crypto Future Type (11)
- - \ No newline at end of file diff --git a/Resources/enumerations/series_type.html b/Resources/enumerations/series_type.html deleted file mode 100644 index 0d3776321e..0000000000 --- a/Resources/enumerations/series_type.html +++ /dev/null @@ -1,59 +0,0 @@ -

The following table describes the SeriesType enumeration members:

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
MemberValueDescription
Line0Line Plot for Value Types (0)
Scatter1Scatter Plot for Chart Distinct Types (1)
Candle2Charts (2)
Bar3Bar chart (3)
Flag4Flag indicators (4)
StackedArea5100% area chart showing relative proportions of series values at each time index (5)
Pie6Pie chart (6)
Treemap7Treemap Plot (7)
- - \ No newline at end of file diff --git a/Resources/enumerations/server_type.html b/Resources/enumerations/server_type.html deleted file mode 100644 index 40be89a0c2..0000000000 --- a/Resources/enumerations/server_type.html +++ /dev/null @@ -1,34 +0,0 @@ -

The following table describes the ServerType enumeration members:

- - - - - - - - - - - - - - - - - - - - - - - - - - -
MemberValueDescription
Server512SERVER5120Additional server (0)
Server1024SERVER10241Upgraded server (1)
Server2048SERVER20482Server with 2048 MB Ram (2)
- - \ No newline at end of file diff --git a/Resources/enumerations/settlement_type.html b/Resources/enumerations/settlement_type.html deleted file mode 100644 index d9334bf970..0000000000 --- a/Resources/enumerations/settlement_type.html +++ /dev/null @@ -1,29 +0,0 @@ -

The following table describes the SettlementType enumeration members:

- - - - - - - - - - - - - - - - - - - - - -
MemberValueDescription
PhysicalDeliveryPHYSICAL_DELIVERY0Physical delivery of the underlying security (0)
CashCASH1Cash is paid/received on settlement (1)
- - \ No newline at end of file diff --git a/Resources/enumerations/split_type.html b/Resources/enumerations/split_type.html deleted file mode 100644 index cb1913b380..0000000000 --- a/Resources/enumerations/split_type.html +++ /dev/null @@ -1,29 +0,0 @@ -

The following table describes the SplitType enumeration members:

- - - - - - - - - - - - - - - - - - - - - -
MemberValueDescription
WarningWARNING0Specifies a warning of an imminent split event (0)
SplitOccurredSPLIT_OCCURRED1Specifies the symbol has been split (1)
- - \ No newline at end of file diff --git a/Resources/enumerations/storage_permissions.html b/Resources/enumerations/storage_permissions.html deleted file mode 100644 index aae8026d6a..0000000000 --- a/Resources/enumerations/storage_permissions.html +++ /dev/null @@ -1,29 +0,0 @@ -

The following table describes the StoragePermissions enumeration members:

- - - - - - - - - - - - - - - - - - - - - -
MemberValueDescription
PublicPUBLIC0Public Storage Permissions (0)
AuthenticatedAUTHENTICATED1Authenticated Read Storage Permissions (1)
- - \ No newline at end of file diff --git a/Resources/enumerations/subscription_transport_medium.html b/Resources/enumerations/subscription_transport_medium.html deleted file mode 100644 index 0adde0328a..0000000000 --- a/Resources/enumerations/subscription_transport_medium.html +++ /dev/null @@ -1,44 +0,0 @@ -

The following table describes the SubscriptionTransportMedium enumeration members:

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
MemberValueDescription
LocalFileLOCAL_FILE0The subscription's data comes from disk (0)
RemoteFileREMOTE_FILE1The subscription's data is downloaded from a remote source (1)
RestREST2The subscription's data comes from a rest call that is polled and returns a single line/data point of information (2)
StreamingSTREAMING3The subscription's data is streamed (3)
ObjectStoreOBJECT_STORE4The subscription's data comes from the object store (4)
- - \ No newline at end of file diff --git a/Resources/enumerations/swiss_army_knife_tool.html b/Resources/enumerations/swiss_army_knife_tool.html deleted file mode 100644 index 231b5250ef..0000000000 --- a/Resources/enumerations/swiss_army_knife_tool.html +++ /dev/null @@ -1,44 +0,0 @@ -

The following table describes the SwissArmyKnifeTool enumeration members:

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
MemberValueDescription
GaussGAUSS0Two Pole Gaussian Filter (0)
ButterBUTTER1Two Pole Butterworth Filter (1)
HighPassHIGH_PASS2High Pass Filter (2)
TwoPoleHighPassTWO_POLE_HIGH_PASS3Two Pole High Pass Filter (3)
BandPassBAND_PASS4BandPass Filter (4)
- - \ No newline at end of file diff --git a/Resources/enumerations/tick_type.html b/Resources/enumerations/tick_type.html deleted file mode 100644 index 35e1ce113b..0000000000 --- a/Resources/enumerations/tick_type.html +++ /dev/null @@ -1,34 +0,0 @@ -

The following table describes the TickType enumeration members:

- - - - - - - - - - - - - - - - - - - - - - - - - - -
MemberValueDescription
TradeTRADE0Trade type tick object (0)
QuoteQUOTE1Quote type tick object (1)
OpenInterestOPEN_INTEREST2Open Interest type tick object (for options, futures) (2)
- - \ No newline at end of file diff --git a/Resources/enumerations/trade_direction.html b/Resources/enumerations/trade_direction.html deleted file mode 100644 index 93d55c487b..0000000000 --- a/Resources/enumerations/trade_direction.html +++ /dev/null @@ -1,29 +0,0 @@ -

The following table describes the TradeDirection enumeration members:

- - - - - - - - - - - - - - - - - - - - - -
MemberValueDescription
LongLONG0Long direction (0)
ShortSHORT1Short direction (1)
- - \ No newline at end of file diff --git a/Resources/enumerations/trading_day_type.html b/Resources/enumerations/trading_day_type.html deleted file mode 100644 index d58033e41f..0000000000 --- a/Resources/enumerations/trading_day_type.html +++ /dev/null @@ -1,64 +0,0 @@ -

The following table describes the TradingDayType enumeration members:

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
MemberValueDescription
BusinessDayBUSINESS_DAY0Business day (0)
PublicHolidayPUBLIC_HOLIDAY1Public Holiday (1)
WeekendWEEKEND2Weekend (2)
OptionExpirationOPTION_EXPIRATION3Option Expiration Date (3)
FutureExpirationFUTURE_EXPIRATION4Futures Expiration Date (4)
FutureRollFUTURE_ROLL5Futures Roll Date (5) Not used yet. For future use.
SymbolDelistingSYMBOL_DELISTING6Symbol Delisting Date (6) Not used yet. For future use.
EquityDividendsEQUITY_DIVIDENDS7Equity Ex-dividend Date (7) Not used yet. For future use.
EconomicEventECONOMIC_EVENT8FX Economic Event (8) FX Economic Event e.g. from DailyFx (DailyFx.cs). Not used yet. For future use.
- - \ No newline at end of file diff --git a/Resources/enumerations/update_type.html b/Resources/enumerations/update_type.html deleted file mode 100644 index 930ab08a1f..0000000000 --- a/Resources/enumerations/update_type.html +++ /dev/null @@ -1,34 +0,0 @@ -

The following table describes the UpdateType enumeration members:

- - - - - - - - - - - - - - - - - - - - - - - - - - -
MemberValueDescription
Added0A new Cash.Symbol was added (0)
Removed1One or more Cash instances were removed (1)
Updated2An existing Cash.Symbol was updated (2)
- - \ No newline at end of file diff --git a/Resources/enumerations/write_policy.html b/Resources/enumerations/write_policy.html deleted file mode 100644 index 282a8cc24f..0000000000 --- a/Resources/enumerations/write_policy.html +++ /dev/null @@ -1,34 +0,0 @@ -

The following table describes the WritePolicy enumeration members:

- - - - - - - - - - - - - - - - - - - - - - - - - - -
MemberValueDescription
OverwriteOVERWRITE0Will overwrite any existing file or zip entry with the new content (0)
MergeMERGE1Will inject and merge new content with the existings file content (1)
AppendAPPEND2Will append new data to the end of the file or zip entry (2)
- - \ No newline at end of file diff --git a/code-generators/Supported-Assets-Table-Code-Generator.py b/code-generators/Supported-Assets-Table-Code-Generator.py index 786964516f..0514065149 100644 --- a/code-generators/Supported-Assets-Table-Code-Generator.py +++ b/code-generators/Supported-Assets-Table-Code-Generator.py @@ -1,39 +1,59 @@ from pathlib import Path -from _code_generation_helpers import SPDB, get_text_content +from _code_generation_helpers import SPDB, get_text_content, get_type -if __name__ == '__main__': +if __name__ == '__main__': spdb = get_text_content(SPDB) directory = "Resources/datasets/supported-securities/" - markets = ['binance','binanceus','bitfinex','bybit','coinbase','kraken','oanda', 'interactivebrokers'] + backlist = ['market','ftx', 'ftxus', 'fxcm', 'gdax'] + markets = ['binance', 'binanceus', 'bitfinex', 'bybit', 'coinbase', 'kraken', 'oanda', 'interactivebrokers'] results = {} # Organize data for line in spdb.split('\n'): - if '[*]' in line: continue + if line.strip().startswith("#"): + continue csv = line.split(',') - market = csv[0] - if market not in markets: + if len(csv) < 3: + continue + market, ticker, security_type = csv[0:3] + if market in backlist: continue - ticker, security_type = csv[1:3] if security_type not in results: results[security_type] = {} if market not in results[security_type]: results[security_type][market] = [] - results[security_type][market].append(ticker) + if market in markets and '[*]' not in ticker: + results[security_type][market].append(ticker) + + market = [[x.pop('field-name') + for x in get_type("QuantConnect.Market", language).pop('fields')] + for language in ["csharp", "python"]] + + market = dict([(cs.lower(), ','.join(sorted(set([cs,py])))) for cs,py in zip(market[0], market[1])]) # Write files for security_type, result in results.items(): path = Path(f'{directory}/{security_type}') path.mkdir(parents=True, exist_ok=True) - + + with open(f"{path}/market.html", "w", encoding="utf-8") as html: + name = "Futures" if security_type == "future" else security_type.title()\ + .replace("Option", "Options")\ + .replace("option", " Options")\ + .replace("Index", "Indices")\ + .replace("Indices Options", "Index Options") + html.write(f"""

The following Market enumeration members are available for {name}:

+
""") + name = 'Contract' if security_type == 'cfd' else 'Pairs' for exchange, tickers in result.items(): - rows = '' count = len(tickers) + if count == 0: continue tickers.sort() + for i in range(0, count, 6): rows += '' + ''.join(f'{ticker}' for ticker in tickers[i:i+6]) + '\n' diff --git a/code-generators/enum-table-generator.py b/code-generators/enum-table-generator.py deleted file mode 100644 index dda96bcc30..0000000000 --- a/code-generators/enum-table-generator.py +++ /dev/null @@ -1,198 +0,0 @@ -import re -from _code_generation_helpers import SPDB, get_text_content -from urllib.request import urlopen - -destination = "Resources/enumerations" -root_url = "https://raw.githubusercontent.com/QuantConnect/Lean/master/" -enum_objects = [ - "Algorithm/Portfolio/PortfolioBias.cs", - "Common/Algorithm/Framework/Alphas/InsightScoreType.cs", - "Common/Algorithm/Framework/Alphas/InsightType.cs", - "Common/Algorithm/Framework/Alphas/InsightDirection.cs", - "Common/Brokerages/BrokerageMessageType.cs", - "Common/Chart.cs", - "Common/Data/FileFormat.cs", - "Common/Data/Market/BarDirection.cs", - "Common/Data/Market/RenkoType.cs", - "Common/Global.cs", - "Common/Market.cs", - "Common/Optimizer/OptimizationStatus.cs", - "Common/Orders/IndiaOrderProperties.cs", - "Common/Orders/OrderError.cs", - "Common/Orders/OrderField.cs", - "Common/Orders/OrderRequestStatus.cs", - "Common/Orders/OrderRequestType.cs", - "Common/Orders/OrderResponseErrorCode.cs", - "Common/Orders/OrderTypes.cs", - "Common/Securities/CashBook.cs", - "Common/Securities/MarketHoursState.cs", - "Common/Securities/Option/StrategyMatcher/PredicateTargetValue.cs", - "Common/Series.cs", - "Common/Statistics/TradeEnums.cs", - "Common/TradingDay.cs", - "Indicators/CandlestickPatterns/CandleEnums.cs", - "Indicators/IndicatorStatus.cs", - "Indicators/MovingAverageType.cs", - "Indicators/PivotPointsHighLow.cs", - "Indicators/SwissArmyKnife.cs", - "Report/CrisisEvent.cs" -] - -quotation = '\"' -market = None -market_data = None - -def TableCreation(raw, namespace=""): - object_ = "" - enum_active = False - static_class_active = False - description = "" - code = "" - enum = "" - - current_object = {} # dict is already ordered dict - - for i, line in enumerate(raw): - if "namespace" in line: - namespace = line.split("namespace ")[-1].strip() - continue - - if "public enum" in line: - object_ = line.split("public enum")[-1].strip() - enum_active = True - continue - - elif "public static class" in line: - object_ = line.split("public static class")[-1].strip() - continue - - if line.strip() != "" \ - and "{" not in line \ - and "}" not in line \ - and "///" not in line \ - and "[" not in line \ - and enum_active: - if "=" in line: - item = line.split(" = ") - enum = item[0].strip() - code = int(item[-1].split(",")[0].split("<<")[-1].strip()) - current_object[enum] = {"code": code, "description": description} - - else: - enum = line.split(",")[0].strip() - code = None - current_object[enum] = {"code": code, "description": description} - - if "public const string" in line: - static_class_active = True - item = line.split(" = ") - enum = item[0].split("public const string")[-1].strip() - code = item[-1].split(";")[0].strip() - current_object[enum] = {"code": code, "description": description} - - if "///" in line: - description += line.split("///")[-1]\ - .replace("", "").replace("", "")\ - .replace("", "").replace("", "").strip() - - if ("remarks" not in line and "summary" not in line) \ - or ("remarks" in line and i < len(raw)-1 and "remarks" in raw[i+1]): - description += " " - - continue - - elif "EnumMember" in line: - continue - - else: - description = "" - - if "}" in line and (enum_active or static_class_active): - enum_active = False - static_class_active = False - TableCreation(raw[i:], namespace) - break - - if not current_object: return - - n = 0 - exist_n = [x["code"] for x in current_object.values()] - - for enum, content in current_object.items(): - if content["code"] is None: - while n in exist_n: - n += 1 - - current_object[enum]["code"] = n - n += 1 - try: - sorted_ = sorted(current_object.items(), key=lambda x: int(x[1]["code"])) - except: - sorted_ = current_object.items() - - if object_ == "Market": - sym_prop = get_text_content(SPDB).split('\n') - global market, market_data - market = set([(x.split(",")[0], x.split(",")[2].lower().strip()) for x in sym_prop if len(x.split(",")) > 2 and x.split(",")[2].lower().strip() != "type" and " " not in x.split(",")[2].lower().strip()]) - market_data = sorted_ - - html = HtmlGeneration(object_, sorted_) - - with open(f"{destination}/{'_'.join([x.lower() for x in re.findall('[a-zA-Z][^A-Z]*', object_)])}.html", "w", encoding="utf-8") as file: - file.write(html) - -def HtmlGeneration(obj_name, sorted_obj, extra=''): - html = f'''

The following table describes the {obj_name} enumeration members{extra}:

- - - - - - - - - - -''' - - for enum, content in sorted_obj: - html += f''' - - - - -''' - - html += """ -
MemberValueDescription
{enum}{_to_upper_snake_case(enum)}{content["code"]}{content["description"].replace("").replace(quotation + "/>", "")}
-""" - - if all([str(y["code"]).replace("-", "").isnumeric() for x, y in sorted_obj]): - html += ''' -''' - - return html - -def _to_upper_snake_case(title): - if title.isupper(): - return title - return re.sub(r'(?The following Market enumeration members are available for {x.title().replace("Option", "Options").replace("option", " Options").replace("Index", "Indices").replace("Indices Options", "Index Options")}:

-
""") \ No newline at end of file