Skip to content

Instantly share code, notes, and snippets.

View NikolayXHD's full-sized avatar
🤌

NikolayHD NikolayXHD

🤌
View GitHub Profile
import os
import tiktoken
import requests
# Configuration
DEEPSEEK_API_KEY = os.getenv("DEEPSEEK_API_KEY")
MODEL = "deepseek-chat"
ENCODING = tiktoken.get_encoding(
"cl100k_base"
) # DeepSeek uses similar tokenization
@NikolayXHD
NikolayXHD / response_swagger.json
Created January 23, 2023 10:25
instruments.shares
This file has been truncated, but you can view the full file.
{
"instruments": [
{
"figi": "BBG000FXW512",
"ticker": "PKI",
"classCode": "SPBXM",
"isin": "US7140461093",
"lot": 1,
"currency": "usd",
"shortEnabledFlag": false,
@NikolayXHD
NikolayXHD / terminal.js
Last active July 4, 2022 15:20
denser tinkoff terminal
// ==UserScript==
// @name dense_tinkoff_terminal
// @namespace http://tampermonkey.net/
// @version 0.1
// @description Denser Tinkoff investment terminal
// @author NikolayXHD
// @match https://www.tinkoff.ru/invest-terminal/*
// @grant none
// ==/UserScript==