Esempio n. 1
0
 def __init__(self):
     self.events = event_emitter.EventEmitter()
Esempio n. 2
0
 def setUp(self):
     self.em = events.EventEmitter()
Esempio n. 3
0
import base64
import pandas as pd
import ssl

authUrl = "https://keycloak.ae3platform.com/auth/realms/ApexE3/protocol/openid-connect/token"
requestApiUrl = "https://api.ae3platform.com"
websocketUrl = "wss://ws.ae3platform.com"
appUrl = "https://app.ae3platform.com/"
accessToken = ""
assetIdToCannonicalId = {}
globalOrderbookBids = []  #in-memory global orderbook of bids
globalOrderbookAsks = []  #in-memory global orderbook of asks
liveLiquidity = []  #in-memory live liquidity
activeStreamsCount = 0  #in-memory live liquidity stats
streamIds = {}
emitter = events.EventEmitter()

#screener filter values for reference
rsi = [
    "rsi14d_gte_80_lt_90", "rsi14d_gte_90_lt_100", "rsi14d_gte_70_lt_80",
    "rsi14d_gte_60_lt_70", "rsi14d_gte_40_lt_50", "rsi14d_gte_30_lt_40",
    "rsi14d_gte_20_lt_30", "rsi14d_gte_10_lt_20", "rsi14d_lt_60_gt_0",
    "rsi14d_lt_b50_gt_0", "rsi14d_gt_50_lt_101", "rsi14d_gt_40_lt_101"
]

smaCross = ["p20dSMAxAbove", "p20dSMAxBelow", "p50dSMAxBelow", "p50dSMAxAbove"]
volatility = [
    "vltWeekChg_gt_3", "vltWeekChg_gt_4", "vltWeekChg_gt_5", "vltWeekChg_gt_6",
    "vltWeekChg_gt_7", "vltWeekChg_gt_8", "vltWeekChg_gt_9",
    "vltWeekChg_gt_10", "vltWeekChg_gt_12", "vltWeekChg_gt_15",
    "vltWeekChg_gt_20", "vltMonChg_gt_3", "vltMonChg_gt_4", "vltMonChg_gt_5",
Esempio n. 4
0
import player
import random
import event_emitter as events
import time
import sched
import threading
from random_word import RandomWords
import db
from flask import copy_current_request_context
import eventlet

r = RandomWords()
s = sched.scheduler(time.time, time.sleep)
em = events.EventEmitter()

testMode = False


class Game:
    max_players = 8
    prompts_to_play = 0
    main_screen_sid = None
    # player_id start with 1
    connected_players = []
    # prompts start with 0
    prompts = []
    prompt_assignments = []

    answer_counter = 0

    prompt_answers = {}