This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import * as dotenv from 'dotenv' | |
import * as tmi from 'tmi.js' | |
import express from 'express' | |
dotenv.config() | |
import { Configuration, OpenAIApi } from "openai"; | |
const configuration = new Configuration({ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
OPENAI_TOKEN='Acá ponen su token' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const graphql_client = require('graphql-request'); | |
const query = `{ | |
marketOrderBook(marketCode:"CHACLP" limit:1){ | |
spread | |
sell { | |
amount | |
limitPrice | |
accumulated | |
accumulatedPrice |
NewerOlder