Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/vnpy/vnpy
/ functions
Functions
769 in github.com/vnpy/vnpy
⨍
Functions
769
◇
Types & classes
105
↓ 121 callers
Method
add_feature
Add a feature expression
vnpy/alpha/dataset/template.py:58
↓ 101 callers
Function
calculate_by_expression
Execute calculation based on expression
vnpy/alpha/dataset/utility.py:203
↓ 43 callers
Method
connect
Start connection of a specific gateway.
vnpy/trader/engine.py:234
↓ 23 callers
Method
join
(self)
vnpy/rpc/client.py:122
↓ 22 callers
Method
_as_series
Normalize an operator result to a Polars series.
vnpy/alpha/dataset/utility.py:29
↓ 22 callers
Method
create_label
Create label with certain font color.
vnpy/trader/ui/widget.py:854
↓ 20 callers
Function
assert_data
Assert that a proxy keeps the index columns and expected values.
tests/alpha/test_dataproxy.py:27
↓ 19 callers
Method
result
Convert series data to feature object
vnpy/alpha/dataset/utility.py:49
↓ 18 callers
Method
register
Register function
vnpy/rpc/server.py:123
↓ 16 callers
Method
__init__
(self, content: Any, data: Any)
vnpy/trader/ui/widget.py:142
↓ 14 callers
Method
on_event
General event push.
vnpy/trader/gateway.py:86
↓ 14 callers
Function
to_datetime
Convert time data type
vnpy/alpha/dataset/utility.py:267
↓ 14 callers
Method
write_log
Put log event with specific message.
vnpy/trader/engine.py:168
↓ 12 callers
Function
assert_int_data
Assert that a proxy comparison returns Int32 data with expected values.
tests/alpha/test_dataproxy.py:33
↓ 10 callers
Method
get_count
Get total number of bars.
vnpy/chart/manager.py:57
↓ 9 callers
Method
close
(self)
vnpy/trader/engine.py:76
↓ 8 callers
Function
abs
Calculate the absolute value of the feature
vnpy/alpha/dataset/math_function.py:53
↓ 8 callers
Method
add_action
( self, menu: QtWidgets.QMenu, action_name: str, icon_name: str, func:
vnpy/trader/ui/mainwindow.py:209
↓ 8 callers
Method
add_app
Add app.
vnpy/trader/engine.py:128
↓ 8 callers
Method
create_dock
Initialize a dock widget.
vnpy/trader/ui/mainwindow.py:229
↓ 8 callers
Method
get_gateway
Return gateway object by name.
vnpy/trader/engine.py:189
↓ 8 callers
Function
get_icon_path
Get path for icon file with ico name.
vnpy/trader/utility.py:82
↓ 7 callers
Method
add
Test function
examples/simple_rpc/test_server.py:19
↓ 7 callers
Function
make_proxy
Build a DataProxy from a single value column.
tests/alpha/test_dataproxy.py:22
↓ 7 callers
Function
to_int
(value: float)
vnpy/chart/base.py:19
↓ 7 callers
Method
update
Update statistics Parameters ---------- val : float Current value n : int, default 1
vnpy/alpha/model/models/mlp_model.py:532
↓ 6 callers
Method
_comparison_series
Normalize comparison results to an Int32 series.
vnpy/alpha/dataset/utility.py:36
↓ 6 callers
Method
add_gateway
Add gateway.
vnpy/trader/engine.py:110
↓ 6 callers
Method
get_engine
Return engine object by name.
vnpy/trader/engine.py:198
↓ 6 callers
Function
query_by_time
Filter DataFrame based on time range
vnpy/alpha/dataset/template.py:274
↓ 6 callers
Method
update_info
(self)
vnpy/chart/widget.py:488
↓ 5 callers
Method
_update_x_range
Update the x-axis range of plots.
vnpy/chart/widget.py:196
↓ 5 callers
Method
add_engine
Add function engine.
vnpy/trader/engine.py:102
↓ 5 callers
Method
fetch_learn
Get learning data for a specific segment
vnpy/alpha/dataset/template.py:188
↓ 5 callers
Method
get_position_holding
(self, vt_symbol: str)
vnpy/trader/converter.py:355
↓ 5 callers
Method
is_convert_required
Check if the contract needs offset convert.
vnpy/trader/converter.py:390
↓ 5 callers
Function
make_test_df
Create a compact deterministic dataset for DataProxy tests.
tests/alpha/test_dataproxy.py:9
↓ 5 callers
Method
put
Put an event object into event queue.
vnpy/event/engine.py:105
↓ 5 callers
Method
register
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 callers
Method
update
Refresh the item.
vnpy/chart/item.py:99
↓ 4 callers
Method
bind
Complete binding with QR-code credentials and user ID.
vnpy/trader/engine.py:723
↓ 4 callers
Function
create_qapp
Create Qt Application.
vnpy/trader/ui/qt.py:21
↓ 4 callers
Method
get_bar
Get bar data with index.
vnpy/chart/manager.py:76
↓ 4 callers
Method
get_contract
Get contract data by vt_symbol.
vnpy/trader/engine.py:492
↓ 4 callers
Method
is_active
Check if the order is active.
vnpy/trader/object.py:137
↓ 4 callers
Function
load_json
Load data from json file in temp path.
vnpy/trader/utility.py:91
↓ 4 callers
Method
open
Get open price time series.
vnpy/trader/utility.py:534
↓ 4 callers
Function
round_to
Round price to price tick value.
vnpy/trader/utility.py:120
↓ 4 callers
Function
save_json
Save data into json file in temp path.
vnpy/trader/utility.py:106
↓ 4 callers
Method
send_order
Send order
vnpy/alpha/strategy/template.py:94
↓ 4 callers
Method
set_content
Cell color is set based on whether pnl is positive or negative.
vnpy/trader/ui/widget.py:170
↓ 4 callers
Method
start
(self)
vnpy/trader/engine.py:643
↓ 4 callers
Method
start
Start RpcClient
vnpy/rpc/client.py:88
↓ 4 callers
Method
std
(self, n: int, nbdev: int = 1, array: Literal[False] = False)
vnpy/trader/utility.py:790
↓ 4 callers
Function
to_pd_series
Convert to pandas.Series data structure
vnpy/alpha/dataset/ta_function.py:12
↓ 3 callers
Method
__init__
(self, main_engine: MainEngine, event_engine: EventEngine)
vnpy/trader/engine.py:338
↓ 3 callers
Method
_clear_cache
Clear cached range data.
vnpy/chart/manager.py:155
↓ 3 callers
Method
create_cancel_request
Create cancel request object from order.
vnpy/trader/object.py:143
↓ 3 callers
Method
deactivate
Stop worker thread.
vnpy/trader/engine.py:749
↓ 3 callers
Method
fetch_infer
Get inference data for a specific segment
vnpy/alpha/dataset/template.py:181
↓ 3 callers
Method
generate_settings
(self)
vnpy/trader/optimize.py:69
↓ 3 callers
Method
get_cash_available
Get available cash
vnpy/alpha/strategy/template.py:191
↓ 3 callers
Method
get_data
Get data object.
vnpy/trader/ui/widget.py:85
↓ 3 callers
Method
init_ui
(self)
vnpy/trader/ui/widget.py:265
↓ 3 callers
Method
load_bar_data
Load bar data
vnpy/alpha/lab.py:96
↓ 3 callers
Method
refresh_status
Refresh dialog widgets according to current binding state.
vnpy/trader/ui/widget.py:1576
↓ 3 callers
Method
update_order
(self, order: OrderData)
vnpy/trader/converter.py:54
↓ 3 callers
Method
update_order
Update order data
vnpy/alpha/strategy/template.py:67
↓ 2 callers
Method
__init__
(self, manager: BarManager)
vnpy/chart/item.py:15
↓ 2 callers
Function
_get
Send an iLink GET request and validate the business return code.
vnpy/trader/wechat.py:225
↓ 2 callers
Method
_loss_fn
Calculate loss value Parameters ---------- pred : torch.Tensor Model predictions target : torch.
vnpy/alpha/model/models/mlp_model.py:329
↓ 2 callers
Method
_on_key_down
Zoom out the chart.
vnpy/chart/widget.py:289
↓ 2 callers
Method
_on_key_up
Zoom in the chart.
vnpy/chart/widget.py:301
↓ 2 callers
Function
_parse
Parse iLink response, validate HTTP status and business return code.
vnpy/trader/wechat.py:254
↓ 2 callers
Function
_post
Send an iLink POST request and validate the business return code.
vnpy/trader/wechat.py:193
↓ 2 callers
Method
_predict_batch
Neural network prediction function Parameters ---------- data : torch.Tensor Input data return_c
vnpy/alpha/model/models/mlp_model.py:349
↓ 2 callers
Method
_update_after_move
Update cursor after moved by left/right.
vnpy/chart/widget.py:531
↓ 2 callers
Method
_update_label
(self)
vnpy/chart/widget.py:461
↓ 2 callers
Method
_update_line
(self)
vnpy/chart/widget.py:448
↓ 2 callers
Method
_update_plot_limits
Update the limit of plots.
vnpy/chart/widget.py:182
↓ 2 callers
Method
activate
Start worker thread.
vnpy/trader/engine.py:745
↓ 2 callers
Method
add_item
Add chart item.
vnpy/chart/widget.py:114
↓ 2 callers
Method
add_plot
Add plot area.
vnpy/chart/widget.py:62
↓ 2 callers
Method
add_trade
Add trade information
vnpy/alpha/strategy/backtesting.py:822
↓ 2 callers
Method
calculate_pnl
Calculate profit and loss
vnpy/alpha/strategy/backtesting.py:826
↓ 2 callers
Function
check_trading_period
()
examples/no_ui/run.py:41
↓ 2 callers
Method
close
Make sure every gateway and app is closed properly before programme exit.
vnpy/trader/engine.py:310
↓ 2 callers
Function
extract_vt_symbol
:return: (symbol, exchange)
vnpy/trader/utility.py:23
↓ 2 callers
Method
get_all_gateway_names
Get all names of gateway added in main engine.
vnpy/trader/engine.py:216
↓ 2 callers
Method
get_datetime
Get datetime with index.
vnpy/chart/manager.py:69
↓ 2 callers
Function
get_file_path
Get path for temp file with filename.
vnpy/trader/utility.py:65
↓ 2 callers
Method
get_pos
Query current position
vnpy/alpha/strategy/template.py:121
↓ 2 callers
Method
get_price_range
Get price range to show within given index range.
vnpy/chart/manager.py:93
↓ 2 callers
Method
get_volume_range
Get volume range to show within given index range.
vnpy/chart/manager.py:124
↓ 2 callers
Method
get_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 callers
Method
insert_new_row
Insert a new row at the top of table.
vnpy/trader/ui/widget.py:331
↓ 2 callers
Method
load_component_data
Load index component data as DataFrame
vnpy/alpha/lab.py:257
↓ 2 callers
Method
load_window_setting
Load previous window size and state by trader path and setting name.
vnpy/trader/ui/mainwindow.py:305
↓ 2 callers
Method
move_to_right
Move chart to the most right.
vnpy/chart/widget.py:313
↓ 2 callers
Method
publish
Publish data
vnpy/rpc/server.py:116
next →
1–100 of 769, ranked by callers