Hi Kfsone, wonderful work you are doing and all the support that is being given. I need some help with using the commands. I downloaded the latest python 3.4.2, verified its version, then downloaded the zip file from the bit bucket.org slash kfsone slash tradedangerous.
n extracted it to d:\Trade
I also went to maddavo's Site to get the 3 files needed, namely System.csv, Station.csv and TradeDangerous.prices. got everything installed and these 3 files in the data subfolder, but im not sure why the commands do not show the desired output, i keep getting this error.
D:\Trade>trade.py run --fr ERAVATE/Ack --cr 20000 --cap 16 --ly 8.56 -vvv
D:\Trade\trade.py: Error: Start station ERAVATE/Ackerman Market doesn't have any
price data.
Hi, Ganganputput;
TD is currently in-between two stages of its life; it currently has two sets of data. There's a set of ".csv" files and a ".prices" file in the data directory, which it reads. They are human readable files (take a look in notepad). That means that reading them is slow. So when it detects that they've changed, it "caches" the data into an SQLite database (TradeDangerous.db in the data directory).
It sounds like what happened is that TD didn't see the files you'd supplied and it therefore didn't read them. They should be in your D:\Trade\Data directory, and when you run a TD command after putting them there, it should say
Code:
NOTE: Rebuilding cache file: this may take a moment
A second problem is that TD is growing fairly rapidly. Where did you get the instructions you're following from - it sounds like I need to update them?
Bootstrapping:
Code:
D:\Trade\> del data\maddavo.stamp
[don't worry if this gives you an error]
D:\Trade\> trade.py import --plug=maddavo --opt=syscsv --opt=stncsv --opt=force
This should download his System and Station csv's and force a cache build before it proceeds to trying to read the remaining data.
Updating price data:
Code:
D:\Trade\> trade.py import --plug=maddavo
You may get warnings about missing stations, that just means that TD didn't load the data
for those stations. If you want to update yourself, use
Code:
D:\Trade\> trade.py import --plug=maddavo --opt=stncsv
and if you get errors about unknown systems
Code:
D:\Trade\> trade.py import --plug=maddavo --opt=syscsv
You don't *have* to download that data from his site, you can just periodically refresh from the TradeDangerous source site (
http://kfs.org/td/source) because I usually synchronize and clean-up the data every day or two.
Lastly, when you have your head around the basics, there's a small batch file in the scripts directory to try and make life easier:
Code:
D:\Trade\> cd scripts
D:\Trade\Scripts\> trade.bat