danielyxie / bitburner

Bitburner Game
https://danielyxie.github.io/bitburner/
2.8k stars 773 forks source link

Stock market problem #4221

Closed doubravap closed 2 years ago

doubravap commented 2 years ago

RUNTIME ERROR /stock/stock3.js@home (PID - 2693)

getAskPrice: Invalid stock symbol: 'ECP'

Stack: /stock/stock3.js:L28@refresh /stock/stock3.js:L142@Module.main

Code: `/* @param {NS} ns / //https://www.reddit.com/r/Bitburner/comments/9o1xle/comment/hq6s1gw/

//Requires access to the TIX API and the 4S Mkt Data API

let fracL = 0.1; //Fraction of assets to keep as cash in hand let fracH = 0.15; // let commission = 100000; //Buy or sell commission let numCycles = 2; //Each cycle is 5 seconds let totalProfit = 0.0; let totalLosses = 0.0

/**

/**

/**

}

/**

/**

quacksouls commented 2 years ago

I think this is a known issue. Might be related to the report at #4184. Sometimes the stock market can fail to load properly. You might want to try the old "turn it off and on again" trick: save your game, quit, then reload. Hope that helps.