=BDP(A6;"INTERVAL_HIGH";"start_date_override";"2024-12-31";"end_date_override";"2025-04-22")
=HYPERLINK("bbg://securities/AAPL%20US%20Equity/DES"; "Open AAPL DES")
=HYPERLINK("bbg://screens//NI"; "OPEN Semiconductors")
import pandas as pd | |
import win32com.client as win32 | |
# Connect to the running instance of Excel | |
excel = win32.Dispatch("Excel.Application") | |
workbook = excel.Workbooks("Ex.xlsx") # Name of your workbook | |
sheet = workbook.Sheets("Q1") # Name of your sheet | |
# Write data to a specific cell |
=BDP(A6;"INTERVAL_HIGH";"start_date_override";"2024-12-31";"end_date_override";"2025-04-22")
=HYPERLINK("bbg://securities/AAPL%20US%20Equity/DES"; "Open AAPL DES")
=HYPERLINK("bbg://screens//NI"; "OPEN Semiconductors")
# python -m pip install --index-url=https://blpapi.bloomberg.com/repository/releases/python/simple/ blpapi | |
# python -m pip install pywin32 | |
# pip install pypiwin32 | |
# pip install win32com.client | |
import win32com.client as win32 | |
# Connect to the running instance of Excel | |
excel = win32.Dispatch("Excel.Application") |
# python3 -m pip install blp | |
# https://pypi.org/project/blp/ | |
# https://matthewgilbert.github.io/blp/quickstart.html | |
import datetime | |
import json | |
import pandas | |
from blp import blp |
// Object to new mongoose schema and to save data in mongoDB from provided instance of an object | |
const mongoose = require("mongoose"); | |
const Schema = mongoose.Schema; | |
mongoose.set("strictQuery", false); | |
const database = { | |
uri: "mongodb://127.0.0.1:27017/", | |
name: "dayalayer", | |
user: "", |
getData() | |
async function getData() { | |
let url = "http://localhost:3001/test" | |
let resp = await fetch(url, { | |
method: "POST", | |
headers: { | |
"content-type": "application/json", | |
}, | |
body: JSON.stringify({ | |
name: "Vlad455", |
mongooseConnect(); | |
async function listCollections() { | |
let db = mongoose.connection.db; | |
const collections = await db.listCollections().toArray(); | |
collections.forEach((collection) => console.log(collection.name)); | |
db = mongoose.connection.db; | |
await db.collection("popcorn").rename("popcorn1").catch(error=>console.log(error.codeName)) |
// first | |
import pkg from 'rss-to-json'; | |
const {parse} = pkg; | |
rss() | |
async function rss () { |
const mongoose = require("mongoose"); | |
const { | |
Schema | |
} = mongoose; | |
const TickerSchema = | |
new Schema({ | |
ticker: String, | |
date: String, | |
data: Schema.Types.Mixed, |