Skip to content

Agent based model for simulating strategies with Arbiter

Notifications You must be signed in to change notification settings

numocash/agent-based-model

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Agent Based Model

Agent bsed model with evm parity using Arbiter for simulating liquidity providing strategies and rebalancing behavior.

This repository has an example behavior Incrementer. The current design philosophy is that the user should only ever have to build agent behaviors implementing the Behavior trait. In this example, the Incrementer behavior is configured with a config file. Configuring behaviors with a config file is a design choice we made to enable versatile parameterization at runtime as opposed to compile time.

Prerequisites

  • Rust programming language and Cargo package manager (latest stable version recommended)
  • Foundry is used behind the scenes to generate rust contract bindings. Make sure you have forge installed and up to date.

Usage

cargo generate is a tool to create new Rust projects from pre-existing templates. It is used to create a new project from a template.

cargo install cargo-generate

Use the template

cargo generate --git https://github.com/primitivefinance/arbiter-template

Run the template project

cargo run simulate configs/example.toml -vvv

Log Verbosity

The -vvv flag is used to increase the verbosity of the logs. The more v's, the more verbose the logs.

About

Agent based model for simulating strategies with Arbiter

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published