MCPcopy Index your code

hub / github.com/vnpy/vnpy / functions

Functions769 in github.com/vnpy/vnpy

↓ 121 callersMethodadd_feature
Add a feature expression
vnpy/alpha/dataset/template.py:58
↓ 101 callersFunctioncalculate_by_expression
Execute calculation based on expression
vnpy/alpha/dataset/utility.py:203
↓ 43 callersMethodconnect
Start connection of a specific gateway.
vnpy/trader/engine.py:234
↓ 23 callersMethodjoin
(self)
vnpy/rpc/client.py:122
↓ 22 callersMethod_as_series
Normalize an operator result to a Polars series.
vnpy/alpha/dataset/utility.py:29
↓ 22 callersMethodcreate_label
Create label with certain font color.
vnpy/trader/ui/widget.py:854
↓ 20 callersFunctionassert_data
Assert that a proxy keeps the index columns and expected values.
tests/alpha/test_dataproxy.py:27
↓ 19 callersMethodresult
Convert series data to feature object
vnpy/alpha/dataset/utility.py:49
↓ 18 callersMethodregister
Register function
vnpy/rpc/server.py:123
↓ 16 callersMethod__init__
(self, content: Any, data: Any)
vnpy/trader/ui/widget.py:142
↓ 14 callersMethodon_event
General event push.
vnpy/trader/gateway.py:86
↓ 14 callersFunctionto_datetime
Convert time data type
vnpy/alpha/dataset/utility.py:267
↓ 14 callersMethodwrite_log
Put log event with specific message.
vnpy/trader/engine.py:168
↓ 12 callersFunctionassert_int_data
Assert that a proxy comparison returns Int32 data with expected values.
tests/alpha/test_dataproxy.py:33
↓ 10 callersMethodget_count
Get total number of bars.
vnpy/chart/manager.py:57
↓ 9 callersMethodclose
(self)
vnpy/trader/engine.py:76
↓ 8 callersFunctionabs
Calculate the absolute value of the feature
vnpy/alpha/dataset/math_function.py:53
↓ 8 callersMethodadd_action
( self, menu: QtWidgets.QMenu, action_name: str, icon_name: str, func:
vnpy/trader/ui/mainwindow.py:209
↓ 8 callersMethodadd_app
Add app.
vnpy/trader/engine.py:128
↓ 8 callersMethodcreate_dock
Initialize a dock widget.
vnpy/trader/ui/mainwindow.py:229
↓ 8 callersMethodget_gateway
Return gateway object by name.
vnpy/trader/engine.py:189
↓ 8 callersFunctionget_icon_path
Get path for icon file with ico name.
vnpy/trader/utility.py:82
↓ 7 callersMethodadd
Test function
examples/simple_rpc/test_server.py:19
↓ 7 callersFunctionmake_proxy
Build a DataProxy from a single value column.
tests/alpha/test_dataproxy.py:22
↓ 7 callersFunctionto_int
(value: float)
vnpy/chart/base.py:19
↓ 7 callersMethodupdate
Update statistics Parameters ---------- val : float Current value n : int, default 1
vnpy/alpha/model/models/mlp_model.py:532
↓ 6 callersMethod_comparison_series
Normalize comparison results to an Int32 series.
vnpy/alpha/dataset/utility.py:36
↓ 6 callersMethodadd_gateway
Add gateway.
vnpy/trader/engine.py:110
↓ 6 callersMethodget_engine
Return engine object by name.
vnpy/trader/engine.py:198
↓ 6 callersFunctionquery_by_time
Filter DataFrame based on time range
vnpy/alpha/dataset/template.py:274
↓ 6 callersMethodupdate_info
(self)
vnpy/chart/widget.py:488
↓ 5 callersMethod_update_x_range
Update the x-axis range of plots.
vnpy/chart/widget.py:196
↓ 5 callersMethodadd_engine
Add function engine.
vnpy/trader/engine.py:102
↓ 5 callersMethodfetch_learn
Get learning data for a specific segment
vnpy/alpha/dataset/template.py:188
↓ 5 callersMethodget_position_holding
(self, vt_symbol: str)
vnpy/trader/converter.py:355
↓ 5 callersMethodis_convert_required
Check if the contract needs offset convert.
vnpy/trader/converter.py:390
↓ 5 callersFunctionmake_test_df
Create a compact deterministic dataset for DataProxy tests.
tests/alpha/test_dataproxy.py:9
↓ 5 callersMethodput
Put an event object into event queue.
vnpy/event/engine.py:105
↓ 5 callersMethodregister
Register a new handler function for a specific event type. Every function can only be registered once for each event type.
vnpy/event/engine.py:111
↓ 5 callersMethodupdate
Refresh the item.
vnpy/chart/item.py:99
↓ 4 callersMethodbind
Complete binding with QR-code credentials and user ID.
vnpy/trader/engine.py:723
↓ 4 callersFunctioncreate_qapp
Create Qt Application.
vnpy/trader/ui/qt.py:21
↓ 4 callersMethodget_bar
Get bar data with index.
vnpy/chart/manager.py:76
↓ 4 callersMethodget_contract
Get contract data by vt_symbol.
vnpy/trader/engine.py:492
↓ 4 callersMethodis_active
Check if the order is active.
vnpy/trader/object.py:137
↓ 4 callersFunctionload_json
Load data from json file in temp path.
vnpy/trader/utility.py:91
↓ 4 callersMethodopen
Get open price time series.
vnpy/trader/utility.py:534
↓ 4 callersFunctionround_to
Round price to price tick value.
vnpy/trader/utility.py:120
↓ 4 callersFunctionsave_json
Save data into json file in temp path.
vnpy/trader/utility.py:106
↓ 4 callersMethodsend_order
Send order
vnpy/alpha/strategy/template.py:94
↓ 4 callersMethodset_content
Cell color is set based on whether pnl is positive or negative.
vnpy/trader/ui/widget.py:170
↓ 4 callersMethodstart
(self)
vnpy/trader/engine.py:643
↓ 4 callersMethodstart
Start RpcClient
vnpy/rpc/client.py:88
↓ 4 callersMethodstd
(self, n: int, nbdev: int = 1, array: Literal[False] = False)
vnpy/trader/utility.py:790
↓ 4 callersFunctionto_pd_series
Convert to pandas.Series data structure
vnpy/alpha/dataset/ta_function.py:12
↓ 3 callersMethod__init__
(self, main_engine: MainEngine, event_engine: EventEngine)
vnpy/trader/engine.py:338
↓ 3 callersMethod_clear_cache
Clear cached range data.
vnpy/chart/manager.py:155
↓ 3 callersMethodcreate_cancel_request
Create cancel request object from order.
vnpy/trader/object.py:143
↓ 3 callersMethoddeactivate
Stop worker thread.
vnpy/trader/engine.py:749
↓ 3 callersMethodfetch_infer
Get inference data for a specific segment
vnpy/alpha/dataset/template.py:181
↓ 3 callersMethodgenerate_settings
(self)
vnpy/trader/optimize.py:69
↓ 3 callersMethodget_cash_available
Get available cash
vnpy/alpha/strategy/template.py:191
↓ 3 callersMethodget_data
Get data object.
vnpy/trader/ui/widget.py:85
↓ 3 callersMethodinit_ui
(self)
vnpy/trader/ui/widget.py:265
↓ 3 callersMethodload_bar_data
Load bar data
vnpy/alpha/lab.py:96
↓ 3 callersMethodrefresh_status
Refresh dialog widgets according to current binding state.
vnpy/trader/ui/widget.py:1576
↓ 3 callersMethodupdate_order
(self, order: OrderData)
vnpy/trader/converter.py:54
↓ 3 callersMethodupdate_order
Update order data
vnpy/alpha/strategy/template.py:67
↓ 2 callersMethod__init__
(self, manager: BarManager)
vnpy/chart/item.py:15
↓ 2 callersFunction_get
Send an iLink GET request and validate the business return code.
vnpy/trader/wechat.py:225
↓ 2 callersMethod_loss_fn
Calculate loss value Parameters ---------- pred : torch.Tensor Model predictions target : torch.
vnpy/alpha/model/models/mlp_model.py:329
↓ 2 callersMethod_on_key_down
Zoom out the chart.
vnpy/chart/widget.py:289
↓ 2 callersMethod_on_key_up
Zoom in the chart.
vnpy/chart/widget.py:301
↓ 2 callersFunction_parse
Parse iLink response, validate HTTP status and business return code.
vnpy/trader/wechat.py:254
↓ 2 callersFunction_post
Send an iLink POST request and validate the business return code.
vnpy/trader/wechat.py:193
↓ 2 callersMethod_predict_batch
Neural network prediction function Parameters ---------- data : torch.Tensor Input data return_c
vnpy/alpha/model/models/mlp_model.py:349
↓ 2 callersMethod_update_after_move
Update cursor after moved by left/right.
vnpy/chart/widget.py:531
↓ 2 callersMethod_update_label
(self)
vnpy/chart/widget.py:461
↓ 2 callersMethod_update_line
(self)
vnpy/chart/widget.py:448
↓ 2 callersMethod_update_plot_limits
Update the limit of plots.
vnpy/chart/widget.py:182
↓ 2 callersMethodactivate
Start worker thread.
vnpy/trader/engine.py:745
↓ 2 callersMethodadd_item
Add chart item.
vnpy/chart/widget.py:114
↓ 2 callersMethodadd_plot
Add plot area.
vnpy/chart/widget.py:62
↓ 2 callersMethodadd_trade
Add trade information
vnpy/alpha/strategy/backtesting.py:822
↓ 2 callersMethodcalculate_pnl
Calculate profit and loss
vnpy/alpha/strategy/backtesting.py:826
↓ 2 callersFunctioncheck_trading_period
()
examples/no_ui/run.py:41
↓ 2 callersMethodclose
Make sure every gateway and app is closed properly before programme exit.
vnpy/trader/engine.py:310
↓ 2 callersFunctionextract_vt_symbol
:return: (symbol, exchange)
vnpy/trader/utility.py:23
↓ 2 callersMethodget_all_gateway_names
Get all names of gateway added in main engine.
vnpy/trader/engine.py:216
↓ 2 callersMethodget_datetime
Get datetime with index.
vnpy/chart/manager.py:69
↓ 2 callersFunctionget_file_path
Get path for temp file with filename.
vnpy/trader/utility.py:65
↓ 2 callersMethodget_pos
Query current position
vnpy/alpha/strategy/template.py:121
↓ 2 callersMethodget_price_range
Get price range to show within given index range.
vnpy/chart/manager.py:93
↓ 2 callersMethodget_volume_range
Get volume range to show within given index range.
vnpy/chart/manager.py:124
↓ 2 callersMethodget_y_range
Get range of y-axis with given x-axis range. If min_ix and max_ix not specified, then return range with whole data set.
vnpy/chart/item.py:59
↓ 2 callersMethodinsert_new_row
Insert a new row at the top of table.
vnpy/trader/ui/widget.py:331
↓ 2 callersMethodload_component_data
Load index component data as DataFrame
vnpy/alpha/lab.py:257
↓ 2 callersMethodload_window_setting
Load previous window size and state by trader path and setting name.
vnpy/trader/ui/mainwindow.py:305
↓ 2 callersMethodmove_to_right
Move chart to the most right.
vnpy/chart/widget.py:313
↓ 2 callersMethodpublish
Publish data
vnpy/rpc/server.py:116
next →1–100 of 769, ranked by callers