PPPs: Week 3 Stablesats x Kollider integration 🚀
Plans 📆
The original idea of the project was to add Kollider as a second exchange option for the stablesats-rs project. This means stablesats would be configured to either use Kollider or OkEx for hedging.
As it turns out it would be more benefical to use both exchanges in parallel and configure how much usd should be hedged on each exchange. Besides the amount that should be hedged on each exchange there are some other differences in the behavior of the exchanges like different instrument sizes (Kollider 1 $ / OkEx 100 $) and maximum trade/deposit limits.
The next step is to add global config for exchanges that can be used by all the stablesats modules. Here is a first draft of the stablesats.yaml
...
exchanges:
- type: okex
weight: 50
instrument_size: 100
limit: 100_000_000
config:
api_key: ""
simulated: false
- type: kollider
weight: 50
instrument_size: 1
limit: 1_000_000
config:
api_key: ""
url: ""
...
In this example the amount would be split 50/50 on both exchanges. This is very flexible and makes it possible to add more exchanges in the future. My plan for the next couple of days is to introduce a config similar to the example above and use it in the price-server.
Progress ✅
-
My first pullrequest for the stablesats-rs project for adding the kollider-priceserver has been merged
-
I have started a new branch for adding the kollider-client module and implemented the withdraw, deposit and place order functions
Problems ✋
- No problems encountered at the moment
Links 🔗
- Branch for adding kollider-client https://github.com/ngutech21/stablesats-rs/tree/feat-kollider-client-integration