brandonwu / moira Goto Github PK
View Code? Open in Web Editor NEWMarketwatch Virtual Stock Exchange game API
Marketwatch Virtual Stock Exchange game API
Hi, many dependencies needs some updating and this needs a LICENSE file for those who want to fork and update the code.
Your Readme says that this library has been broken by changes in authentication, yet the most recent commit claims to have fixed that. Will this work in its current state, and will it give me Rads?
Hi, I looked at your code and found the following to be confusing:
order_url = 'http://www.marketwatch.com/game/msj-2013/trade/'
'submitorder?week=1'
It seems that you hard-coded the game name 'msj-2013' in the order method of moira module. Shouldn't it be value of game parameter?
Also, I don't understand what does 'week=1' mean, would you please explain?
Hi,
I found a bug in moira.search_stock function, here is your code:
time = datetime.strptime(r.headers['date'],'%a, %d %b %Y %H:%M:%S %Z')
time = time.replace(tzinfo=from_zone).astimezone(to_zone)
The time format is not correct, month of returned from server is actually a string, like 'April', not an integer between 1 and 12, this would throw an Exception when you run it.
I suggest using code as follows:
from datetime.parser import parse
time = parse(r.headers['date'])
This works fine on my machine. Everything else works great so far. :-)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.