Rust Keeper bots that run various functions, from liquidations, to orderbook cranks, and more.

Overview

zo-keeper

The zo-keeper (pronounced "zoo keeper") repository runs large scale instructions that secure the 01 network, and allow it to operate in a fully decentralized manner.

Anyone can run any of the keepers in the network.

The breakdown of the keepers are as follows:

Zo Keepers πŸ¦’
└───Consumers 🍽
β”‚   β”‚   Events
β”‚   β”‚   PnL
β”‚
└───Liquidators πŸ’¦
|
└───Cranks βš™οΈ
β”‚   β”‚   Cache IR
β”‚   β”‚   Cache Oracle
β”‚   β”‚   Update Funding
|
└───Loggers πŸͺ΅οΈ
β”‚   β”‚   Funding Logger
β”‚   β”‚   Realized PnL Logger
β”‚   β”‚   Liquidation Logger
β”‚   β”‚   Bankruptcy Logger
β”‚   β”‚   Deposit/ Withdraw Logger
β”‚   β”‚   Trade fills Logger

Installation

  1. Setup submodule dependency
git submodule update --init --recursive

Usage

Copy .env.example to .env and configure accordingly. Then, build the project using cargo follow instructions in the help menu.

You might also like...
Rust bindings for libjuice. Look at datachannel-rs if you need more batteries.

Rust bindings for libjuice. Look at datachannel-rs if you need more batteries.

Milho (corn in portuguese) is a toy dialect of Lisp written as a way to learn more about compilers

Milho (corn in portuguese) is a toy dialect of Lisp written as a way to learn more about compilers. There are implementations in rust and go

A Discord bot focused on addressing the inherent problems with Discord, to allow a more socialist/anarchist organization of servers.

