2 releases
0.1.3 | Mar 23, 2024 |
---|---|
0.1.2 | Mar 16, 2024 |
#12 in #sport
95KB
2.5K
SLoC
Virtuals Fortune Spec
This crate holds the specification for the Virtuals Fortune program.
All providers should implement the Provider
trait. It should also provide its own implementations for the following traits:
- Scraper
- Trade
- Trader
- TradingAccount.
lib.rs
:
Virtuals Fortune is a library that provides a framework for trading on virtual sports betting platforms.
The library is designed to be extensible and flexible, allowing for the easy addition of new providers,
scrapers, and traders. It is also designed to be used in a multithreaded environment, allowing
for the easy scaling of trading operations. virtuals-fortune-spec
is the specification for the
Virtuals Fortune library. It defines the traits that need to be implemented to create a new provider,
scraper, or trader. The library also provides a set of pre-defined traits that can be used to create
new providers, scrapers, and traders.
Usage
To implement a new provider you need to implement the following traits:
Scraper
: This trait defines the methods that a scraper should implement.Trader
: This trait defines the methods that a trader should implement.MatchDao
: This trait defines the methods that a match dao should implement.TradingAccountDao
: This trait defines the methods that a trading account dao should implement.Provider
: This trait defines the methods that a provider should implement.Trade
: This trait defines the methods that a trade should implement.TradingAccount
: This trait defines the methods that a trading account should implement.Session
: This trait defines the methods that a session should implement.
Once you have implemented the required traits you can register the provider with the main API
library and the scraper with the virtuals-fortune-scrapers
process to trade on virtual sports
betting platforms.
Dependencies
~25–36MB
~659K SLoC