![]() ![]() Most of the servers are on a strict weekly or monthly reset schedule, which scrubs the island of any lingering housing or fortifications left behind by the players, which gives the experience a strange sense of futility. There is no grander narrative, or mythos, or win condition. Wake up naked, run for your life, do horrible things to one another. Rust famously does not quarter off its servers to keep entry-level nakeds away from the roving troops suited up in advanced firearms, which means that occasionally, your journey will end with you matching another player's revolver with a rock that you've tied to a stick. Eventually, from those same basic ingredients and a few mechanical leaps of faith (like work benches and furnaces), you'll be able to craft pistols, flamethrowers, and rocket launchers. This is similar to the scrounging mechanics in plenty of other survival games, but what makes Rust different is how deep that tech tree goes. You quickly figure out that, by banging your rock on a few environmental doodads, you can harvest a few basic resources (stone, wood, and cloth) which you can parlay into a few prehistoric instruments, like a spear or a hatchet. You wake up on a map armed with only a rock and a torch. If you're somehow unfamiliar with the premise, think of Rust as a dumber, more nihilistic Minecraft. The game was first released in Early Access in late 2013 by developers Facepunch Studios, and it's been a mainstay of goofy YouTube send-ups ever since. If you want to use private APIs, go to your Kraken account and create an API key.If it feels like we've been living with Rust for a long time, that's because we kinda have.krak system-status, or see asset pairs and current prices with target/debug/krak -help for usage information.įor example, you can see the trading system's current status with It is a command-line target that can parse a credentials file, connect to kraken and make a single The krak binary target is a simple demo that can be used to exercise the rest API functionality. If you build trading software using this component and you suffer a loss because of a bug, I am not responsible. Thread as you like, while observing latest feed data in other threads using the handle to the ApiResult object. If you don't want that you can import the KrakenWsClient object instead and arrange the worker The KrakenWsAPI object spawns a worker thread internally which drives the websockets connection. ![]() Instead, it seems better to lean on the Websockets API, which is easy to use whether you want to useĪn async runtime or not, and not make lots of calls to the REST API. In parallel, this is inherently racy and sometimes the request with the higher nonce will be processedīy kraken first, invalidating the others.Īdditionally, the REST API has quite strict rate limits so making large numbers of requests This is because the nonces are based on timestamps, but when multiple requests are created and sent when trying to make multiple private REST API calls in parallel, we often see invalid nonce errors.We have chosen to create blocking APIs for the Kraken REST API version for a few reasons: Unlike some other bindings, these are not async APIs (although the websockets feeds are implicitly asynchronous). Otherwise you only get the REST API, which can do all the same things (and more), but has more strict rate limits. To get the websockets API, the "ws" feature must be enabled. If something you need is missing, patches are welcome! Just open a github issue or pull request. rust_decimal used to represent Decimal values from krakenīoth public and private APIs are supported, but not all the calls and options are exposed, only the ones that were needed.RustCrypto crates used for the Kraken authentication scheme.tokio-tungstenite is used for websockets.Requests and responses are strongly-typed, conversion done using serde_json.To the Kraken WS API, both subscribing to feeds and submitting orders. With an idiomatic Rust interface, including getting ticker info and making market and limit orders. This library provides a Rust client object implementing many of the calls from the Kraken REST API ![]() Unofficial bindings to Kraken spot trading API in Rust. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |