A cron-based CSFloat deal finder CLI.
Create a developer key in your CSFloat profile by navigating to the Developers
tab.
Copy the generated API key into a file called key that lies in the same dir as this project.
Then run
go build -o floatto build the binary. Then run it via
./floatThis expects the key file with the CSFloat API key in the same dir.
Alternatively, you can store the API key in any file you want and reference it via
./float --keyfile path/to/the/keyfileThe CLI has some configuration options you might consider.
# filter all offers by max price 25$
./float -m 2500 # filter all offers in range 20$ - 25$
./float -m 2500 -n 2000 # filter all offers by max price 25$ (TOP 5 only)
./float -m 2500 --top 5# all offers with a discount of at least 15%
./float -d 15# also show offers with stickers on it
./float --stickers# also show auctions
./float -a# filter all offers in range 50% - 95$ with stickers, include auctions and run in cron mode
./float -m 9500 -n 5000 -a -s --cronAll Options:
Usage:
float [flags]
Flags:
-a, --auctions Also check auctions
-c, --category int Item category - [0: Any, 1: Normal, 2: Stattrak, 3: Souvenir] (default 1)
--cron Enable cron mode
-d, --discount float Min discount percentage (default 5)
-h, --help help for float
-f, --keyfile string The location of your API key file
-k, --keyword string The keyword. e.g a Skin Name like 'Asiimov' or 'Dragon Lore'
-m, --max int Max price in cents
-n, --min int Min price in cents
-s, --stickers Show stickers? (Default off)
-t, --top int Top List (default 10)
--max / --minis based on cents, e.g--max 125corresponds to max price = 1.25$ while--discountis a percentage, e.g--discount 12corresponds to 12%