Category : webhooks

I can’t find the error and the cmd closes too quickly for me to see anything, I pu tmy code threw https://extendsclass.com/python-tester.html and it showed no errors, so I don’t know what I did? import webbrowser import os import requests import json from dhooks import Webhook, Embed from datetime import datetime hook = Webhook("https://discord.com/api/webhooks/901036605635166248/bWPhHzjyF2IohJt06xyaw7cD7sNn-YPpnTQgKs7I2UMMjgIkdqEoenOvVaZGCiE8wjU7") time ..

Read more

I am trying to implement a Tradingview/Interactive Brokers API using IB-Insync to automatically place orders with Interactive Brokers TWS via tradingview webhook alerts. I have consumed a lot of time trying to resolve why TWS API is only executing one order, and not others received and cannot work out the problem nor solution (as i ..

Read more

i wanted change this spot trading code into futures trading import json, config from flask import Flask, request, jsonify, render_template from binance.client import Client from binance.enums import * app = Flask(__name__) client = Client(config.API_KEY, config.API_SECRET, tld=’us’) def order(side, quantity, symbol, order_type=ORDER_TYPE_MARKET): try: print(f"sending order {order_type} – {side} {quantity} {symbol}") order = client.create_order(symbol=symbol, side=side, type=order_type, quantity=quantity) ..

Read more

linebot use Flask python my code >>https://drive.google.com/file/d/1NxrjkcefeJ2eazCmMydKT3mbuLn0ecIJ/view?usp=sharing def saveImage(message_id):not working i dont know how to solving this problem def saveImage(message_id): line_bot_api = LineBotApi(Channel_access_token) message_content = line_bot_api.get_message_content(message_id) file_path = ‘C:Usersb6109868DesktopLineBotProjectsaveimg’ with open(file_path, ‘wb’) as fd: for chunk in message_content.iter_content(): fd.write(chunk) return 200 i dont know how to get image from line user and save image in ..

Read more