chainstream-sdk 2.0.11

SDK for interacting with the ChainStream API
Documentation
# ChainStream SDK Rust Tests

This directory contains tests for the ChainStream SDK Rust implementation.

## Setup

### Environment Variables

The following environment variables can be used to run the tests:

- `CHAINSTREAM_ACCESS_TOKEN`: Your ChainStream access token

### Running Tests

To run the tests:

```bash
# Set environment variables
export CHAINSTREAM_ACCESS_TOKEN="your-access-token"

# Run all tests
cargo test

# Run API tests
cargo test --test api_test

# Run WebSocket tests
cargo test --test ws_test
```

## Test Coverage

The tests cover the following functionality:

### API Tests
- Token metadata retrieval
- Basic REST API operations

### WebSocket Tests
- Real-time streaming subscriptions
- Token candles subscription

## Contributing

When adding new tests:

1. Follow the existing test structure and naming conventions
2. Add appropriate helper functions for reusable functionality
3. Include proper error handling and assertions
4. Update this README if new environment variables or setup steps are required