Release Trade Dangerous (Est. 2015) Power user's highly configurable trade optimizer

Before you delete it, make sure it isn't a megaship. Those move around, so while it may not be in the system the DB says it's in, that might be because it jumped to another system.
Good point. It was called Acropolis which, now you mention it, sounds more like a ship than a station. I’ll see what I can find out about it. Could anyone remind me of the delete station procedure just so I can stop trying to remember it!
 
I'll look into it tomorrow / when I have time.
The fix is a simple one. Change line 132 of market_cmd.py from:

Code:
sellPred = lambda row: row.sellCr != 0 and row.demand != '-'
to:

Code:
sellPred = lambda row: row.sellCr != 0 and row.supply != '-'
That is row.demand to row.supply.

That seems to do the trick.

Also change the following from:

Code:
if cmdenv.detail:
    rowFmt.addColumn('Age/Days', '>', 7, '.2f',
    key=lambda row: row.age,
    pred=buyPred)
to:

Code:
    if cmdenv.detail:
        rowFmt.addColumn('Age/Days', '>', 7, '.2f',
        key=lambda row: row.age)
This ensures that the price age is printed for both buy and sell lines.
 
Last edited:
Could anyone remind me of the delete station procedure just so I can stop trying to remember it!
Or, instead of trying to remember you could just read the readme:
Code:
trade.py station --remove "i bootis/nowhere port"
trade.py station -rm "i bootis/nowhere port"
 
The fix is a simple one. Change line 132 of market_cmd.py from:

Code:
sellPred = lambda row: row.sellCr != 0 and row.demand != '-'
to:

Code:
sellPred = lambda row: row.sellCr != 0 and row.supply != '-'
That is row.demand to row.supply.

That seems to do the trick.

Also change the following from:

Code:
if cmdenv.detail:
    rowFmt.addColumn('Age/Days', '>', 7, '.2f',
    key=lambda row: row.age,
    pred=buyPred)
to:

Code:
    if cmdenv.detail:
        rowFmt.addColumn('Age/Days', '>', 7, '.2f',
        key=lambda row: row.age)
This ensures that the price age is printed for both buy and sell lines.
Implemented:
Code:
S:\Elite Dangerous Programs\Trade-Dangerous>python trade.py market --buy -vv "Cemplangpa/Gorgani Orbital"
    Item                      Buying     Avg     Demand Age/Days
----------------------------------------------------------------
+CHEMICALS
    Explosives                                             29.30
    Hydrogen Fuel                                          29.30
    Hydrogen Peroxide          1,155   1,104   723,518H    29.30
    Liquid Oxygen                                          29.30
    Mineral Oil                  544     434 1,902,877M    29.30
    Surface Stabilisers                                    29.30
    Water                        124     376   104,182L    29.30
+CONSUMER ITEMS
    Clothing                     617     520   159,324M    29.30
    Consumer Technology        7,565   7,304    32,221H    29.30
    Domestic Appliances          942     761    56,368M    29.30
+FOODS
    Animal Meat                1,286   1,734    16,078L    29.30
    Coffee                     1,286   1,691     4,020L    29.30
    Fish                         432     778    54,785L    29.30
    Food Cartridges              141     323     2,997L    29.30
    Fruit and Vegetables         315     645    14,503L    29.30
    Grain                        207     532    96,795L    29.30
    Synthetic Meat               772     572    37,459H    29.30
    Tea                        1,459   1,894    14,586L    29.30
+INDUSTRIAL MATERIALS
    Insulating Membrane                                    29.30
    Polymers                                               29.30
    Semiconductors                                         29.30
    Superconductors                                        29.30
+LEGAL DRUGS
    Beer                         297     520   149,080M    29.30
    Bootleg Liquor               670     600     3,936H    29.30
    Liquor                     1,026     967    15,791M    29.30
    Tobacco                    4,742   5,396     7,047L    29.30
    Wine                         444     501   132,091M    29.30
