Giter VIP home page Giter VIP logo

hyperliquid-rust-sdk's Introduction

hyperliquid-rust-sdk

SDK for Hyperliquid API trading with Rust.

Usage Examples

See src/bin for examples. You can run any example with cargo run --bin [EXAMPLE].

Installation

cargo add hyperliquid_rust_sdk

License

This project is licensed under the terms of the MIT license. See LICENSE for more details.

@misc{hyperliquid-rust-sdk,
  author = {Hyperliquid},
  title = {SDK for Hyperliquid API trading with Rust.},
  year = {2023},
  publisher = {GitHub},
  journal = {GitHub repository},
  howpublished = {\url{https://github.com/hyperliquid-dex/hyperliquid-rust-sdk}}
}

Terms

By using this package you agree to the Terms of Use. See TERMS for more details.

hyperliquid-rust-sdk's People

Contributors

adam254689 avatar denisdefaria avatar frixoe avatar john-h-k avatar lougel avatar nayshins avatar rajivpo avatar sr-fuentes avatar sree-revoori1 avatar traderben avatar trophies2015 avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar

hyperliquid-rust-sdk's Issues

When using websockets, the user should also be sent the Errors

Right now, some errors cause a panic in the websocket data parsing thread while others just keep going(ReaderDataNotFound). This behaviour doesn't allow the user to react to the errors. It simply requires a full reset of the thread but the user doesn't even know when the error occurs because it's only being logged and not sent to the user.

Support for sending pings from ws manager

Could we add functionality for sending pings from the websocket manager? I see a couple ways we can do this:

  1. Run an async background process that continuously sends pings every x seconds.
  2. Expose a function on the WsManager struct that sends a ping whenever it is called.

Given that 1 is what the hyperliquid-python-sdk does, it is probably the best option. To make this change non-intrusive and to not change the behavior of the WS manager for everyone, we can add this behind a feature flag.

Support for ClientOrderId

Would it be possible to add an option to specify own ClientOrderId for new order request? Like it is supported in python SDK.

Thanks!

Add CI

There is currently no CI, so PRs can be merged with poorly formatted code, linting errors, build failures, or test failures. Add a CI that checks that all of these things must pass before merging a PR.

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.