### Run Custom Configuration Example Source: https://github.com/ohkthx/cbadv-rs/blob/main/examples/README.md Demonstrates how to run the example for creating custom configuration files. Requires the 'config' feature. ```bash cargo run --example custom_config --features="config" ``` -------------------------------- ### Run WebSocket User Example Source: https://github.com/ohkthx/cbadv-rs/blob/main/examples/README.md Demonstrates how to run the example for watching user data via the WebSocket API. Requires the 'config' feature. ```bash cargo run --example websocket_user --features="config" ``` -------------------------------- ### Account API Example Source: https://github.com/ohkthx/cbadv-rs/blob/main/examples/README.md Demonstrates usage of the Account API. Requires the 'config' feature. ```bash cargo run --example account_api --features="config" ``` -------------------------------- ### Portfolio API Example Source: https://github.com/ohkthx/cbadv-rs/blob/main/examples/README.md Demonstrates usage of the Portfolio API. Requires the 'config' feature. ```bash cargo run --example portfolio_api --features="config" ``` -------------------------------- ### Product API Example Source: https://github.com/ohkthx/cbadv-rs/blob/main/examples/README.md Demonstrates usage of the Product API. Requires the 'config' feature. ```bash cargo run --example product_api --features="config" ``` -------------------------------- ### Order API Example Source: https://github.com/ohkthx/cbadv-rs/blob/main/examples/README.md Demonstrates usage of the Order API. Requires the 'config' feature. ```bash cargo run --example order_api --features="config" ``` -------------------------------- ### Public API Example Source: https://github.com/ohkthx/cbadv-rs/blob/main/examples/README.md Demonstrates usage of the Public API. Requires the 'config' feature. ```bash cargo run --example public_api --features="config" ``` -------------------------------- ### Payment API Example Source: https://github.com/ohkthx/cbadv-rs/blob/main/examples/README.md Demonstrates usage of the Payment API. Requires the 'config' feature. ```bash cargo run --example payment_api --features="config" ``` -------------------------------- ### Data API Example Source: https://github.com/ohkthx/cbadv-rs/blob/main/examples/README.md Demonstrates usage of the Data API. Requires the 'config' feature. ```bash cargo run --example data_api --features="config" ``` -------------------------------- ### Fee API Example Source: https://github.com/ohkthx/cbadv-rs/blob/main/examples/README.md Demonstrates usage of the Fee API. Requires the 'config' feature. ```bash cargo run --example fee_api --features="config" ``` -------------------------------- ### Get Best Bid/Ask for a Product using REST Client Source: https://github.com/ohkthx/cbadv-rs/blob/main/README.md Use the `client.product.best_bid_ask` method to get the best bid and ask prices for a product via the REST API. ```rust client.product.best_bid_ask ``` -------------------------------- ### Convert API Example Source: https://github.com/ohkthx/cbadv-rs/blob/main/examples/README.md Demonstrates usage of the Convert API. Requires the 'config' feature. ```bash cargo run --example convert_api --features="config" ``` -------------------------------- ### Sandbox API Example Source: https://github.com/ohkthx/cbadv-rs/blob/main/examples/README.md Demonstrates usage of the Sandbox API for testing without affecting real accounts. Requires the 'config' feature. ```bash cargo run --example sandbox_api --features="config" ``` -------------------------------- ### WebSocket API Example Source: https://github.com/ohkthx/cbadv-rs/blob/main/examples/README.md Demonstrates usage of the WebSocket API for real-time data. Requires the 'config' feature. ```bash cargo run --example websocket --features="config" ``` -------------------------------- ### Get Product Ticker using Public Endpoint Source: https://github.com/ohkthx/cbadv-rs/blob/main/README.md Use the `client.public.ticker` method to get real-time market trade data (ticker) for a product via the public API endpoint. ```rust client.public.ticker ``` -------------------------------- ### Get Market Trades (Ticker) using REST Client Source: https://github.com/ohkthx/cbadv-rs/blob/main/README.md Use the `client.product.ticker` method to get real-time market trade data (ticker) for a product via the REST API. ```rust client.product.ticker ``` -------------------------------- ### Get Product Details using Public Endpoint Source: https://github.com/ohkthx/cbadv-rs/blob/main/README.md Use the `client.public.product` method to retrieve detailed information about a specific product via the public API endpoint. ```rust client.public.product ``` -------------------------------- ### Get Product Details using REST Client Source: https://github.com/ohkthx/cbadv-rs/blob/main/README.md Use the `client.product.get` method to retrieve detailed information about a specific product via the REST API. ```rust client.product.get ``` -------------------------------- ### Get API Unix Server Time using Public Endpoint Source: https://github.com/ohkthx/cbadv-rs/blob/main/README.md Use the `client.public.time` method to get the current Unix server time via the public API endpoint. ```rust client.public.time ``` -------------------------------- ### Get Convert using REST Client Source: https://github.com/ohkthx/cbadv-rs/blob/main/README.md Use the `client.convert.get` method to retrieve details of a currency conversion via the REST API. ```rust client.convert.get ``` -------------------------------- ### Get Product Book using REST Client Source: https://github.com/ohkthx/cbadv-rs/blob/main/README.md Use the `client.product.product_book` method to retrieve the product's order book via the REST API. ```rust client.product.product_book ``` -------------------------------- ### Get Product Book using Public Endpoint Source: https://github.com/ohkthx/cbadv-rs/blob/main/README.md Use the `client.public.product_book` method to retrieve the product's order book via the public API endpoint. ```rust client.public.product_book ``` -------------------------------- ### Get a specific Account using REST Client Source: https://github.com/ohkthx/cbadv-rs/blob/main/README.md Use the `client.account.get` method to retrieve details for a specific account via the REST API. ```rust client.account.get ``` -------------------------------- ### Get Portfolio Breakdown using REST Client Source: https://github.com/ohkthx/cbadv-rs/blob/main/README.md Use the `client.portfolio.get` method to retrieve a detailed breakdown of a specific portfolio via the REST API. ```rust client.portfolio.get ``` -------------------------------- ### Get Transaction Summary using REST Client Source: https://github.com/ohkthx/cbadv-rs/blob/main/README.md Use the `client.fee.get` method to retrieve a summary of transaction fees via the REST API. ```rust client.fee.get ``` -------------------------------- ### Get Product Candles using REST Client Source: https://github.com/ohkthx/cbadv-rs/blob/main/README.md Use the `client.product.candles` method to retrieve historical candle data for a product via the REST API. ```rust client.product.candles ``` -------------------------------- ### Get Product Candles using Public Endpoint Source: https://github.com/ohkthx/cbadv-rs/blob/main/README.md Use the `client.public.candles` method to retrieve historical candle data for a product via the public API endpoint. ```rust client.public.candles ``` -------------------------------- ### Get a specific Order using REST Client Source: https://github.com/ohkthx/cbadv-rs/blob/main/README.md Use the `client.order.get` method to retrieve details for a specific order via the REST API. ```rust client.order.get ``` -------------------------------- ### Get a specific Payment using REST Client Source: https://github.com/ohkthx/cbadv-rs/blob/main/README.md Use the `client.payment.get` method to retrieve details for a specific payment via the REST API. ```rust client.payment.get ``` -------------------------------- ### Get API Key Permissions using REST Client Source: https://github.com/ohkthx/cbadv-rs/blob/main/README.md Use the `client.data.key_permissions` method to retrieve information about API key permissions via the REST API. ```rust client.data.key_permissions ``` -------------------------------- ### Preview Order Create using REST Client Source: https://github.com/ohkthx/cbadv-rs/blob/main/README.md Use the `client.order.preview_create` method to preview the effects of a new order before submitting via the REST API. ```rust client.order.preview_create ``` -------------------------------- ### Create Portfolio using REST Client Source: https://github.com/ohkthx/cbadv-rs/blob/main/README.md Use the `client.portfolio.create` method to create a new portfolio via the REST API. ```rust client.portfolio.create ``` -------------------------------- ### List Products using REST Client Source: https://github.com/ohkthx/cbadv-rs/blob/main/README.md Use the `client.product.get_bulk` method to retrieve a list of available products via the REST API. ```rust client.product.get_bulk ``` -------------------------------- ### List Products using Public Endpoint Source: https://github.com/ohkthx/cbadv-rs/blob/main/README.md Use the `client.public.products` method to retrieve a list of available products via the public API endpoint. ```rust client.public.products ``` -------------------------------- ### List Portfolios using REST Client Source: https://github.com/ohkthx/cbadv-rs/blob/main/README.md Use the `client.portfolio.get_all` method to retrieve a list of all portfolios via the REST API. ```rust client.portfolio.get_all ``` -------------------------------- ### Import WebSocketClient and Builder Source: https://github.com/ohkthx/cbadv-rs/blob/main/README.md Import necessary components for creating and managing a WebSocket client. This is the first step to establishing a connection and subscribing to channels. ```rust use cbadv::{WebSocketClient, WebSocketClientBuilder} ``` -------------------------------- ### Create Order using REST Client Source: https://github.com/ohkthx/cbadv-rs/blob/main/README.md Use the `client.order.create` method to submit a new order via the REST API. ```rust client.order.create ``` -------------------------------- ### Products Source: https://github.com/ohkthx/cbadv-rs/blob/main/README.md Methods for retrieving product information. ```APIDOC ## Products ### Description Methods for retrieving product information. ### Methods - `client.product.best_bid_ask` - Get Best Bid/Ask - `client.product.product_book` - Get Product Book - `client.product.get_bulk` - List Products - `client.product.get` - Get Product Details - `client.product.candles` - Get Product Candles - `client.product.ticker` - Get Market Trades (Ticker) ``` -------------------------------- ### List Accounts using REST Client Source: https://github.com/ohkthx/cbadv-rs/blob/main/README.md Use the `client.account.get_bulk` method to retrieve a list of accounts via the REST API. ```rust client.account.get_bulk ``` -------------------------------- ### List Payments using REST Client Source: https://github.com/ohkthx/cbadv-rs/blob/main/README.md Use the `client.payment.get_all` method to retrieve a list of payments via the REST API. ```rust client.payment.get_all ``` -------------------------------- ### List Orders using REST Client Source: https://github.com/ohkthx/cbadv-rs/blob/main/README.md Use the `client.order.get_bulk` method to retrieve a list of orders via the REST API. ```rust client.order.get_bulk ``` -------------------------------- ### Preview Order Edit using REST Client Source: https://github.com/ohkthx/cbadv-rs/blob/main/README.md Use the `client.order.preview_edit` method to preview the effects of an order edit before committing via the REST API. ```rust client.order.preview_edit ``` -------------------------------- ### Converts Source: https://github.com/ohkthx/cbadv-rs/blob/main/README.md Methods for managing currency conversions. ```APIDOC ## Converts ### Description Methods for managing currency conversions. ### Methods - `client.convert.create_quote` - Create Quote - `client.convert.get` - Get Convert - `client.convert.commit` - Commit Convert (untested) ``` -------------------------------- ### Create Convert Quote using REST Client Source: https://github.com/ohkthx/cbadv-rs/blob/main/README.md Use the `client.convert.create_quote` method to create a quote for a currency conversion via the REST API. ```rust client.convert.create_quote ``` -------------------------------- ### List Fills using REST Client Source: https://github.com/ohkthx/cbadv-rs/blob/main/README.md Use the `client.order.fills` method to retrieve a list of order fills via the REST API. ```rust client.order.fills ``` -------------------------------- ### Portfolios Source: https://github.com/ohkthx/cbadv-rs/blob/main/README.md Methods for managing portfolios. ```APIDOC ## Portfolios ### Description Methods for managing portfolios. ### Methods - `client.portfolio.create` - Create Portfolio - `client.portfolio.get_all` - List Portfolios - `client.portfolio.get` - Get Portfolio Breakdown - `client.portfolio.edit` - Edit Portfolio - `client.portfolio.delete` - Delete Portfolio - `client.portfolio.move_funds` - Move Funds (untested) ``` -------------------------------- ### Move Funds using REST Client Source: https://github.com/ohkthx/cbadv-rs/blob/main/README.md Use the `client.portfolio.move_funds` method to move funds between portfolios. This endpoint is untested. ```rust client.portfolio.move_funds ``` -------------------------------- ### Add cbadv with config feature Source: https://github.com/ohkthx/cbadv-rs/blob/main/README.md To enable the configuration feature, include the cbadv crate with the 'config' feature in your Cargo.toml file. ```toml [dependencies] cbadv = { version = "*", features = ["config"] } ``` -------------------------------- ### Edit Portfolio using REST Client Source: https://github.com/ohkthx/cbadv-rs/blob/main/README.md Use the `client.portfolio.edit` method to modify an existing portfolio via the REST API. ```rust client.portfolio.edit ``` -------------------------------- ### Commit Convert using REST Client Source: https://github.com/ohkthx/cbadv-rs/blob/main/README.md Use the `client.convert.commit` method to commit a currency conversion. This endpoint is untested. ```rust client.convert.commit ``` -------------------------------- ### Orders Source: https://github.com/ohkthx/cbadv-rs/blob/main/README.md Methods for managing orders. ```APIDOC ## Orders ### Description Methods for managing orders. ### Methods - `client.order.create` - Create Order - `client.order.edit` - Edit Order - `client.order.preview_edit` - Preview Order Edit - `client.order.preview_create` - Preview Order Create - `client.order.cancel` - Cancel Order - `client.order.get_bulk` - List Orders - `client.order.fills` - List Fills - `client.order.get` - Get Order - `client.order.close_position` - Close Position (untested) ``` -------------------------------- ### Accounts Source: https://github.com/ohkthx/cbadv-rs/blob/main/README.md Methods for managing accounts. ```APIDOC ## Accounts ### Description Methods for managing accounts. ### Methods - `client.account.get_bulk` - List Accounts - `client.account.get` - Get Account ``` -------------------------------- ### Delete Portfolio using REST Client Source: https://github.com/ohkthx/cbadv-rs/blob/main/README.md Use the `client.portfolio.delete` method to remove a portfolio via the REST API. ```rust client.portfolio.delete ``` -------------------------------- ### Fees Source: https://github.com/ohkthx/cbadv-rs/blob/main/README.md Methods for retrieving fee information. ```APIDOC ## Fees ### Description Methods for retrieving fee information. ### Methods - `client.fee.get` - Get Transaction Summary ``` -------------------------------- ### Add cbadv Crate to Project Source: https://github.com/ohkthx/cbadv-rs/blob/main/README.md Add the cbadv crate to your project's dependencies using Cargo.toml. This ensures you have the latest version from the main branch of the GitHub repository. ```toml [dependencies] cbadv = { git = "https://github.com/ohkthx/cbadv-rs", branch = "main" } ``` -------------------------------- ### Public Source: https://github.com/ohkthx/cbadv-rs/blob/main/README.md Methods for accessing public API endpoints. ```APIDOC ## Public ### Description Methods for accessing public API endpoints. ### Methods - `client.public.time` - Get API Unix Server Time - `client.public.product_book` - Get Product Book - `client.public.products` - List Products - `client.public.product` - Get Product - `client.public.candles` - Get Product Candles - `client.public.ticker` - Get Product Ticker ``` -------------------------------- ### Close Position using REST Client Source: https://github.com/ohkthx/cbadv-rs/blob/main/README.md Use the `client.order.close_position` method to close an open position. This endpoint is untested. ```rust client.order.close_position ``` -------------------------------- ### Edit Order using REST Client Source: https://github.com/ohkthx/cbadv-rs/blob/main/README.md Use the `client.order.edit` method to modify an existing order via the REST API. ```rust client.order.edit ``` -------------------------------- ### Cancel Order using REST Client Source: https://github.com/ohkthx/cbadv-rs/blob/main/README.md Use the `client.order.cancel` method to cancel an existing order via the REST API. ```rust client.order.cancel ``` -------------------------------- ### Data Source: https://github.com/ohkthx/cbadv-rs/blob/main/README.md Methods for retrieving data-related information. ```APIDOC ## Data ### Description Methods for retrieving data-related information. ### Methods - `client.data.key_permissions` - API Key Permissions ``` -------------------------------- ### Payments Source: https://github.com/ohkthx/cbadv-rs/blob/main/README.md Methods for retrieving payment information. ```APIDOC ## Payments ### Description Methods for retrieving payment information. ### Methods - `client.payment.get_all` - List Payments - `client.payment.get` - Get Payment ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.