Skip to content

Instantly share code, notes, and snippets.

@yalinyuksel
yalinyuksel / part1.py
Last active August 7, 2023 13:04
PairsTradingPart1
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
Created on Wed Dec 28 01:22:07 2022
@author: yalinyuksel
"""
import yfinance as yf #import yfinance
import pandas as pd #import pandas
import numpy as np #import numpy
@3cBotPlus
3cBotPlus / trades2deals.py
Last active September 11, 2022 19:22
Transform Trades List exported by TradingView into a 3Commas Deals List
### IMPORTANT THIS CODE IS OUTDATED!!!!
### PLEASE USE THE AWK SCRIPT FROM VERSION 3cBotPlus 6beta
# -*- coding: utf-8 -*-
# Author - hBroker at 3cBotPlus
# www.3cbotplus.com
# For MAC users: You need install before:
# xcode-select --install
@raposatech
raposatech / run_alpaca_system.py
Created December 8, 2021 18:24
Run Starter System with Alpaca
from argparse import ArgumentParser
from decouple import config
from starter_system import AlpacaStarterSystem
# Import Keys
KEY = config('ALPACA_PAPER_API_KEY')
SECRET = config('ALPACA_PAPER_SECRET')
URL = config('ALPACA_PAPER_URL')
@ih2502mk
ih2502mk / list.md
Last active April 30, 2024 15:10
Quantopian Lectures Saved
@marketcalls
marketcalls / cointegration.afl
Last active April 11, 2022 11:38
Cointegration AFL
//Coded by Rajandran R
//Date : 27th Aug 2020
//Requirements
//Used Amipy v0.2.0 (64-bit) - Download from https://forum.amibroker.com/t/amipy-plug-in-python-integration/20337/32
//Amibroker (64 Bit) v6.3 or higher
//Python 3.8 or higher
//ADF Test Return Values
//adffloat - The test statistic.
provider "aws" {
version = "~> 2.0"
region = "eu-west-2"
}
# Providing a reference to our default VPC
resource "aws_default_vpc" "default_vpc" {
}
# Providing a reference to our default subnets
provider "aws" {
version = "~> 2.0"
region = "eu-west-2" # Setting my region to London. Use your own region here
}
resource "aws_ecr_repository" "my_first_ecr_repo" {
name = "my-first-ecr-repo" # Naming my repository
}
AWSTemplateFormatVersion: 2010-09-09
Resources:
VPC:
Type: AWS::EC2::VPC
Properties:
CidrBlock: 10.0.0.0/16
PublicSubnetA:
Type: AWS::EC2::Subnet
@wrighter
wrighter / get_ticks.py
Created January 23, 2020 23:45
A basic Interactive Brokers command line Python application to fetch streaming market data.
#!/usr/bin/env python
""" A simple Interactive Brokers application that will fetch
current market data for a contract from the IB TWS/Gateway. """
import argparse
import logging
from typing import List
from ibapi import wrapper
@Macfly
Macfly / Main.py
Created December 26, 2019 03:49
Async server with socketio and Ib_insync
import math
import asyncio
import logging, sys
import sqlite3
from asyncio import sleep
from logging.handlers import TimedRotatingFileHandler
import aiohttp_cors
import aiosqlite
import socketio