import wixUsersBackend from 'wix-users-backend'; import {fetch} from 'wix-fetch'; const CLIENT_ID = '1112811133259218974'; const CLIENT_SECRET = 'MorYUCBU0MLMKdAnkggpOxon-GaXSbLG'; const REDIRECT_URI = 'https://www.stockmarketchat.net/_api/wix-public/myapp/auth/callback'; // Handles the authentication callback export function myApp_auth_callback(request) { const code = request.query.code; const tokenEndpoint = `https://discord.com/api/oauth2/token`; const payload = { grant_type: 'authorization_code', code, redirect_uri: REDIRECT_URI }; const options = { method: 'POST', headers: { 'Content-Type': 'application/x-www-form-urlencoded', 'Authorization': `Basic ${Buffer.from(`${CLIENT_ID}:${CLIENT_SECRET}`).toString('base64')}` }, body: Object.keys(payload) .map(key => encodeURIComponent(key) + '=' + encodeURIComponent(payload[key])) .join('&') }; return fetch(tokenEndpoint, options) .then(response => response.json()) .then(data => { const accessToken = data.access_token; // Use the access token to authenticate the user and handle the login logic here // e.g., create a session for the authenticated user // wixUsersBackend.createSession() }); }
top of page

ACHIEVEMENT TRACKING

Weekly Winner/Pro/Master

Top Weekly Winners

AmazonPain

6

Rhuwan

5

Synthetic

5

Inazuma

4

mid

3

bakalhau

3

pbuh

2

Lefibonacci

1

TamadraTK

1

Mwilliams

1

Hype

1

Haplo

1

Weekly Podium Pro

Monthly Podium Pro

Monthly Winner/Pro/Master

Quarterly Podium Pro

Quarterly Winner/Pro/Master

Star Trader

Hedge Fund Trader

Degenerate Retailer

Degenerate Retailer

44

Bad Hair Quarter

Bad Hair Quarter

19

Profits Are Profits

Profits Are Profits

17

Daily Streak

Daily Streak

10

Not Too Bad At This

Not Too Bad At This

8

Diamond Hands

Diamond Hands

5

Growing Gains

Growing Gains

4

Daily Pain

Daily Pain

3

Back To Back Wins

Back To Back Wins

2

Weekly Podium Pro

Weekly Podium Pro

2

Jackpot

Jackpot

2

Going To Zero

Going To Zero

1

Monthly Pro

Monthly Pro

1

Quarterly Pro

Quarterly Pro

1

Casual Gamer

Casual Gamer

32

Trader

Trader

17

Professional Trader

Professional Trader

15

Weekly Winner

Weekly Winner

9

Monthly Winner

Monthly Winner

5

Daily Hot Streak

Daily Hot Streak

4

Permabear

Permabear

3

Weekly Pro

Weekly Pro

3

Quarterly Winner

Quarterly Winner

2

Monthly Podium Pro

Monthly Podium Pro

2

Olympic Champion

Olympic Champion

1

Star Trader

Star Trader

1

In Full Control

In Full Control

1

King Of The Hill

King Of The Hill

1

Tip: You can check all the achievements a specific member has gotten on the Members page.

Achievements With The Largest Completion

bottom of page