Coder Social home page Coder Social logo

marcofavorito / agents-tac Goto Github PK

View Code? Open in Web Editor NEW

This project forked from fetchai/agents-tac

0.0 2.0 0.0 9.18 MB

Competition and Agent Frameworks for the Trading Agents Competition

Home Page: https://fetchai.github.io/agents-tac

License: Apache License 2.0

Python 34.88% Dockerfile 0.15% Shell 0.04% Makefile 0.05% Jupyter Notebook 63.40% CSS 0.09% JavaScript 0.87% HTML 0.52%

agents-tac's Introduction

agents-tac

Competition and Agent Frameworks for the Trading Agents Competition

Cloning

This repository contains submodules. Clone with recursive strategy:

  git clone [email protected]:fetchai/agents-tac.git --recursive && cd agents-tac

Option 1: Quick Start:

  • Follow the steps under 'Dependencies' and 'Preliminaries' below

  • Enter the virtual environment and launched the script:

    pipenv shell
    python scripts/launch.py
    

The controller GUI at http://localhost:8097 provides real time insights.

Option 2: Launcher GUI:

  • Follow the steps under 'Dependencies' and 'Preliminaries' below

  • Build the sandbox:

    cd sandbox && docker-compose build && cd ..
    
  • Enter the virtual environment and start the launcher GUI. Then launch the sandbox with your prefered configs:

    pipenv shell
    python tac/gui/launcher/app.py
    

The controller GUI at http://localhost:8097 provides real time insights.

Option 3: Step by step:

  • Follow the steps under 'Dependencies' and 'Preliminaries' below

  • In one terminal, build the sandbox and then launch it:

    cd sandbox && docker-compose build
    docker-compose up
    
  • Optionally, in another terminal, enter the virtual environment and connect a template agent to the sandbox:

    pipenv shell
    python templates/v1/basic.py --name my_agent --dashboard --expected-version-id tac_v1
    

The sandbox is starting up:

Sandbox

Once agent is connected and searching for the competition:

Sandbox

The controller GUI at http://localhost:8097 provides real time insights: Controller GUI

  • Have a look at the documentation and start developing your first agent.

Quick Links

๐Ÿ“œ ๐Ÿ“œ ๐Ÿ“œ Documentation ๐Ÿ“œ ๐Ÿ“œ ๐Ÿ“œ

The package documentation introduces the key components of the agent and competition frameworks and helps agent developers getting started. This is required reading material if you want to build your own agent.

๐Ÿ“ ๐Ÿ“ ๐Ÿ“ Specification ๐Ÿ“ ๐Ÿ“ ๐Ÿ“

The framework specification introduces the agent and competition frameworks and discusses the project vision and components. This is complementary reading material.

๐Ÿค– ๐Ÿค– ๐Ÿค– Simulation ๐Ÿค– ๐Ÿค– ๐Ÿค–

The simulation provides code to simulate a competition with a population of baseline agents.

๐Ÿ› ๐Ÿ› ๐Ÿ›  Templates ๐Ÿ› ๐Ÿ› ๐Ÿ› 

The agent templates provide starting points for agent development.

๐Ÿ† ๐Ÿ† ๐Ÿ† Competition ๐Ÿ† ๐Ÿ† ๐Ÿ†

The competition sandbox provides the code to build the docker image to run the competiton.

Repository structure

  • data: default folder for storage of the simulation data.
  • docker-images: submodule to the docker-images
  • docker-tac-develop: Docker image for the development of TAC related stuff.
  • docs: the docs for this project.
  • notebooks: contains jupyter notebooks with exploratory code.
  • proto: contains the protobuf schema.
  • sandbox: setup for using Docker compose.
  • simulation: contains scripts for simulation of the TAC.
  • tac: the main folder containing the Python package.
  • templates: template agents.
  • tests: tests for the package.

Dependencies

  • All python specific dependencies are specified in the Pipfile (and installed via the commands specified in 'Preliminaries').

  • The package requires that you install Docker and the sandbox requires that in addition, you install Docker Compose.

  • The project requires oef-search-pluto which can be pulled here:

    docker pull fetchai/oef-search:0.7
    

Preliminaries

  • Create and launch a virtual environment:

    pipenv --python 3.7 && pipenv shell
    
  • Install the dependencies:

    pipenv install
    
  • Install the tac package:

    python setup.py install
    

Contribute

The following dependency is only relevant if you intend to contribute to the repository:

The following steps are only relevant if you intend to contribute to the repository. They are not required for agent development.

  • Clear cache

    pipenv --clear
    
  • Install development dependencies:

    pipenv install --dev
    
  • Install package in (development mode):

    pip3 install -e .
    
  • After changes to the protobuf schema run:

    python setup.py protoc
    
  • To run tests (ensure no oef docker containers are running):

    tox -e py37
    
  • To run linters (code style checks):

    tox -e flake8

  • To run static type checks:

    tox -e mypy

  • We recommend you use the latest OEF build:

    python scripts/oef/launch.py -c ./scripts/oef/launch_config.json
    

Resources

  • Detailed documentation of the OEF Python SDK is available here.

agents-tac's People

Contributors

5a11 avatar davidminarsch avatar dishmop avatar marcofavorito avatar totoual avatar

Watchers

 avatar  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.