attempting to access account thru JSON API - getting error: session required

Feb 22, 2018 at 22:11
1,208 การดู
4 Replies
เป็นสมาชิกตั้งแต่ Sep 25, 2012   7 โพสต์
Feb 22, 2018 at 22:11
Hi I posted this yesterday and it seems to have gone missing, so trying again today.

I am trying access my account data with the Webrequest and for the logon request, I am getting a message saying session is required. However, the session is not required according to the documentation and that the session is returned for further calls after.

Any ideas?
Enter Boldy
เป็นสมาชิกตั้งแต่ Jan 05, 2016   1189 โพสต์
Jul 16, 2018 at 00:49



You need to correctly send your login information.
That is how you generate your session.

Here is the link to the API.
https://www.myfxbook.com/api







ไฟล์แนบ :

If it looks too good to be true, it's probably a scam! Let the buyer beware.
เป็นสมาชิกตั้งแต่ Sep 25, 2012   7 โพสต์
Jul 19, 2018 at 00:25
thanks for the reply.

I understood, as you suggest, that a login is required to get a session. When I do a login, the error message says I need a session to do a login. Makes no sense.

Thanks.
Enter Boldy
เป็นสมาชิกตั้งแต่ Jan 19, 2021   7 โพสต์
Jan 26, 2021 at 12:13
It may work for you:

Request = 'https://www.myfxbook.com/api/login.json?email=username&password=password'
response = requests.get(Request, verify = False)
data = response.json()
Session = data['session']
path = ('https://www.myfxbook.com/api/get-community-outlook.json?session=' + Session)
response = requests.get(path, verify = False)
เป็นสมาชิกตั้งแต่ Dec 16, 2020   13 โพสต์
Mar 18, 2021 at 09:26
You should contact the platform or their team for this.
You must be connected to Myfxbook in order to leave a comment
*การใช้งานเชิงพาณิชย์และสแปมจะไม่ได้รับการยอมรับ และอาจส่งผลให้บัญชีถูกยกเลิก
เคล็ดลับ: การโพสต์รูปภาพ/youtube url จะฝังลงในโพสต์ของคุณโดยอัตโนมัติ!
เคล็ดลับ: พิมพ์เครื่องหมาย @ เพื่อป้อนชื่อผู้ใช้ที่เข้าร่วมการสนทนานี้โดยอัตโนมัติ