Skip to content

Instantly share code, notes, and snippets.

@pacarvalho
pacarvalho / python_trader_for_medium_article_v1.py
Last active August 31, 2022 06:49
Simple python script for trading currency pair on forex.com
from gcapi import GCapiClient # From https://github.com/rickykim93/gcapi-python
from gcapi.gcapi_tools import format_date # From https://github.com/rickykim93/gcapi-python
from datetime import datetime
from time import sleep
import numpy
def check_sell_criteria(prices):
# TODO: Write your algorithm to detect sell condition here
return False