Skip to content

Instantly share code, notes, and snippets.

View AWScommunity's full-sized avatar

Vivek Shrestha AWScommunity

View GitHub Profile
#test_OpenNOTinDefaultIncognito.py - thisIsStandAlonepyFile
import os
from playwright.sync_api import Playwright, sync_playwright, expect, Page
def run(page: Page) -> None:
app_data_path = os.getenv("LOCALAPPDATA")
user_data_path = os.path.join(app_data_path, 'Chromium\\User Data\\Default')
context= playwright.chromium.launch_persistent_context(user_data_path, channel = 'msedge', headless= False)
page = context.new_page()
page.goto("https://ndrrma.yilab.org.np/")
@AWScommunity
AWScommunity / autoTrade.py
Created September 19, 2024 14:59
autoTrade
#to implement the buying strategies (excluding iceberg orders) using a hypothetical trading API.
#focuses on placing limit buy orders at key support levels, taking advantage of thin order books,
#and executing orders during high-volume periods.
import time
import datetime
import random
class TradingAPI:
def get_order_book(self, symbol):
# Mock function to get the order book
R E A D . T H I S : gist ma image rakhna 1. paila image pc ma save gara. 2. bottomest gist ma gayera footbar ko image icon ma click garera foto upload gara. 3. tyo link copypaste chaheko gist ma gara. JustDoThisWay navaye img nakhulne etc hunxa
blog ma vane just tyo image select direct jspaint batai garee cutpaste gara
PS: While I click 'edit' on this gist viewable, then on bottom, I see 'Add File'. I have to click there to add new gist. Anyway for kaamchalau, just add comment on this gist for immediate note down or emotional vomit posts.