+MACHINERY
    Microbial Furnaces           716     566   785,023H    29.30
    Power Generators             527     736    67,124L    29.30
    Water Purifiers              300     482    23,654L    29.30
+MEDICINES
    Advanced Medicines         1,763   1,826    70,939H    29.30
    Basic Medicines              315     816     3,935L    29.30
    Performance Enhancers      7,565   7,369    12,142H    29.30
    Progenitor Cells           7,565   7,265    17,901H    29.30
+METALS
    Aluminium                                              29.30
    Beryllium                                              29.30
    Cobalt                                                 29.30
    Copper                                                 29.30
    Gallium                                                29.30
    Gold                                                   29.30
    Indium                                                 29.30
    Lithium                                                29.30
    Silver                                                 29.30
    Tantalum                                               29.30
    Titanium                                               29.30
    Uranium                                                29.30
+MINERALS
    Bauxite                      570     263 3,211,193M    29.30
    Bertrandite                3,146   2,599 1,433,614H    29.30
    Coltan                     2,006   1,552 2,317,733H    29.30
    Cryolite                   2,863   2,790 1,643,893H    29.30
    Gallite                    2,536   2,023 1,738,282H    29.30
    Goslarite                  1,431   1,347 1,774,280H    29.30
    Indite                     2,819   2,332 1,570,730H    29.30
    Lepidolite                 1,070     756 2,149,788M    29.30
    Lithium Hydroxide          5,604   5,581   132,944H    29.30
    Low Temperature Diamonds  93,776  95,497     2,557H    29.30
    Methane Clathrate            901     834 1,150,470H    29.30
    Painite                   67,313  70,255       640H    29.30
    Pyrophyllite               2,119   2,044 1,521,177H    29.30
    Rutile                       787     454 1,143,995M    29.30
    Uraninite                  1,467   1,042 1,639,536H    29.30
+SLAVERY
    Imperial Slaves           15,093  17,191    16,617L    29.30
+TECHNOLOGY
    Advanced Catalysers        3,549   3,442 1,339,909H    29.30
    H.E. Suits                   798     770   521,644H    29.30
    Resonating Separators      6,704   6,618   762,009H    29.30
+TEXTILES
    Conductive Fabrics                                     29.30
    Military Grade Fabrics                                 29.30
    Synthetic Fabrics                                      29.30
+WASTE
    Biowaste                                               29.30
    Chemical Waste               654     472   216,132H    29.30
    Scrap                        191     178   111,288L    29.30
+WEAPONS
    Non-lethal Weapons         2,456   2,251     4,186H    29.30
    Reactive Armour            2,717   2,522    11,385H    29.30

S:\Elite Dangerous Programs\Trade-Dangerous>python trade.py market --sell -vv "Cemplangpa/Gorgani Orbital"
    Item                   Selling     Avg     Supply Age/Days
--------------------------------------------------------------
+CHEMICALS
    Explosives                 226     295   511,201H    29.30
    Hydrogen Fuel              100      92   425,945M    29.30
    Liquid Oxygen              256     176    75,872M    29.30
    Surface Stabilisers        420     490   534,296H    29.30
+INDUSTRIAL MATERIALS
    Insulating Membrane     10,684   9,987       646L    29.30
    Polymers                   137     122   140,293M    29.30
    Semiconductors             920     846    18,608M    29.30
    Superconductors          6,265   6,148    15,572M    29.30
+METALS
    Aluminium                  380     317 2,377,893M    29.30
    Beryllium                7,733   7,624    98,779M    29.30
    Cobalt                     741     654   231,918M    29.30
    Copper                     520     463   830,328M    29.30
    Gallium                  4,825   4,716   472,425M    29.30
    Gold                     9,461   9,266    38,173M    29.30
    Indium                   5,273   5,413   553,117H    29.30
    Lithium                  1,530   1,447 1,191,092M    29.30
    Silver                   4,538   4,412    50,102M    29.30
    Tantalum                 3,694   3,599    58,692M    29.30
    Titanium                 1,022     948   851,802M    29.30
    Uranium                  2,535   2,441   790,244M    29.30
