Code Monkey home page Code Monkey logo

perp_cli_curie's Introduction

Rust & Solidity Developer

Current Skill Level: Intermediate

CLI App for Perpetual Protocol - Rust

perp_cli_curie is a command-line application written in the Rust programming language. It is a tool for managing and analyzing data from the Perp trading platform. The application allows users to retrieve information about markets, orders, and positions, as well as place and cancel orders. The application can be run from the command line and supports a number of command-line arguments for specifying various options and parameters.

perp_cli_curie's People

Contributors

brendanwenzel avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

perp_cli_curie's Issues

[Feature] allow read only mode

(To start with), I would like to use the CLI in read-only mode to get a list of my open positions.
However, changing the private key to a real one is needed to setup the config

$ perp position -t 0x3aFxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Creating New Config File
Would you like to change your RPC URL? (y/n)
y
Please provide an RPC URL:
https://endpoints.omniatech.io/v1/op/mainnet/d33exxxxxxxxxxxxxxxxxxxxxxx
New RPC URL has been validated and works. Saving to config file now...
Your Chain ID is set to: 10
Would you like to change your Chain ID? (y/n)
n
Would you like to change your key? (y/n)
n
Would you like to change your key? (y/n)
n
Error: Failed to parse private key: HexError(InvalidHexCharacter { c: 'N', index: 0 })

Location:
    src/utils.rs:49:22

$ perp position -t 0x3aFxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Would you like to change your key? (y/n)
n
Would you like to change your key? (y/n)
y
Please provide the 64-character private key: (Without the 0x prefix)
ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff
Key updated
Error: Failed to parse private key: EcdsaError(signature::Error { source: None })

Location:
    src/utils.rs:49:22

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.