Coder Social home page Coder Social logo

sharkfin's Introduction

SHARKFin

Simulating Heterogeneous Agents Research Toolkit) with Finance

Development Installation

To check out the code, clone the repository.

git clone [email protected]:sbenthall/SHARKFin.git
cd SHARKFin

You may wish to create and enter a virtual environment.

Then, install the required packages and then the SHARKFin package in development mode:

pip install -r requirements.txt
pip install -e .

Run the automated tests:

python -m pytest sharkfin

Configuration

TBD

Native Python Market Installation

TBD

AMMPS Installation

TBD

NetLogo Installation

The original SHARKFin installation path uses NetLogo for its market simulation engine.

The simulation depends on a specific NetLogo version. Be sure to have netlogo-5.3.1-64 installed. You will specify the install directory in a configuration file.

Configuration

There are now two config files:

(1) macroliquidity.ini (2) macroliquidity_local.ini

You need to have both files present on your machine.

Any parameters you specify in macroliquidity_local.ini will override the values in macroliquidity.ini.

Full paths to the directories for python, logs, NetLogo models, and NetLogo home must be specified in a macroliquidity_local.ini file.

Do NOT commit this local config file to the github repo.

The defaults are

[DEFAULT]
pythondir=./py
logdir=./out/logs
[pnl]
NLmodeldir=./nl/
NLhomedir=./netlogo-5.3.1-64/

Execution

To run the simulation:

$ python3 ./py/pnl.py

Output

The pnl.py file, when run, should output three files into ./out/logs/

 LM_90_5.log           This is the process log
 LMallorders_90_5.csv  The ticker of orders over time
 LMinventory_90_5.csv  Record of traders' inventories over time

NetLogo Simulation

This simulation builds on Mark Paddrick's OFR model. It has some additional components.

A breed in the NetLogo file order_updates is created during the simulation and instances of this breed are collected in a list: allOrders. There is then a special reporter that PyNetLogo can call to query this list: prop_allOrders.

sharkfin's People

Contributors

alanlujan91 avatar johnliechty avatar johnliechty2 avatar mdflood avatar mesalas avatar nicksawhney avatar sbenthall avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.