+TEXTILES
    Conductive Fabrics         520     580    32,924M    29.30
    Military Grade Fabrics     642   1,073    38,347H    29.30
    Synthetic Fabrics          201     164    97,346M    29.30
+WASTE
    Biowaste                    95      53    19,329M    29.30

S:\Elite Dangerous Programs\Trade-Dangerous>python trade.py market -vv "Cemplangpa/Gorgani Orbital"
    Item                      Buying     Avg     Demand Selling     Avg     Supply Age/Days
-------------------------------------------------------------------------------------------
+CHEMICALS
    Explosives                                              226     295   511,201H    29.31
    Hydrogen Fuel                                           100      92   425,945M    29.31
    Hydrogen Peroxide          1,155   1,104   723,518H                               29.31
    Liquid Oxygen                                           256     176    75,872M    29.31
    Mineral Oil                  544     434 1,902,877M                               29.31
    Surface Stabilisers                                     420     490   534,296H    29.31
    Water                        124     376   104,182L                               29.31
+CONSUMER ITEMS
    Clothing                     617     520   159,324M                               29.31
    Consumer Technology        7,565   7,304    32,221H                               29.31
    Domestic Appliances          942     761    56,368M                               29.31
+FOODS
    Animal Meat                1,286   1,734    16,078L                               29.31
    Coffee                     1,286   1,691     4,020L                               29.31
    Fish                         432     778    54,785L                               29.31
    Food Cartridges              141     323     2,997L                               29.31
    Fruit and Vegetables         315     645    14,503L                               29.31
    Grain                        207     532    96,795L                               29.31
    Synthetic Meat               772     572    37,459H                               29.31
    Tea                        1,459   1,894    14,586L                               29.31
+INDUSTRIAL MATERIALS
    Insulating Membrane                                  10,684   9,987       646L    29.31
    Polymers                                                137     122   140,293M    29.31
    Semiconductors                                          920     846    18,608M    29.31
    Superconductors                                       6,265   6,148    15,572M    29.31
+LEGAL DRUGS
    Beer                         297     520   149,080M                               29.31
    Bootleg Liquor               670     600     3,936H                               29.31
    Liquor                     1,026     967    15,791M                               29.31
    Tobacco                    4,742   5,396     7,047L                               29.31
    Wine                         444     501   132,091M                               29.31
+MACHINERY
    Microbial Furnaces           716     566   785,023H                               29.31
    Power Generators             527     736    67,124L                               29.31
    Water Purifiers              300     482    23,654L                               29.31
+MEDICINES
    Advanced Medicines         1,763   1,826    70,939H                               29.31
    Basic Medicines              315     816     3,935L                               29.31
    Performance Enhancers      7,565   7,369    12,142H                               29.31
    Progenitor Cells           7,565   7,265    17,901H                               29.31
+METALS
    Aluminium                                               380     317 2,377,893M    29.31
    Beryllium                                             7,733   7,624    98,779M    29.31
    Cobalt                                                  741     654   231,918M    29.31
    Copper                                                  520     463   830,328M    29.31
    Gallium                                               4,825   4,716   472,425M    29.31
    Gold                                                  9,461   9,266    38,173M    29.31
    Indium                                                5,273   5,413   553,117H    29.31
    Lithium                                               1,530   1,447 1,191,092M    29.31
    Silver                                                4,538   4,412    50,102M    29.31
    Tantalum                                              3,694   3,599    58,692M    29.31
    Titanium                                              1,022     948   851,802M    29.31
    Uranium                                               2,535   2,441   790,244M    29.31
