Commit 3b531362 authored by denis's avatar denis

rename ichinscratchy --> otrasys

parent f8aab092
Pipeline #126461713 failed with stage
in 1 minute and 20 seconds
OTraSys- The Open Trading System
An open source framework to create trading systems
Market configuration
====================
This document describes the configuration of markets for the trading system.
General information
......
OTraSys- The Open Trading System
An open source framework to create trading systems
Configuration
=============
This document describes the configuration of the system. There are
basically 2 ways to do so:
* via start parameter
......
OTraSys- The Open Trading System
An open source framework to create trading systems
Database structure
==================
This document describes the database structure, the various tables and
......
OTraSys- The Open Trading System
An open source framework to create trading systems
README
======
This document describes various aspects of this software, adressed to both
......
OTraSys- The Open Trading System
An open source framework to create trading systems
Step by Step Usage:
===================
0. download the program, make sure you have the following folder structure in
......
......@@ -11,7 +11,7 @@ LDFLAGS= -flto -Wall -lstdc++
.PHONY: all clean debug
all:ichinscratchy
all:otrasys
debug: CFLAGS := $(filter-out -O3, $(CFLAGS))
debug: CFLAGS := $(filter-out -flto, $(CFLAGS))
......@@ -21,9 +21,9 @@ debug: CCFLAGS:= $(filter-out -DNDEBUG, $(CCFLAGS))
debug: LDFLAGS:= $(filter-out -flto, $(LDFLAGS))
debug: CFLAGS += -DDEBUG -g -O0
debug: CCFLAGS += -DDEBUG -g -O0
debug: ichinscratchy
debug: otrasys
ichinscratchy: $(OBJPATH)
otrasys: $(OBJPATH)
$(CC) -o [email protected] $^ $(LIBS) $(LDFLAGS)
build/%.o: src/%.c
......@@ -34,5 +34,5 @@ build/%.o: src/%.cpp
clean:
rm -f $(OBJPATH)
rm -f ichinscratchy
rm -f otrasys
/* arrays.c
* create dynamic 1d and 2d arrays, free used memory after use
* This file is part of ichinscratchy
* Copyright (C) 2016-2020 Denis Zetzmann [email protected]
*
* This file is part of OTraSys- The Open Trading System
* An open source framework to create trading systems
* Copyright (C) 2016 - 2020 Denis Zetzmann [email protected]
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
......
/* arrays.h
* declarations for arrays.c
* This file is part of ichinscratchy
* Copyright (C) 2016-2020 Denis Zetzmann [email protected]
*
* This file is part of OTraSys- The Open Trading System
* An open source framework to create trading systems
* Copyright (C) 2016 - 2020 Denis Zetzmann [email protected]
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
......
/* class_account.c
* Implements a "class"-like struct in C which handles accounts
* This file is part of ichinscratchy
* Copyright (C) 2016-2020 Denis Zetzmann [email protected]
*
* This file is part of OTraSys- The Open Trading System
* An open source framework to create trading systems
* Copyright (C) 2016 - 2020 Denis Zetzmann [email protected]
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
......
/* class_account.h
* declarations for class_account.c
* This file is part of ichinscratchy
* Copyright (C) 2016-2020 Denis Zetzmann [email protected]
*
* This file is part of OTraSys- The Open Trading System
* An open source framework to create trading systems
* Copyright (C) 2016 - 2020 Denis Zetzmann [email protected]
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
......
/* class_indicators.c
* Implements a "class"-like struct in C which handles indicators
* This file is part of ichinscratchy
* Copyright (C) 2016-2020 Denis Zetzmann [email protected]
*
* This file is part of OTraSys- The Open Trading System
* An open source framework to create trading systems
* Copyright (C) 2016 - 2020 Denis Zetzmann [email protected]
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
......
/* class_indicators.h
* declarations for class_indicators.c, interface for "indicators" class
* This file is part of ichinscratchy
* Copyright (C) 2016-2020 Denis Zetzmann [email protected]
*
* This file is part of OTraSys- The Open Trading System
* An open source framework to create trading systems
* Copyright (C) 2016 - 2020 Denis Zetzmann [email protected]
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
......
/* class_market.c
* Implements a "class"-like struct in C which handles markets
* This file is part of ichinscratchy
* Copyright (C) 2016-2020 Denis Zetzmann [email protected]
*
* This file is part of OTraSys- The Open Trading System
* An open source framework to create trading systems
* Copyright (C) 2016 - 2020 Denis Zetzmann [email protected]
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
......
/* class_market.h
* declarations for class_market.c, interface for "market" class
* This file is part of ichinscratchy
* Copyright (C) 2016-2020 Denis Zetzmann [email protected]
*
* This file is part of OTraSys- The Open Trading System
* An open source framework to create trading systems
* Copyright (C) 2016 - 2020 Denis Zetzmann [email protected]
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
......
/* class_market_list.c
* Implements a "class"-like struct in C which handles list of markets
* This file is part of ichinscratchy
* Copyright (C) 2016-2020 Denis Zetzmann [email protected]
*
* This file is part of OTraSys- The Open Trading System
* An open source framework to create trading systems
* Copyright (C) 2016 - 2020 Denis Zetzmann [email protected]
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
......
/* class_market_list.h
* declarations for class_market_list.c, interface for "market_list" class
* This file is part of ichinscratchy
* Copyright (C) 2016-2020 Denis Zetzmann [email protected]
*
* This file is part of OTraSys- The Open Trading System
* An open source framework to create trading systems
* Copyright (C) 2016 - 2020 Denis Zetzmann [email protected]
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
......
/* class_order.c
* Implements a "class"-like struct in C which handles orders
* This file is part of ichinscratchy
* Copyright (C) 2016-2020 Denis Zetzmann [email protected]
*
* This file is part of OTraSys- The Open Trading System
* An open source framework to create trading systems
* Copyright (C) 2016 - 2020 Denis Zetzmann [email protected]
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
......
/* class_order.h
* declarations for class_order.c, interface for "order class"
* This file is part of ichinscratchy
* Copyright (C) 2016-2020 Denis Zetzmann [email protected]
*
* This file is part of OTraSys- The Open Trading System
* An open source framework to create trading systems
* Copyright (C) 2016 - 2020 Denis Zetzmann [email protected]
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
......
/* class_orderbook.c
* Implements a "class"-like struct in C which handles orderbooks
* This file is part of ichinscratchy
* Copyright (C) 2016-2020 Denis Zetzmann [email protected]
*
* This file is part of OTraSys- The Open Trading System
* An open source framework to create trading systems
* Copyright (C) 2016 - 2020 Denis Zetzmann [email protected]
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
......
/* class_orderbook.h
* declarations for class_orderbook.c, interface for "orderbook" class
* This file is part of ichinscratchy
* Copyright (C) 2016-2020 Denis Zetzmann [email protected]
*
* This file is part of OTraSys- The Open Trading System
* An open source framework to create trading systems
* Copyright (C) 2016 - 2020 Denis Zetzmann [email protected]
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
......
/* class_portfolio.c
* Implements a "class"-like struct in C which handles portfolios
* This file is part of ichinscratchy
* Copyright (C) 2016-2020 Denis Zetzmann [email protected]
*
* This file is part of OTraSys- The Open Trading System
* An open source framework to create trading systems
* Copyright (C) 2016 - 2020 Denis Zetzmann [email protected]
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
......
/* class_portfolio.h
* declarations for class_portfolio.c, interface for "portfolio_list" class
* This file is part of ichinscratchy
* Copyright (C) 2016-2020 Denis Zetzmann [email protected]
*
* This file is part of OTraSys- The Open Trading System
* An open source framework to create trading systems
* Copyright (C) 2016 - 2020 Denis Zetzmann [email protected]
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
......
/* class_portfolio_element.c
* Implements a "class"-like struct in C which handles portfolio elements
* This file is part of ichinscratchy
* Copyright (C) 2016-2020 Denis Zetzmann [email protected]
*
* This file is part of OTraSys- The Open Trading System
* An open source framework to create trading systems
* Copyright (C) 2016 - 2020 Denis Zetzmann [email protected]
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
......
/* class_portfolio_element.h
* declarations for class_portfolio_element.h, interface for "portfolio_element" class
* This file is part of ichinscratchy
* Copyright (C) 2016-2020 Denis Zetzmann [email protected]
*
* This file is part of OTraSys- The Open Trading System
* An open source framework to create trading systems
* Copyright (C) 2016 - 2020 Denis Zetzmann [email protected]
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
......
/* class_portfolio_element_cfdcur.c
* Implements a "class"-like struct in C which handles portfolio elements
* of type non currency CFDs
* This file is part of ichinscratchy
* Copyright (C) 2016-2020 Denis Zetzmann [email protected]
*
* This file is part of OTraSys- The Open Trading System
* An open source framework to create trading systems
* Copyright (C) 2016 - 2020 Denis Zetzmann [email protected]
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
......
/* class_portfolio_element_cfdcur.h
* declarations for class_portfolio_element_CFDFUT.h, interface
* for "portfolio_element_CFDFUT" class
* This file is part of ichinscratchy
* Copyright (C) 2016-2020 Denis Zetzmann [email protected]
*
* This file is part of OTraSys- The Open Trading System
* An open source framework to create trading systems
* Copyright (C) 2016 - 2020 Denis Zetzmann [email protected]
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
......
/* class_portfolio_element_cfdfut.c
* Implements a "class"-like struct in C which handles portfolio elements
* of type non currency CFDs
* This file is part of ichinscratchy
* Copyright (C) 2016-2020 Denis Zetzmann d1[email protected]
*
* This file is part of OTraSys- The Open Trading System
* An open source framework to create trading systems
* Copyright (C) 2016 - 2020 Denis Zetzmann [email protected]
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
......
/* class_portfolio_element_cfdfut.h
* declarations for class_portfolio_element_CFDFUT.h, interface
* for "portfolio_element_CFDFUT" class
* This file is part of ichinscratchy
* Copyright (C) 2016-2020 Denis Zetzmann [email protected]
*
* This file is part of OTraSys- The Open Trading System
* An open source framework to create trading systems
* Copyright (C) 2016 - 2020 Denis Zetzmann [email protected]
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
......
/* class_portfolio_element_stocks.c
* Implements a "class"-like struct in C which handles portfolio elements
* of type "stocks"
* This file is part of ichinscratchy
* Copyright (C) 2016-2020 Denis Zetzmann [email protected]
*
* This file is part of OTraSys- The Open Trading System
* An open source framework to create trading systems
* Copyright (C) 2016 - 2020 Denis Zetzmann [email protected]
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
......
/* class_portfolio_element_stocks.h
* declarations for class_portfolio_element_stocks.h, interface
* for "portfolio_element_stocks" class
* This file is part of ichinscratchy
* Copyright (C) 2016-2020 Denis Zetzmann [email protected]
*
* This file is part of OTraSys- The Open Trading System
* An open source framework to create trading systems
* Copyright (C) 2016 - 2020 Denis Zetzmann [email protected]
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
......
/* class_quote.c
* Implements a "class"-like struct in C which handles quotes
* This file is part of ichinscratchy
* Copyright (C) 2016-2020 Denis Zetzmann [email protected]
*
* This file is part of OTraSys- The Open Trading System
* An open source framework to create trading systems
* Copyright (C) 2016 - 2020 Denis Zetzmann [email protected]
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
......
/* class_quote.h
* declarations for class_quote.c, interface for "quote" class
* This file is part of ichinscratchy
* Copyright (C) 2016-2020 Denis Zetzmann [email protected]
*
* This file is part of OTraSys- The Open Trading System
* An open source framework to create trading systems
* Copyright (C) 2016 - 2020 Denis Zetzmann [email protected]
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
......
/* class_signal_list.c
* Implements a "class"-like struct in C which handles signal lists
* This file is part of ichinscratchy
* Copyright (C) 2016-2020 Denis Zetzmann [email protected]
*
* This file is part of OTraSys- The Open Trading System
* An open source framework to create trading systems
* Copyright (C) 2016 - 2020 Denis Zetzmann [email protected]
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
......
/* class_signal_list.h
* declarations for class_signal_list.c, interface for "signal_list" class
* This file is part of ichinscratchy
* Copyright (C) 2016-2020 Denis Zetzmann [email protected]
*
* This file is part of OTraSys- The Open Trading System
* An open source framework to create trading systems
* Copyright (C) 2016 - 2020 Denis Zetzmann [email protected]
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
......
/* class_signals.c
* Implements a "class"-like struct in C which handles signals
* This file is part of ichinscratchy
* Copyright (C) 2016-2020 Denis Zetzmann [email protected]
*
* This file is part of OTraSys- The Open Trading System
* An open source framework to create trading systems
* Copyright (C) 2016 - 2020 Denis Zetzmann [email protected]
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
......
/* class_signals.h
* declarations for class_signals.c, interface for "signals" class
* This file is part of ichinscratchy
* Copyright (C) 2016-2020 Denis Zetzmann [email protected]
*
* This file is part of OTraSys- The Open Trading System
* An open source framework to create trading systems
* Copyright (C) 2016 - 2020 Denis Zetzmann [email protected]
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
......
/* class_stoploss_list.c
* Implements a "class"-like struct in C which handles SL lists
* This file is part of ichinscratchy
* Copyright (C) 2016-2020 Denis Zetzmann [email protected]
*
* This file is part of OTraSys- The Open Trading System
* An open source framework to create trading systems
* Copyright (C) 2016 - 2020 Denis Zetzmann [email protected]
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
......
/* class_stoploss_list.h
* declarations for class_stoploss_list.c, interface for
* "stoploss_list" class
* This file is part of ichinscratchy
* Copyright (C) 2016-2020 Denis Zetzmann [email protected]
*
* This file is part of OTraSys- The Open Trading System
* An open source framework to create trading systems
* Copyright (C) 2016 - 2020 Denis Zetzmann [email protected]
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
......
/* class_stoploss_record.c
* Implements a "class"-like struct in C which handles stop loss records
* This file is part of ichinscratchy
* Copyright (C) 2016-2020 Denis Zetzmann [email protected]
*
* This file is part of OTraSys- The Open Trading System
* An open source framework to create trading systems
* Copyright (C) 2016 - 2020 Denis Zetzmann [email protected]
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
......
/* class_stoploss_record.h
* declarations for class_stoploss_record.c, interface for
* "stoploss_record" class
* This file is part of ichinscratchy
* Copyright (C) 2016-2020 Denis Zetzmann [email protected]
*
* This file is part of OTraSys- The Open Trading System
* An open source framework to create trading systems
* Copyright (C) 2016 - 2020 Denis Zetzmann [email protected]
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
......
/* constants.h
* globally used constants for better code readability/maintainability
* This file is part of ichinscratchy
* Copyright (C) 2016-2020 Denis Zetzmann [email protected]
*
* This file is part of OTraSys- The Open Trading System
* An open source framework to create trading systems
* Copyright (C) 2016 - 2020 Denis Zetzmann [email protected]
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
......
/* database.c
* Collection of routines to access a mysql database
* This file is part of ichinscratchy
* Copyright (C) 2016-2020 Denis Zetzmann [email protected]
*
* This file is part of OTraSys- The Open Trading System
* An open source framework to create trading systems
* Copyright (C) 2016 - 2020 Denis Zetzmann [email protected]
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
......
/* database.h
* declarations for database.c
* This file is part of ichinscratchy
* Copyright (C) 2016-2020 Denis Zetzmann [email protected]
*
* This file is part of OTraSys- The Open Trading System
* An open source framework to create trading systems
* Copyright (C) 2016 - 2020 Denis Zetzmann [email protected]
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
......
/* datatypes.h
* datatype definitions for ichinscratchy
* This file is part of ichinscratchy
* Copyright (C) 2016-2020 Denis Zetzmann [email protected]
*
* This file is part of OTraSys- The Open Trading System
* An open source framework to create trading systems
* Copyright (C) 2016 - 2020 Denis Zetzmann [email protected]
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
......
/* date.c
* routines to handle date bstrings (format yyyy-mm-dd), get weekdays etc
* This file is part of ichinscratchy
* Copyright (C) 2016-2020 Denis Zetzmann [email protected]
*
* This file is part of OTraSys- The Open Trading System
* An open source framework to create trading systems
* Copyright (C) 2016 - 2020 Denis Zetzmann [email protected]
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
......
/* date.h
* declarations for date.c
* This file is part of ichinscratchy
* Copyright (C) 2016-2020 Denis Zetzmann [email protected]
*
* This file is part of OTraSys- The Open Trading System
* An open source framework to create trading systems
* Copyright (C) 2016 - 2020 Denis Zetzmann [email protected]
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
......
/* debug.h
* macros for debugging and log output
* This file is part of ichinscratchy
* Copyright (C) 2016-2020 Denis Zetzmann [email protected]
*
* This file is part of OTraSys- The Open Trading System
* An open source framework to create trading systems
* Copyright (C) 2016 - 2020 Denis Zetzmann [email protected]
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
......
/* execution.c
* execution manager for trading system
* This file is part of ichinscratchy
* Copyright (C) 2016-2020 Denis Zetzmann [email protected]
*
* This file is part of OTraSys- The Open Trading System
* An open source framework to create trading systems
* Copyright (C) 2016 - 2020 Denis Zetzmann [email protected]
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
......
/* execution.h
* declarations for execution.c
* This file is part of ichinscratchy
* Copyright (C) 2016-2020 Denis Zetzmann [email protected]
*
* This file is part of OTraSys- The Open Trading System
* An open source framework to create trading systems
* Copyright (C) 2016 - 2020 Denis Zetzmann [email protected]
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
......
/* export_csv.c
* routines to export to csv files
* This file is part of ichinscratchy
* Copyright (C) 2016-2020 Denis Zetzmann [email protected]
*
* This file is part of OTraSys- The Open Trading System
* An open source framework to create trading systems
* Copyright (C) 2016 - 2020 Denis Zetzmann [email protected]
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
......
/* export_csv.h
* declarations for export_csv.c
* This file is part of ichinscratchy
* Copyright (C) 2016-2020 Denis Zetzmann [email protected]
*
* This file is part of OTraSys- The Open Trading System
* An open source framework to create trading systems
* Copyright (C) 2016 - 2020 Denis Zetzmann [email protected]
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
......
/* ichimoku.c
* ichimoku kinko hyo specific functions
* This file is part of ichinscratchy
* Copyright (C) 2016-2020 Denis Zetzmann [email protected]
*
* This file is part of OTraSys- The Open Trading System
* An open source framework to create trading systems
* Copyright (C) 2016 - 2020 Denis Zetzmann [email protected]
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
......
/* ichimoku.h
* declarations for ichimoku.c
* This file is part of ichinscratchy
* Copyright (C) 2016-2020 Denis Zetzmann [email protected]
*
* This file is part of OTraSys- The Open Trading System
* An open source framework to create trading systems
* Copyright (C) 2016 - 2020 Denis Zetzmann [email protected]
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
......
/* indicators_general.c
* routines to calculate various indicators
* This file is part of ichinscratchy
* Copyright (C) 2016-2020 Denis Zetzmann [email protected]
*
* This file is part of OTraSys- The Open Trading System
* An open source framework to create trading systems
* Copyright (C) 2016 - 2020 Denis Zetzmann [email protected]
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
......
/* indicators_general.h
* declarations for indicators_general.c
* This file is part of ichinscratchy