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

PICKS

Min

to your destination

Up/Down
Member
Page 1 of 1

SUBMISSION FORMS

Min

to your destination

Will the S&P 500 go up or down this Monday?

Thanks for submitting! Refresh the page to see the updated table.

Markets only open on Tuesday! Go to the other tabs to enter a submission.

MARKET DIRECTION TODAY

Longest Daily Streaks

Top 3 players with the biggest winning streaks in the daily game.

Screenshot_20220719-232454_Chrome.jpg

SeñorSisig - 8 wins

Achievements

Game Rules

rules.png
  • The daily market direction uses S&P 500 index to track whether a day ended green or red.

  • If Nasdaq or Dow 30 end green, but S&P 500 ends red, it counts as a red day for the game, as the S&P is the most diversified index.

  • If SPY, the ETF, ends green, and S&P 500 index ends red, it counts as a red day, and vice-versa.

  • If the S&P ends flat (0.00%), it ends flat. Everyone wins (sort of)!

  • Whenever you choose a market direction, you are also participating in the Monthly Game.

PICKS
S&P Ticker
STREAKS
RULES

Menu

Permabear

Got every pick in a given week right by choosing "Down" every day.

Tom Lee Disciple

Lose every daily game for an entire week by choosing "Up".

Permabull

Got every pick in a given week right by choosing "Up" every day.

Daily Rampage

Have a 10 day winning streak in the Daily game.

Daily Nightmare

Have a 10 day losing streak in the Daily Game

Daily Hot Streak

Have a 5 day winning streak in the Daily game.

Daily Pain

Have a 5 day losing streak in the Daily Game

Daily Streak

Have a 3 day winning streak in the Daily game.

DAILY GAME

bottom of page