https://github.com/remorses/auto-bet
Automate bets
https://github.com/remorses/auto-bet
Last synced: 7 months ago
JSON representation
Automate bets
- Host: GitHub
- URL: https://github.com/remorses/auto-bet
- Owner: remorses
- Created: 2018-02-23T13:10:51.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2018-04-24T19:52:06.000Z (over 7 years ago)
- Last Synced: 2025-03-04T18:40:48.065Z (10 months ago)
- Language: TypeScript
- Homepage:
- Size: 210 KB
- Stars: 1
- Watchers: 2
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# auto-bet
Automate bets
// all system logic
// run scrapers in intervals
// run queue grouper after
// place bets that are in queue with
// placeBet(money, siteUrl, betObject)
// also manage the state of different sites:
// money
// open bets
// closed bets
// restrictions
// according to the state of site i can decide if
// deposit(money, site, mehod)
// draw(money, site, method)
// divide the categorization logic in, objects, schemas:
// betObject: single bet and odd of a match,
// contains also the data to find the bet on the site
// used in the final stage to place the already found surebet
// matchObject of a site: a match with all the information of that match of a specific site
// contains the odds of all sides and is used to calculate the surebets among diferent strictFunctionTypes
// sameMatchesObject: a match with all the odds from different sites
const metadata = {
tournament: "tournament name",
matchName: "match name",
date: "date",
time: "time",
}
const odd = {
type: "outcome",
side: "home",
player: "player name",
value: 2.54,
}
const bet = {
site: "betfair",
metadata,
odd
}
const match = {
site: "betfair",
metadata,
odds: [odd, odd, odd]
}
const betsGroup = {
metadata,
bets: [bet, bet, bet]
}