Module ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias Assign NameStore ListLoad Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Str Assign NameStore ListLoad Num Num Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore Num Assign NameStore ListLoad FunctionDef arguments args defaults body Global identifier If CompareEq Call NameLoad NameLoad Num body Print Str Assign NameStore Call NameLoad NameLoad Return Call NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore ListLoad For NameStore Call NameLoad NameLoad body Assign NameStore Call NameLoad NameLoad Call NameLoad NameLoad NameLoad Assign NameStore Call NameLoad NameLoad NameLoad Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore Call NameLoad NameLoad Assign NameStore BinOpSub Call AttributeLoad Call AttributeLoad NameLoad attr attr Call NameLoad keyword NameLoad Assign NameStore Call NameLoad ListComp TupleLoad AttributeLoad NameLoad attr Dict comprehension NameStore NameLoad Assign NameStore Call NameLoad ListLoad Assign NameStore Dict For NameStore NameLoad body Assign SubscriptStore NameLoad Index AttributeLoad NameLoad attr NameLoad For NameStore Call AttributeLoad Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad attr Str body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Assign SubscriptStore Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Index NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore BinOpDiv NameLoad Call NameLoad Call NameLoad NameLoad Assign NameStore BinOpDiv NameLoad Call NameLoad NameLoad Assign NameStore BinOpDiv NameLoad Call NameLoad BinOpAdd NameLoad Num Assign NameStore ListLoad Assign NameStore Call NameLoad ListComp TupleLoad NameLoad Num comprehension NameStore NameLoad Assign NameStore NameLoad Assign NameStore Num For NameStore Call NameLoad NameLoad body Assign NameStore ListComp SubscriptLoad NameLoad Index Num comprehension NameStore Call AttributeLoad NameLoad attr CompareGt SubscriptLoad NameLoad Index Num Num If BoolOpOr CompareLtE Call NameLoad NameLoad CompareEq Call NameLoad NameLoad Num body If BoolOpAnd CompareGt NameLoad Num CompareLtE Call NameLoad NameLoad body Assign NameStore Call NameLoad ListLoad NameLoad Call NameLoad BinOpMult NameLoad BinOpDiv Call NameLoad Num Num Num Num BinOpMult NameLoad Num AugAssignSub NameStore NameLoad AugAssignAdd NameStore NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad keyword Str keyword NameLoad keyword NameLoad keyword NameLoad keyword Num keyword NameLoad orelse If CompareLtE Call NameLoad NameLoad body Assign NameStore Call NameLoad ListLoad NameLoad Call NameLoad BinOpMult NameLoad BinOpDiv Call NameLoad Num Num Num BinOpMult NameLoad Num Assign NameStore Call NameLoad NameLoad Assign NameStore IfExp UnaryOpNot AttributeLoad Call AttributeLoad NameLoad attr NameLoad attr Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad attr NameLoad Num Assign NameStore Call NameLoad BinOpDiv BinOpSub NameLoad NameLoad NameLoad If CompareGt NameLoad Num body Assign NameStore BinOpAdd BinOpMult NameLoad NameLoad NameLoad AugAssignSub NameStore NameLoad Assign SubscriptStore NameLoad Index NameLoad BinOpAdd Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad keyword Str keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad orelse If CompareGt Call NameLoad NameLoad Num body Assign NameStore Call NameLoad NameLoad Assign NameStore IfExp UnaryOpNot AttributeLoad Call AttributeLoad NameLoad attr NameLoad attr Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad attr NameLoad Num Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call NameLoad NameLoad Call NameLoad BinOpMult NameLoad BinOpDiv Call NameLoad Num Num Num If CompareGt NameLoad Num body Assign NameStore BinOpSub BinOpMult NameLoad NameLoad NameLoad AugAssignAdd NameStore NameLoad Assign SubscriptStore NameLoad Index NameLoad BinOpSub Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad keyword Str keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad keyword NameLoad Return NameLoad decorator_list
N/A datetime datetime datetime timedelta math ceil math floor random choice random randint random random random sample quotes.models CASH_SYMBOL quotes.models quotes_by_symbols transactions.models Transaction N/A DEMO_INSTRUMENTS N/A AA AAPL ACWI AGG BND DBC DBO DIA EEM EFA EMB FFNOX GE GLD GOOG IJH INTC IWM IWV IYR MSFT QQQ SCZ SLV SPY TIP XOM YACKX N/A DEMO_COMMISSIONS N/A 4.5 7.99 9.99 N/A DEMO_MIN_INSTRUMENTS 4 N/A DEMO_MAX_INSTRUMENTS 8 N/A DEMO_MIN_INVESTMENT 10000 N/A DEMO_MAX_INVESTMENT 100000 N/A DEMO_PORTFOLIOS 10 N/A DEMO_DAYS_CUTOFF 365 N/A DEMO_TARGET_TRANSACTIONS 40 N/A DEMO_TARGET_DEPOSITS 5 N/A DEMO_BUY_SELL_RATIO 4 N/A DEMO N/A get_demo_transactions N/A N/A N/A N/A N/A DEMO N/A N/A N/A len DEMO 0 N/A N/A ==============GEN=============== N/A DEMO N/A _generate_demo_portfolios DEMO_PORTFOLIOS N/A N/A choice DEMO N/A _generate_demo_portfolios N/A N/A count N/A N/A N/A out N/A N/A i N/A range count N/A N/A instruments N/A sample DEMO_INSTRUMENTS N/A randint DEMO_MIN_INSTRUMENTS DEMO_MAX_INSTRUMENTS N/A total_investment N/A randint DEMO_MIN_INVESTMENT DEMO_MAX_INVESTMENT N/A commission N/A choice DEMO_COMMISSIONS N/A N/A N/A out append N/A _generate_random_transactions instruments total_investment commission N/A out N/A _generate_random_transactions N/A N/A instruments total_amount commission N/A N/A N/A quotes N/A quotes_by_symbols instruments N/A cutoff_date N/A N/A N/A N/A N/A datetime now date N/A timedelta days DEMO_DAYS_CUTOFF N/A prices N/A dict N/A N/A N/A quote symbol N/A N/A quote quotes N/A dates N/A set N/A N/A quote_map N/A N/A quote quotes N/A N/A N/A quote_map N/A N/A quote symbol quote N/A history N/A N/A N/A N/A N/A quote pricehistory_set filter as_of_date__gte cutoff_date order_by as_of_date N/A N/A cur_date N/A N/A N/A history as_of_date date N/A N/A N/A N/A prices get N/A quote symbol N/A cur_date N/A history price N/A N/A N/A dates add cur_date N/A transaction_probability N/A DEMO_TARGET_TRANSACTIONS N/A float N/A len dates N/A deposit_probability N/A DEMO_TARGET_DEPOSITS N/A float DEMO_TARGET_TRANSACTIONS N/A buy_sell_probability N/A DEMO_BUY_SELL_RATIO N/A float N/A DEMO_BUY_SELL_RATIO 1 N/A transactions N/A N/A quantities N/A dict N/A N/A symbol 0.0 N/A symbol instruments N/A undeposited_cash total_amount N/A cash 0 N/A date N/A sorted dates N/A N/A sell_candidates N/A N/A q N/A 0 N/A q N/A N/A quantities items N/A N/A q N/A 1 0 N/A N/A N/A N/A random transaction_probability N/A N/A len transactions 0 N/A N/A N/A N/A undeposited_cash 1 N/A N/A random deposit_probability N/A N/A deposit N/A min N/A undeposited_cash N/A round N/A undeposited_cash N/A N/A randint 10 100 100.0 -2 N/A total_amount 0.5 N/A undeposited_cash deposit N/A cash deposit N/A N/A N/A transactions append N/A Transaction type DEPOSIT as_of_date date symbol CASH_SYMBOL quantity deposit price 1.0 total deposit N/A N/A N/A N/A random buy_sell_probability N/A N/A amount N/A min N/A cash N/A round N/A cash N/A N/A randint 20 100 100.0 N/A total_amount 0.1 N/A symbol N/A choice instruments N/A price N/A N/A N/A N/A N/A quote_map get symbol cash_equivalent N/A N/A N/A N/A prices get symbol get date 1.0 N/A quantity N/A floor N/A N/A amount commission price N/A N/A quantity 0 N/A N/A total N/A N/A quantity price commission N/A cash total N/A N/A quantities N/A symbol N/A N/A N/A quantities get symbol quantity N/A N/A N/A transactions append N/A Transaction type BUY as_of_date date symbol symbol quantity quantity price price total total N/A N/A N/A N/A len sell_candidates 0 N/A N/A symbol N/A choice sell_candidates N/A price N/A N/A N/A N/A N/A quote_map get symbol cash_equivalent N/A N/A N/A N/A prices get symbol get date 1.0 N/A available_quantity N/A N/A quantities get symbol N/A quantity N/A min available_quantity N/A round N/A available_quantity N/A N/A randint 20 100 100.0 N/A N/A quantity 0 N/A N/A total N/A N/A quantity price commission N/A cash total N/A N/A quantities N/A symbol N/A N/A N/A quantities get symbol quantity N/A N/A N/A transactions append N/A Transaction type SELL as_of_date date symbol symbol quantity quantity price price total total N/A transactions N/A