ACABot A Discord bot focused on addressing the inherent problems with Discord, to allow a more socialist/anarchist organization of servers (or "guilds

An abstraction build on top of discord-rich-presence that makes possible to use it in a more declarative way

Declarative Discord Rich Presence This library is an abstraction build on top of discord-rich-presence crate that allows you to use it in a more decla

CFD is a tool that allows you to check one or more domains to see if they are protected by CloudFlare or not.
CFD is a tool that allows you to check one or more domains to see if they are protected by CloudFlare or not.

CFD is a tool that allows you to check one or more domains to see if they are protected by CloudFlare or not. The check is carried out based on five criteria: 3 headers in the HTTP response, IP, and SSL certificate issuer. The check result can be displayed on the screen or saved to a file.

Telegram bot help you to run Rust code in Telegram via Rust playground
Telegram bot help you to run Rust code in Telegram via Rust playground

RPG_BOT (Rust Playground Bot) Telegram bot help you to run Rust code in Telegram via Rust playground Bot interface The bot supports 3 straightforward

TAT agent is an agent written in Rust, which run in CVM or Lighthouse instances.

TAT agent is an agent written in Rust, which run in CVM, Lighthouse or CPM 2.0 instances. Its role is to run commands remotely without ssh login, invoked from TencentCloud Console/API. Commands include but not limited to: Shell, PowerShell, Python. TAT stands for TencentCloud Automation Tools. See more info at https://cloud.tencent.com/product/tat.

Run LLaMA inference on CPU, with Rust πŸ¦€πŸš€πŸ¦™
Run LLaMA inference on CPU, with Rust πŸ¦€πŸš€πŸ¦™

LLaMA-rs Do the LLaMA thing, but now in Rust πŸ¦€ πŸš€ πŸ¦™ Image by @darthdeus, using Stable Diffusion LLaMA-rs is a Rust port of the llama.cpp project. Th

Run LLaMA inference on CPU, with Rust πŸ¦€πŸš€πŸ¦™
Run LLaMA inference on CPU, with Rust πŸ¦€πŸš€πŸ¦™

LLaMA-rs Do the LLaMA thing, but now in Rust πŸ¦€ πŸš€ πŸ¦™ Image by @darthdeus, using Stable Diffusion LLaMA-rs is a Rust port of the llama.cpp project. Th

Comments
  • Failed to send request. 0x17ab -32002

    Failed to send request. 0x17ab -32002

    zo_keeper::liquidator::utils: Failed to send request. message: "Transaction simulation failed: Error processing Instruction 0: custom program error: 0x17ab", data: SendTransactionPreflightFailure(RpcSimulateTransactionResult { err: Some(InstructionError(0, Custom(6059))), logs: Some(["Program Zo1ggzTUKMY5bYnDvT5mtVeZxzf2FaLTbKkmvGUhUQk invoke [1]", "Program log: Instruction: LiquidateSpotPosition", "Program log: Custom program error: 0x17ab", "Program Zo1ggzTUKMY5bYnDvT5mtVeZxzf2FaLTbKkmvGUhUQk consumed 29434 of 200000 compute units", "Program Zo1ggzTUKMY5bYnDvT5mtVeZxzf2FaLTbKkmvGUhUQk failed: custom program error: 0x17ab"]), accounts: None, units_consumed: Some(0) }). Code: -32002
    

    Any idea? I keep getting this error, tried switching RPC's but it's always the same... thanks!

    opened by isoz 2
  • Build Failing

    Build Failing

    After cloning and including the submodules, running the code cargo build --release yields a compilation error in the ABI.

    CleanShot 2022-03-04 at 07 01 05@2x

    Rust version: rustc 1.58.1 (db9d1b20b 2022-01-20)

    opened by joemccann 1
  • Help

    Help

    Hello 01 team,

    We've been following you for a couple of months now. We'd love to see how we can help you take 01 to the next level.

    Opened for chat on Discord or Telegram?

    opened by herdventures 1
  • Handle missing control accounts

    Handle missing control accounts

    RPC subscription is not perfectly reliable:

    • Misses some account changes
    • If a margin + control are created, might miss one or the other, but if it misses the control it'll fail to check the account's mf. Need to try to insert the control into the table if it isn't there.
    enhancement liquidator 
    opened by Beau-Coup 0
Owner
Zero One Global Foundation
Zero One Global Foundation
Utility to quickly setup Starcraft Broodwar matches between 2 or more bots

BWAIShotgun Utility to quickly setup Starcraft Broodwar matches between 2 or more bots Be aware that all bots will be executed directly, without any l

Dennis Waldherr 5 Nov 25, 2022
A trading bot written in Rust based on the orderbook delta volume.

The strategy based on the concept of mean reversion. We look for large deviations in the volume delta of BTC-PERP on FTX at a depth of 1. These deviations could be caused by over-enthusiastic and over-leveraged market participants.

Dinesh Pinto 45 Dec 28, 2022
Const equivalents of many [`bytemuck`] functions, and a few additional const functions.

Const equivalents of many bytemuck functions, and a few additional const functions. constmuck uses bytemuck's traits, so any type that implements thos

null 6 Nov 4, 2021
`grep` but with PEG patterns. Define grammars (e.g. `digit`), functions for matching. No more regex syntax!

PEG peggrep Example file demo_file: THIS LINE IS THE 1ST UPPER CASE LINE IN THIS FILE. this line is the 1st lower case line in this file. This Line Ha

IchHabeKeineNamen 3 Apr 18, 2023
πŸ‘οΈ See through bad bots trying to lie about their user agents

Odd Eye Detect bad bots trying to disguise themselves as humans. Features HTTP2 connection fingerprints TLS signatures Canvas fingerprints How it work

Xetera 31 Dec 14, 2022
A simply better way to make Discord bots.

Cognite ?? A simple blazingly fast language agnostic microservice driven Discord bot framework made in rust that leverages Apache Kafka and KeyDB to t

Eludris 5 Aug 26, 2022
A Rust proc-macro crate which derives functions to compile and parse back enums and structs to and from a bytecode representation

Bytecode A simple way to derive bytecode for you Enums and Structs. What is this This is a crate that provides a proc macro which will derive bytecode

null 4 Sep 3, 2022
Software adapter for various Chunithm slider controllers with a built-in Brokenithm web controller

slidershim Software adapter for various Chunithm slider controllers with a built-in Brokenithm web controller. Has support for keyboard/gamepad output

Si Yuan 45 Dec 17, 2022
Kalker (or "kalk") is a calculator program/website that supports user-defined variables, functions, derivation, and integration

Kalker (or "kalk") is a calculator program/website that supports user-defined variables, functions, derivation, and integration. It runs on Windows, macOS, Linux, Android, and in web browsers (with WebAssembly).

null 1.2k Dec 27, 2022
The simplest way to de-Google your life and business: Inbox, Calendar, Files, Contacts & much more

Bloom The all-in-one private workspace Try it for free! You no longer trust tech monopolies with your data? You are done with your privacy invaded by

Sylvain Kerkour 1.6k Dec 26, 2022