Comments (3)
Releases >= 1.3.3 set demand=0 if demandBracket==0, but leave sellPrice unchanged. In general this results in EDDN messages that match what the user sees in the Commodity Market. (Earlier versions did the equivalent for offline CSV, BPC and TD output, but not for EDDN messages).
i.e. The following output from the API results in this message which is, I think, correct.
{
"volumescale": "1.3000",
"categoryname": "Chemicals",
"statusFlags": [],
"parent_id": null,
"market_id": null,
"rare_max_stock": "0",
"rare_min_stock": "0",
"demand": 1,
"stock": 430867,
"targetStock": 700998,
"consumptionQty": 348268,
"creationQty": 613931,
"stockBracket": 2,
"demandBracket": 0,
"meanPrice": 147,
"sellPrice": 109,
"buyPrice": 115,
"capacity": 962199,
"baseConsumptionQty": 200,
"baseCreationQty": 200,
"consumebuy": "3",
"homesell": "71",
"homebuy": "74",
"cost_mean": "147.00",
"cost_max": 168,
"cost_min": 125,
"name": "Hydrogen Fuel",
"id": "128049202"
},
The output from the API for Imperial Slaves @ Ngun/Thiele Orbital looks like the following (and results in this EDDN message):
{
"volumescale": "1.0000",
"categoryname": "Slaves",
"statusFlags": [
"Not Produced",
"Low Price",
"High Demand",
"Legal"
],
"parent_id": null,
"market_id": null,
"rare_max_stock": "0",
"rare_min_stock": "0",
"demand": 0,
"stock": 0,
"targetStock": 222551,
"consumptionQty": 42976,
"creationQty": 211807,
"stockBracket": 0,
"demandBracket": "",
"meanPrice": 16485,
"sellPrice": 853,
"buyPrice": 0,
"capacity": 5095660,
"baseConsumptionQty": 14,
"baseCreationQty": 69,
"consumebuy": "0",
"homesell": "98",
"homebuy": "98",
"cost_mean": "16485.00",
"cost_max": 865,
"cost_min": 784,
"name": "Imperial Slaves",
"id": "128667728"
},
Note the "statusFlags" element, which I don't recall seeing before 1.3. I'm not sure which of these flags I should use to exclude this commodity from the output?
Edit: Just re-read your OP. Filtering out commodities with demandBracket == "" looks like the correct thing to do. Will fix in the next release.
from edmarketconnector.
statusFlags were present. I just checked.
from edmarketconnector.
Fixed in Release 1.34 for EDDN v1 and in Release 1.40 for EDDN v2.
Thanks.
from edmarketconnector.
Related Issues (20)
- Enhancement request: Can't connect to EDDN handling HOT 3
- Running from Source - Watchdog Error HOT 6
- Station name not shown in UI before change in station provider HOT 2
- [Docs] Translations - Call out the "find all translations" script HOT 1
- Privacy Panel Indentation HOT 2
- Plugin address box displayed incorrectly HOT 1
- Missing module when opening ship build in coriolis.io HOT 5
- Standardize Settings UI
- pip install results in "error: externally-managed-environment" on Arch Linux HOT 4
- Update Python Build Version HOT 1
- Retire os.path in favor of pathlib
- Wiki and Documentation Overhaul
- TK to TTK Overhaul HOT 3
- Unify company_name and product_name globally HOT 2
- [Project] List comparison to Tuple Comparison
- Potential bug in 5.10.0 with TCE and EDMC HOT 3
- App fails to start when Git binary is not present HOT 5
- Remove Old Wix Files HOT 1
- EDMC 5.1.10 not working with TCE HOT 3
- Translate "update available" message
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from edmarketconnector.