+MINERALS
    Bauxite                      570     263 3,211,193M                               29.31
    Bertrandite                3,146   2,599 1,433,614H                               29.31
    Coltan                     2,006   1,552 2,317,733H                               29.31
    Cryolite                   2,863   2,790 1,643,893H                               29.31
    Gallite                    2,536   2,023 1,738,282H                               29.31
    Goslarite                  1,431   1,347 1,774,280H                               29.31
    Indite                     2,819   2,332 1,570,730H                               29.31
    Lepidolite                 1,070     756 2,149,788M                               29.31
    Lithium Hydroxide          5,604   5,581   132,944H                               29.31
    Low Temperature Diamonds  93,776  95,497     2,557H                               29.31
    Methane Clathrate            901     834 1,150,470H                               29.31
    Painite                   67,313  70,255       640H                               29.31
    Pyrophyllite               2,119   2,044 1,521,177H                               29.31
    Rutile                       787     454 1,143,995M                               29.31
    Uraninite                  1,467   1,042 1,639,536H                               29.31
+SLAVERY
    Imperial Slaves           15,093  17,191    16,617L                               29.31
+TECHNOLOGY
    Advanced Catalysers        3,549   3,442 1,339,909H                               29.31
    H.E. Suits                   798     770   521,644H                               29.31
    Resonating Separators      6,704   6,618   762,009H                               29.31
+TEXTILES
    Conductive Fabrics                                      520     580    32,924M    29.31
    Military Grade Fabrics                                  642   1,073    38,347H    29.31
    Synthetic Fabrics                                       201     164    97,346M    29.31
+WASTE
    Biowaste                                                 95      53    19,329M    29.31
    Chemical Waste               654     472   216,132H                               29.31
    Scrap                        191     178   111,288L                               29.31
+WEAPONS
    Non-lethal Weapons         2,456   2,251     4,186H                               29.31
    Reactive Armour            2,717   2,522    11,385H                               29.31
 
Last edited:
Version v2.0.8.2 of TD Helper 2 is now available at https://github.com/MarkAusten/TDHelper/releases/tag/v2.0.8.2.

From the release notes:

The main change for this release is that the commander's owned ship AND all the available ships in their "just-bought" configuration are now in the list of ships. The owned ships are at the top of the list and the two sections are separated by a thin, blue line.

You will need to run a Commander's Profile update to populate this list. If you find that the list is in a peculiar order, restart TD Helper and the list should resolve into the correctly sorted lists. This happens on occasion but I have not yet been able to repeat this error when debugging.

Additional note:
You should ensure that you have updated your copy of Trade Dangerous since 11th September 2018 as eyeonus has updated the code to ensure that the Market command works correctly.
 
I have to admit, I still don't understand the purpose of having ships that aren't owned by the commander in the list of ships owned by the commander.
 
On account of various little updates and such I am cleaning down and rebuilding the master TD database on the server tonight (well tonight for me, 0216 UK time) as well as making sure all the latest updates have been pushed live.

This will mean some amount of information from the past 18 hours or so will be missing from the database until it picks up the overnights from EDDB as usual when they are pushed in the morning.

So you probably don't want to run clean for the next few hours.

There will also be a short period when the plugin may fall back to EDDB whilst I am regenerating the data. If you end up with that, just retry in a few minutes.
 
Version v2.0.8.3 of TD Helper 2 is now available from https://github.com/MarkAusten/TDHelper/releases/tag/v2.0.8.3.

This version fixes a couple of issues and also changes the commoditiy drop down list to a check box form to allow multiple items to be selected.

Notes:

1) With the drop down list showing press SHIFT+DEL to select all items and DEL to unselect all items.
2) There seems to be an error in the SELL query when using multiple items. Single items work fine. this issue has been reported.

[EDIT] Eyeonus has pointed out that SELL was never meant to accept multiple items and so this is not a bug. Therefore this is an issue with TDH and will be fixed in the next version.
 
Last edited:
Version v2.0.8.5 of TD Helper 2 is now available from https://github.com/MarkAusten/TDHelper/releases/tag/v2.0.8.5.

From the change log:

