Skip to content

Commit

Permalink
hmm so close
Browse files Browse the repository at this point in the history
still some very small position showing! don't know why. :(
  • Loading branch information
Axel-Jacobsen committed Dec 28, 2023
1 parent 0dee261 commit 880b8bd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/bots.rs
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ impl ArbitrageBot {

for answer in self.answers.values() {
bets.push(manifold_types::BotBet {
amount: 100. * (1. / answer.probability) / inverse_sum,
amount: 500. * (1. / answer.probability) / inverse_sum,
contract_id: self.market.lite_market.id.clone(),
outcome: manifold_types::MarketOutcome::Yes,
answer_id: Some(answer.id.clone()),
Expand Down
3 changes: 1 addition & 2 deletions src/market_handler.rs
Original file line number Diff line number Diff line change
Expand Up @@ -328,13 +328,12 @@ impl MarketHandler {

for pos in open_positions {
let data = Some(serde_json::json!({
"contractId": pos.contract_id,
"answerId": pos.answer_id,
}));

let sell_response = rate_limited_post_endpoint(
self.write_rate_limiter.clone(),
"sell-shares".to_string(),
format!("market/{}/sell", pos.contract_id),
&[],
data,
)
Expand Down

0 comments on commit 880b8bd

Please sign in to comment.