Skip to content

v0.1.1

Pre-release
Pre-release

Choose a tag to compare

@shanu516516 shanu516516 released this 30 Dec 10:12
· 9 commits to sltp since this release

🎉 Second Developer Release (v0.1.1)

✨ New Features

  • SL/TP Order Support: Added support for stop_loss and take_profit fields in the order creation payload.
  • Trigger Price Validation: Implemented client-side validation to ensure SL/TP prices are set correctly relative to the entry price (e.g., Stop Loss must be below entry for Buy orders).
  • Slippage Configuration: Users can now define acceptable slippage percentages for SL/TP execution.

🚀 Highlights

  • Secure AES-128-CBC encrypted key management with password protection
  • Private, zero-knowledge transactions (Quisquis protocol)
  • Comprehensive Coin, Memo, and State UTXO support
  • Trading order management with leverage and margin tracking
  • Lending interface for Twilight pools
  • Real-time market data and relayer integration
  • ZkOS VM smart contract interaction and Merkle proof verification
  • Schnorr signatures and complete transaction anonymity
  • Robust RPC network communication

🛠️ Setup

  • Start with cargo add twilight-client-sdk --git https://github.com/twilight-project/twilight-client-sdk.git
  • Configure environment variables as described in the README
  • Initialize your wallet and test transfers using examples in /examples

📦 Modules

Module Purpose
keys_management Key generation & encryption
transfer ZK transactions
relayer Trading & order management
chain RPC, UTXO queries, broadcasting
programcontroller Smart contracts (ZK, Merkle)
script VM & script execution

🐞 Known Issues

  • API and CLI subject to breaking changes in future versions
  • Limited documentation (will improve in v0.2.0!)

Please report issues or suggestions on GitHub to help us improve! ❤️

Note: This is a developer preview—do not use for mainnet funds without thorough testing.