The tool tips in TD Helper 2 are now multi-lingual although I have only included British English translations since I only speak one language these days.

There is a new file in the distribution named TDH2Tooltips.ini that contains the tooltip translations. Each section in the ini file is a separate tooltip and the key for the translations in the section is the language and locale. The default is "en-gb". To add a new language, say French as spoken in France you would add "fr-fr" with the appropriate translation of the English. For Canadian French you would use "fr-ca", American english would be "en-us" and so on.

To switch to the correct language in TDH, go to the settings form and change the locale to the required setting.

If you do go to the trouble of adding a new language to the file, please send me a copy so that I can include it in the distribution.

To include a line break in the translation use the "|" character and for a TAB use ">".

IMPORTANT NOTE
At the moment, the translations file will be overwritten at each update so if you do make modifications, then save a copy.
 
how to pass verification code to edce-client-2.0.0, which is being used with TD?
Instructions for setting up EDCE can be found at https://github.com/Andargor/edce-client/tree/2.0.0.

Basically:

  1. Run the client-setup.py program: python3 client-setup.py and enter your Frontier username and password.
  2. Launch the client: python3 edce_client.py. The first time you run the program, the Elite Dangerous Companion website will request a verification code, which shall be sent to your account email. Enter the code at the prompt. You should only have to do this once.
 
Oh, hey, Mark: Were you aware that TD has an edce plugin? It might be possible to use that rather than requiring the client to download and install edce....
 
Oh, hey, Mark: Were you aware that TD has an edce plugin? It might be possible to use that rather than requiring the client to download and install edce....
Hi eyeonus. I wasn't aware of that. I'll take a look at it and see what it can do for TD Helper. Thanks for the tip.
 
Oh. Wait. It's edcd. My mistake.

And I was thinking of the edapi plugin, as well. So doubly my bad.

