
Keep your flea prices up to date with data processed from Tarkov.dev
A very simple mod that pulls live flea data from a GitHub mirror of processed Tarkov.dev flea data, this mirror is updated once an hour. The mod will re-download the flea data every hour while your server is active, or if it’s been over an hour since the last update when you launch your server.
The flea prices are processed using approximately the same method as SPT utilizes for flea prices, just updated every hour.
Notice: This mod connects to an external service to fetch price data, this service is not maintained by or associated with the SPT project.
Installation
1) Open the downloaded zip file in 7-zip
2) Select the folder in the zip file in 7-zip
3) Drag the selected folder from 7-zip into your SPT folder
Demonstration Video:
Configuration
Configuration is handled via the config/config.json and config/blacklist.json files
config/config.json:
- maxIncreaseMult - This is used to provide a multiplier above SPTs base flea price that an item is allowed to go (Default: 10, meaning prices are capped at 10x the base SPT flea price)
- pvePrices - Whether to enable PvE prices instead of PvP prices (Default: false)
- disablePriceFetching - Whether to disable fetching of prices from the backing database (Default: false)
- nextUpdate - This can be ignored and is just used for keeping track of when the plugin should next pull an updated price file
The config option disablePriceFetching allows disabling the fetching of prices from the backing database, and instead will always use the price file located at user\mods\zzDrakiaXYZ-LiveFleaPrices\config\prices.json. If this file doesn’t exist, it will be downloaded from the backing database once and not updated after that point.
Previous price files can be retrieved by looking through the commit history of the backing database repository:
PVP: https://github.com/DrakiaXYZ/SPT-LiveFleaPriceDB/commits/main/prices-regular.json
PVE: https://github.com/DrakiaXYZ/SPT-LiveFleaPriceDB/commits/main/prices-pve.json
config/blacklist.json:
The blacklist.json file is just an array of item IDs to exclude from Live Flea Prices. You can find item IDs using https://db.sp-tarkov.com/
If you enjoy my work, you can feed my caffeine addiction
12.5K Downloads
This version will only work with SPT 3.11.x
- Add new config to allow disabling price fetching
- Backing database PvP prices have been reverted to July 1st, and fetching from Tarkov.dev has been disabled for PvP until BSG re-enables the flea on live
New config option disablePriceFetching
allows disabling the fetching of prices from the backing database, and instead will always use the price file located at user\\mods\\zzDrakiaXYZ-LiveFleaPrices\\config\\prices.json
. If this file doesn’t exist, it will be downloaded from the backing database once and not updated after that point.
Previous price files can be retrieved by looking through the commit history of the backing database repository:
PVP: https://github.com/DrakiaXYZ/SPT-LiveFleaPriceDB/commits/main/prices-regular.json
PVE: https://github.com/DrakiaXYZ/SPT-LiveFleaPriceDB/commits/main/prices-pve.json
25.9K Downloads
This version will only work with SPT 3.11.x
Switch to PostSptLoad so we always load after traders are added, even if users mess with their load order
3.6K Downloads
This version will only work with SPT 3.11.x
- Update for 3.11
- Handle fetch failures more gracefully
27.6K Downloads
Update for 3.10
- New config option “debug” to enable debug logging
- New config option “maxLimiter” to enable maxIncreastMult
23.2K Downloads
The mod folder name has been changed, DELETE ANY PREVIOUS DrakiaXYZ-LiveFleaPrices folder from user/mods/
prior to installing 1.3.1 or later
- Rename mod directory to zzDrakiaXYZ-LiveFleaPrices to make sure we load after custom traders
1.0K Downloads
- Allow switching to PvE prices by setting pvePrices to true in config.json
- Make sure flea prices are never below vendor prices if useTraderPriceForOffersIfHigher is enabled in SPT settings
- Resolves the inability to sell keycards at the average price shown in the flea UI
- Switch to using 24-hour average from Tarkov.dev instead of trying to build from historic prices, as the historic prices API has been unstable recently
- Price update schedule has been lowered to every 6 hours, as we’re using the less precise 24-hour average
Details
-
GUID
Not Available
-
License
-
Source Code
-
Latest Version VirusTotal Result
https://www.virustotal.com/gui/file/37ac9de50ee1eb994b36b76afaa40742b998d43705036098818fdd1f3abea97a
I’m seeing inflated prices, I have no idea why, is it only me?
Is there a way to load your mod a little earlier? I have ItemInfo mod that always load before yours so ItemInfo shows vanilla spt flea prices.
Hello, i have PVE prices set to True yet it isnt using the PVE Prices still, am i missing something
{ “nextUpdate”: 0, “maxIncreaseMult”: 80, “maxLimiter”: false, “pvePrices”: true, “disablePriceFetching”: false, “debug”: true }
Flea works for me albeit with INSANELY inflated prices. I’m talking about 3,300,000 roubles for an M60. 500,000 roubles for milk….. MILK. 700,000+ for ComTac 4’s, 1,800,000 for body armor that usually cost me around 90,000 (forget which one it is as I’m off to work). Not complaining
, just flabbergasted and can’t wait till I get off work to be a freakin LOOT GOBLIN tonight!
What will happen to this mod when the Flea market gets removed tmmr?
can you disable the bsg blacklist on this mod? Cus all ammo types are blacklisted even though the blacklist cfg is empty
i dont know how good the history tracking of the flea api is but it would be really cool if we could configure a time period for the flea market to use
for example:
i could set the flea prices to follow live servers from the start of the current wipe and step forwards to simulate the progression of item values in a wipe
i could set the flea prices to what they where in a previous patch where something i have modded back in (like thicc cases, high tier ammo or junk before FIR hideout) so that they are consistent with that change
if this isn’t possible its understandable but it would be a cool suggestion for another mod in that case
Just got this error:
Cannot access ‘gameMode’ before initialization
ReferenceError: Cannot access ‘gameMode’ before initialization
at Function.updatePrices (D:\EFT\user\mods\zzDrakiaXYZ-LiveFleaPrices\src\mod.ts:63:70)
at Mod.postSptLoadAsync (D:\EFT\user\mods\zzDrakiaXYZ-LiveFleaPrices\src\mod.ts:46:24)
at PostSptModLoader.executeModsAsync (C:\snapshot\project\obj\loaders\PostSptModLoader.js)
at PostSptModLoader.load (C:\snapshot\project\obj\loaders\PostSptModLoader.js)
at ModCallbacks.onLoad (C:\snapshot\project\obj\callbacks\ModCallbacks.js)
at App.load (C:\snapshot\project\obj\utils\App.js)
hey im getting this come up any ideas?:
[LiveFleaPrices] Error fetching flea prices: TypeError: fetch failed
[LiveFleaPrices] This is unlikely due to the mod, and more likely due to a system configuration issue
[LiveFleaPrices] Unable to fetch prices, and no local prices file. Skipping LiveFleaPrices
Can someone help fix this error? Using version 3.10, loading order is at the end in the Load Order Editor.
Module Loader: Loading asynchronous module: fetch failed
TypeError: fetch failed
at node:internal/deps/undici/undici:12345:11
at processTicksAndRejections (node:internal/process/task_queues:95:5)
at Function.updatePrices (D:\TKF10.05\user\mods\zzDrakiaXYZ-LiveFleaPrices\src\mod.ts:72:30)
at Mod.postDBLoadAsync (D:\TKF10.05\user\mods\zzDrakiaXYZ-LiveFleaPrices\src\mod.ts:46:14)
at PostDBModLoader.executeModsAsync (C:\snapshot\src\loaders\PostDBModLoader.ts:51:21)
at PostDBModLoader.onLoad (C:\snapshot\src\loaders\PostDBModLoader.ts:26:13)
at App.load (C:\snapshot\src\utils\App.ts:53:13)
The error occurred during the process.