Loading...
Continue to Myfxbook.com
Continue to Myfxbook.com
Sign In
Sign Up
Open an account with FOREX.com
FX Tools:
Economic Calendar
Interest Rates
FX Calculators
News
spreads
Sentiment
Forex Heat Map
Correlation
Market Hours
Home
UnspeakableH
Posts
Share
Share this page!
Posts by
UnspeakableH
A simple JSON example to access MyFxBook
in
Programming
May 23, 2013 at 06:04
Hmm, the forum ate the code...
A simple JSON example to access MyFxBook
in
Programming
May 23, 2013 at 06:04
Sure, here you go:This is in Java.public Session getData(String username, String password) throws MalformedURLException, IOException{ Gson json = null; URL url = null; Session session = null; String myfxbook= "https://www.myfxbook.com/api/login.json?"; URL url = new URL(myfxbook + "email=" + username + "&password=" + password); InputStream is = url.openStream(); BufferedReader reader = new BufferedReader(new InputStreamReader(is)); json = new GsonBuilder().setPrettyPrinting().create(); session = json.fromJson(reader, Session.clas...
You have an Ad Blocker!
Myfxbook is a site supported by advertisements. Here are two ways for you to continue browsing:
Ad Free Subscription
or
Disable your Ad Blocker
Already subscribed?
Sign In
You're not logged in
This feature is available for registered members only.
Registration is free and takes less than a minute.
Click the sign up button to continue.
Unless you're already a member and enjoying our service, then just sign in.
Keep up to date with the markets
Enable notifications to receive real-time important market updates:
Economic Calendar
Forex News
You can disable notifications at any time from your browser.
Unblock Notifications
You've blocked browser notifications for Myfxbook.com. Please enable it:
You can disable notifications at any time from your browser.
PREVIOUS
CONSENSUS
ACTUAL