ostium-rust-sdk 0.1.0

Rust SDK for interacting with the Ostium trading platform on Arbitrum
Documentation
# Smart Contracts Reference

This document provides reference information for the smart contracts used by the Ostium Rust SDK.

## Contract Addresses

### Mainnet (Arbitrum One)
- **USDC**: `0xaf88d065e77c8cC2239327C5EDb3A432268e5831`
- **Trading**: `0x6D0bA1f9996DBD8885827e1b2e8f6593e7702411`
- **Storage**: `0xcCd5891083A8acD2074690F65d3024E7D13d66E7`

### Testnet (Arbitrum Sepolia)
- **USDC**: `0xe73B11Fb1e3eeEe8AF2a23079A4410Fe1B370548`
- **Trading**: `0x2A9B9c988393f46a2537B0ff11E98c2C15a95afe`
- **Storage**: `0x0b9F5243B29938668c9Cfbd7557A389EC7Ef88b8`

## Contract Interfaces

### Trading Contract

The main contract for executing trades and managing positions.

**Key Functions:**
- `openPosition()` - Open a new trading position
- `closePosition()` - Close an existing position
- `updateTPSL()` - Update take profit and stop loss

### Storage Contract

Handles position and account data storage.

**Key Functions:**
- `getPositions()` - Retrieve user positions
- `getBalance()` - Get account balance
- `getOrders()` - Retrieve pending orders

## See Also

- [Architecture Overview]../architecture/overview.md - System architecture
- [Trading API Reference]trading.md - Trading operations