Skip to content

feat(core): add generic signed request builder for authenticated API … - #27

Merged
Praying merged 2 commits into
mainfrom
001-signed-request-refactor
Jan 5, 2026
Merged

Praying merged 2 commits into
mainfrom
001-signed-request-refactor

Conversation

@Praying

@Praying Praying commented Jan 5, 2026

Copy link
Copy Markdown
Owner

…requests

  • Implement SignedRequestBuilder with fluent API for parameter building
  • Add SigningStrategy trait for exchange-specific authentication logic
  • Create HasHttpClient trait for HTTP client access across exchanges
  • Add Binance signing strategy implementation with HMAC-SHA256
  • Include support for GET/POST/PUT/DELETE methods with proper body handling
  • Add query string building with URL encoding and alphabetical parameter ordering
  • Integrate with existing Binance and OKX exchange implementations
  • Add comprehensive test coverage for signing functionality

…requests

- Implement SignedRequestBuilder with fluent API for parameter building
- Add SigningStrategy trait for exchange-specific authentication logic
- Create HasHttpClient trait for HTTP client access across exchanges
- Add Binance signing strategy implementation with HMAC-SHA256
- Include support for GET/POST/PUT/DELETE methods with proper body handling
- Add query string building with URL encoding and alphabetical parameter ordering
- Integrate with existing Binance and OKX exchange implementations
- Add comprehensive test coverage for signing functionality
…tting improvements

- Change base_url return type from &str to &'static str for better lifetime management
- Import Map from serde_json for explicit object creation
- Update param method to accept reference for ToString trait
- Replace string concatenation with format macros for better performance
- Use Map::default() instead of Default::default() for serde_json objects
- Modernize string formatting with positional arguments in format macros
@Praying
Praying merged commit 7d91903 into main Jan 5, 2026
9 checks passed
@Praying
Praying deleted the 001-signed-request-refactor branch January 5, 2026 06:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant