Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/TheOverLordEA/polymarket-hft-engine
/ functions
Functions
65 in github.com/TheOverLordEA/polymarket-hft-engine
⨍
Functions
65
◇
Types & classes
20
↓ 12 callers
Method
save
(&self)
eth-5min-bot/src/state.rs:54
↓ 12 callers
Method
save
(&self)
btc-5min-bot/src/state.rs:54
↓ 7 callers
Method
best_bid
Helper to get best bid/ask as f64
core-shared/src/lib.rs:25
↓ 5 callers
Method
best_ask
(&self)
core-shared/src/lib.rs:29
↓ 2 callers
Method
calculate_tr
(&self, high: f64, low: f64, prev_close: f64)
eth-5min-bot/src/atr.rs:91
↓ 2 callers
Method
calculate_tr
(&self, high: f64, low: f64, prev_close: f64)
btc-5min-bot/src/atr.rs:91
↓ 2 callers
Method
current_atr
(&self)
eth-5min-bot/src/atr.rs:134
↓ 2 callers
Method
current_atr
(&self)
btc-5min-bot/src/atr.rs:134
↓ 2 callers
Method
reconcile_with_chain
(&mut self)
eth-5min-bot/src/strategy.rs:363
↓ 2 callers
Method
reconcile_with_chain
(&mut self)
btc-5min-bot/src/strategy.rs:363
↓ 2 callers
Method
sign_and_submit
(&mut self, market: &Market, price: f64, size: f64, side: Side)
eth-5min-bot/src/strategy.rs:335
↓ 2 callers
Method
sign_and_submit
(&mut self, market: &Market, price: f64, size: f64, side: Side)
btc-5min-bot/src/strategy.rs:335
↓ 2 callers
Method
update
(&mut self, current_price: f64)
eth-5min-bot/src/velocity.rs:22
↓ 2 callers
Method
update
(&mut self, current_price: f64)
btc-5min-bot/src/velocity.rs:22
↓ 1 callers
Method
bootstrap
(&mut self)
eth-5min-bot/src/atr.rs:57
↓ 1 callers
Method
bootstrap
(&mut self)
btc-5min-bot/src/atr.rs:57
↓ 1 callers
Method
check_on_chain_position
(&self, market: &Market)
eth-5min-bot/src/strategy.rs:456
↓ 1 callers
Method
check_on_chain_position
(&self, market: &Market)
btc-5min-bot/src/strategy.rs:456
↓ 1 callers
Method
check_usdc_balance
(&self)
eth-5min-bot/src/strategy.rs:439
↓ 1 callers
Method
check_usdc_balance
(&self)
btc-5min-bot/src/strategy.rs:439
↓ 1 callers
Method
emergency_sell
(&mut self, market: &Market)
eth-5min-bot/src/strategy.rs:313
↓ 1 callers
Method
emergency_sell
(&mut self, market: &Market)
btc-5min-bot/src/strategy.rs:313
↓ 1 callers
Method
execute_buy
(&mut self, market: &Market, limit_price: f64)
eth-5min-bot/src/strategy.rs:274
↓ 1 callers
Method
execute_buy
(&mut self, market: &Market, limit_price: f64)
btc-5min-bot/src/strategy.rs:274
↓ 1 callers
Function
fetch_active_market_id
(asset: &str)
eth-5min-bot/src/main.rs:27
↓ 1 callers
Function
fetch_active_market_id
(asset: &str)
btc-5min-bot/src/main.rs:26
↓ 1 callers
Function
fetch_server_time
()
eth-5min-bot/src/main.rs:119
↓ 1 callers
Function
fetch_server_time
()
btc-5min-bot/src/main.rs:118
↓ 1 callers
Method
initialize_client
(&mut self, private_key: &str)
eth-5min-bot/src/strategy.rs:480
↓ 1 callers
Method
initialize_client
(&mut self, private_key: &str)
btc-5min-bot/src/strategy.rs:480
↓ 1 callers
Method
is_locked
(&self)
eth-5min-bot/src/velocity.rs:40
↓ 1 callers
Method
is_locked
(&self)
btc-5min-bot/src/velocity.rs:40
↓ 1 callers
Method
run_ghost_test
(&mut self)
eth-5min-bot/src/strategy.rs:613
↓ 1 callers
Method
sign_and_submit_test
A helper for the test that doesn't change bot state
eth-5min-bot/src/strategy.rs:642
↓ 1 callers
Method
update_from_tick
Updates the monitor with a new price tick
eth-5min-bot/src/atr.rs:99
↓ 1 callers
Method
update_from_tick
Updates the monitor with a new price tick
btc-5min-bot/src/atr.rs:99
Method
calculate_probability
(current_price: f64, strike_price: f64, time_remaining_sec: i64)
eth-5min-bot/src/strategy.rs:263
Method
calculate_probability
(current_price: f64, strike_price: f64, time_remaining_sec: i64)
btc-5min-bot/src/strategy.rs:263
Method
default
()
eth-5min-bot/src/state.rs:26
Method
default
()
btc-5min-bot/src/state.rs:26
Method
default
()
core-shared/src/lib.rs:11
Method
default_btc
()
btc-5min-bot/src/config.rs:11
Method
default_eth
()
eth-5min-bot/src/config.rs:11
Method
execute_tick
(&mut self, binance_price: f64, coinbase_price: f64, config: &MarketConfig)
eth-5min-bot/src/strategy.rs:105
Method
execute_tick
(&mut self, binance_price: f64, coinbase_price: f64, config: &MarketConfig)
btc-5min-bot/src/strategy.rs:105
Method
grant_sell_permission
()
eth-5min-bot/src/strategy.rs:567
Method
grant_sell_permission
()
btc-5min-bot/src/strategy.rs:507
Method
is_valid
(&self)
core-shared/src/lib.rs:33
Method
is_volatility_desert
(&self, threshold: f64)
eth-5min-bot/src/atr.rs:142
Method
is_volatility_desert
(&self, threshold: f64)
btc-5min-bot/src/atr.rs:142
Method
load
()
eth-5min-bot/src/state.rs:41
Method
load
()
btc-5min-bot/src/state.rs:41
Function
main
()
eth-5min-bot/src/main.rs:132
Function
main
()
btc-5min-bot/src/main.rs:131
Method
new
(threshold: f64, duration_secs: u64)
eth-5min-bot/src/velocity.rs:12
Method
new
Bootstraps the ATR monitor using Binance REST API
eth-5min-bot/src/atr.rs:38
Method
new
( trading_enabled: bool, asset: String, signature_type: u8, funder: Option<Add
eth-5min-bot/src/strategy.rs:50
Method
new
(threshold: f64, duration_secs: u64)
btc-5min-bot/src/velocity.rs:12
Method
new
Bootstraps the ATR monitor using Binance REST API
btc-5min-bot/src/atr.rs:38
Method
new
( trading_enabled: bool, asset: String, signature_type: u8, funder: Option<Add
btc-5min-bot/src/strategy.rs:50
Method
new
()
core-shared/src/lib.rs:17
Function
run_ghost_test
(&mut self)
eth-5min-bot/src/test_connection.rs:1
Method
send_telegram_alert
(message: &str)
eth-5min-bot/src/strategy.rs:88
Method
send_telegram_alert
(message: &str)
btc-5min-bot/src/strategy.rs:88
Method
update
Update processes deltas properly
core-shared/src/lib.rs:41