To save you a bit of trouble figuring out if it would be useful, here's what I got when I ran "trade.py import -P edapi -O save":
file-- <TD Install>/tmp/profile.20181025_150249.json
(saveName = 'tmp/profile.' + time.strftime('%Y%m%d_%H%M%S') + '.json')
Code:
[
   {
      "commander":{
         "id":972780,
         "name":"eyeonus",
         "credits":426389,
         "debt":0,
         "currentShipId":2,
         "alive":true,
         "docked":false,
         "rank":{
            "combat":3,
            "trade":4,
            "explore":5,
            "crime":0,
            "service":0,
            "empire":0,
            "federation":0,
            "power":0,
            "cqc":0
         }
      },
      "lastSystem":{
         "id":15994323806889,
         "name":"Drojao ZP-A b20-7",
         "faction":null
      },
      "lastStarport":{
         "id":3230484480,
         "services":[

         ],
         "name":"",
         "faction":"",
         "minorfaction":""
      },
      "ship":{
         "id":2,
         "name":"DiamondBackXL",
         "value":{
            "hull":1637277,
            "modules":8433085,
            "cargo":0,
            "total":10070362,
            "unloaned":127728
         },
         "free":false,
         "station":{
            "id":3230484480,
            "name":"Plante Enterprise"
         },
         "starsystem":{
            "id":7230678110946,
            "name":"Miao Thixo",
            "systemaddress":7230678110946
         },
         "alive":true,
         "health":{
            "hull":968635,
            "shield":1000000,
            "shieldup":true,
            "integrity":132054,
            "paintwork":132054
         },
         "cockpitBreached":false,
         "oxygenRemaining":345551,
         "modules":{
            "MediumHardpoint1":{
               "module":{
                  "id":128049432,
                  "name":"Hpt_BeamLaser_Gimbal_Small",
                  "locName":"Beam Laser",
                  "locDescription":"Continuous-fire laser weapon on gimballed mount, with signature tracking assist.",
                  "value":74650,
                  "free":false,
                  "health":1000000,
                  "on":true,
                  "priority":1
               }
            },
            "MediumHardpoint2":{
               "module":{
                  "id":128049432,
                  "name":"Hpt_BeamLaser_Gimbal_Small",
                  "locName":"Beam Laser",
                  "locDescription":"Continuous-fire laser weapon on gimballed mount, with signature tracking assist.",
                  "value":74650,
                  "free":false,
                  "health":1000000,
                  "on":true,
                  "priority":1
               }
            },
            "Armour":{
               "module":{
                  "id":128671832,
                  "name":"DiamondBackXL_Armour_Grade1",
                  "locName":"Lightweight Alloys",
                  "locDescription":"Standard protection against all types of attack.",
                  "value":0,
                  "free":false,
                  "health":1000000,
                  "on":true,
                  "priority":1
               }
            },
            "PowerPlant":{
               "module":{
                  "id":128064040,
                  "name":"Int_Powerplant_Size3_Class3",
                  "locName":"Power Plant",
                  "locDescription":"Consumes fuel to power all ship modules.",
                  "value":53379,
                  "free":false,
                  "health":969002,
                  "on":true,
                  "priority":1
               }
            },
            "MainEngines":{
               "module":{
                  "id":128064079,
                  "name":"Int_Engine_Size4_Class2",
                  "locName":"Thrusters",
                  "locDescription":"Normal-space propulsion system.",
                  "value":59633,
                  "free":false,
                  "health":1000000,
                  "on":true,
                  "priority":0
               }
            },
            "FrameShiftDrive":{
               "module":{
                  "id":128064120,
                  "name":"Int_Hyperdrive_Size5_Class3",
                  "locName":"FSD",
                  "locDescription":"Device that allows supercruise travel and hyperspace jumps between star systems.",
                  "value":567106,
                  "free":false,
                  "health":1000000,
                  "on":true,
                  "priority":0
               }
            },
            "LifeSupport":{
               "module":{
                  "id":128064149,
                  "name":"Int_LifeSupport_Size3_Class2",
                  "locName":"Life Support",
                  "locDescription":"Regulates habitable ship atmosphere and provides emergency reservoir for pilot's Remlock system.",
                  "value":10133,
                  "free":false,
                  "health":1000000,
                  "on":true,
                  "priority":0
               }
            },
            "PowerDistributor":{
               "module":{
                  "id":128064189,
                  "name":"Int_PowerDistributor_Size3_Class2",
                  "locName":"Power Distributor",
                  "locDescription":"Distribution system for ENG, SYS and WEP capacitors.",
                  "value":10133,
                  "free":false,
                  "health":1000000,
                  "on":true,
                  "priority":0
               }
            },
            "Radar":{
               "module":{
                  "id":128064229,
                  "name":"Int_Sensors_Size3_Class2",
                  "locName":"Sensors",
                  "locDescription":"Standard suite providing basic detection, identification and targeting capabilities.",
                  "value":10133,
                  "free":false,
                  "health":1000000,
                  "on":true,
                  "priority":0
               }
            },
            "FuelTank":{
               "module":{
                  "id":128064350,
                  "name":"Int_FuelTank_Size5_Class3",
                  "locName":"Fuel Tank",
                  "locDescription":"Storage container for fuel used by ship's power plant.",
                  "value":97754,
                  "free":false,
                  "health":1000000,
                  "on":true,
                  "priority":1
               }
            },
            "Slot01_Size4":{
               "module":{
                  "id":128064341,
                  "name":"Int_CargoRack_Size4_Class1",
                  "locName":"Cargo Rack",
                  "locDescription":"Standardised storage rack for use in automated cargo transfer system.",
                  "value":34328,
                  "free":false,
                  "health":1000000,
                  "on":true,
                  "priority":1
               }
            },
            "Slot02_Size4":{
               "module":{
                  "id":128667633,
                  "name":"Int_Repairer_Size4_Class5",
                  "locName":"AFM Unit",
                  "locDescription":"Allows in-flight repair of internal ship modules. Can restore broken modules. Requires ammunition.",
                  "value":4723920,
                  "free":false,
                  "health":984474,
                  "on":true,
                  "priority":2
               }
            },
            "Slot03_Size3":{
               "module":{
                  "id":128064269,
                  "name":"Int_ShieldGenerator_Size3_Class2",
                  "locName":"Shield Generator",
                  "locDescription":"Forms a continually regenerating protective energy shield around the vessel.",
                  "value":18812,
                  "free":false,
                  "health":1000000,
                  "on":true,
                  "priority":0
               }
            },
            "Slot04_Size3":{
               "module":{
                  "id":128666678,
                  "name":"Int_FuelScoop_Size3_Class5",
                  "locName":"Fuel Scoop",
                  "locDescription":"Fly close to the sun with an active fuel scoop to collect fuel.",
                  "value":902954,
                  "free":false,
                  "health":1000000,
                  "on":true,
                  "priority":0
               }
            },
            "Slot05_Size2":{
               "module":{
                  "id":128663561,
                  "name":"Int_StellarBodyDiscoveryScanner_Advanced",
                  "locName":"D - Scanner",
                  "locDescription":"Scanner used during exploration.",
                  "value":1545000,
                  "free":false,
                  "health":1000000,
                  "on":true,
                  "priority":1
               }
            },
            "Slot06_Size2":{
               "module":{
                  "id":128666634,
                  "name":"Int_DetailedSurfaceScanner_Tiny",
                  "locName":"Surface Scanner",
                  "locDescription":"Advanced stellar body scanner used during exploration.",
                  "value":250000,
                  "free":false,
                  "health":1000000,
                  "on":true,
                  "priority":1
               }
            },
            "PlanetaryApproachSuite":{
               "module":{
                  "id":128672317,
                  "name":"Int_PlanetApproachSuite",
                  "locName":"Planetary Approach Suite",
                  "locDescription":"The required Thruster modifications, sensor package and avionics to allow a ship to fly effectively in close proximity to planets.",
                  "value":500,
                  "free":false,
                  "health":1000000,
                  "on":true,
                  "priority":1
               }
            },
            "VesselVoice":{
               "module":{
                  "id":128824469,
                  "name":"VoicePack_Verity",
                  "locName":"COVAS Verity",
                  "locDescription":"COVAS Verity",
                  "value":0,
                  "free":false,
                  "health":1000000,
                  "on":true,
                  "priority":1
               }
            }
         }
      },
      "ships":{
         "0":{
            "id":0,
            "name":"CobraMkIII",
            "value":{
               "hull":207372,
               "modules":2916240,
               "cargo":0,
               "total":3123612,
               "unloaned":58007
            },
            "free":false,
            "shipName":"calamity jane",
            "shipID":"eye-01",
            "station":{
               "id":3228565248,
               "name":"Elder Hub"
            },
            "starsystem":{
               "id":16065191028137,
               "name":"Mundii",
               "systemaddress":16065191028137
            }
         },
         "2":{
            "id":2,
            "name":"DiamondBackXL",
            "value":{
               "hull":1637277,
               "modules":8433085,
               "cargo":0,
               "total":10070362,
               "unloaned":127728
            },
            "free":false,
            "station":{
               "id":3230484480,
               "name":"Plante Enterprise"
            },
            "starsystem":{
               "id":7230678110946,
               "name":"Miao Thixo",
               "systemaddress":7230678110946
            }
         }
      }
   }
]

I could be wrong, but at first glance, this looks to be the exact same information in the exact same format as what you are using the edce client to get, right?
 
Last edited:
[snip]
I could be wrong, but at first glance, this looks to be the exact same information in the exact same format as what you are using the edce client to get, right?
Yes, that is partially correct in that this returns the profile part of the EDAPI output, used for the commander data and the current ship, but TDH2 also requires the shipyard part of the EDAPI output for all the other ships owned by the commander so it won't work as a replacement for EDCD without some modification.
 
Top Bottom