Skip to content

Instantly share code, notes, and snippets.

View 3cBotPlus's full-sized avatar

hBroker 3cBotPlus

View GitHub Profile
@3cBotPlus
3cBotPlus / trades2deals.awk
Last active October 13, 2022 01:22
Convert CSV exported TradingView List of Trades to CSV List of Deals
#!/usr/bin/awk -f
#
# Author hBroker(3cBotPlus ltda)
# USAGE EXAMPLE
# ./trades2deals.awk tradeslist.csv > dealslist.csv
#
# Don´t forget to make it executable with chmod +x trades2deals.awk
BEGIN{FS="," ;print "Deal","SO Filled","Finalized","Created" }
(NR>1) {
@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