⚙️
0xLeverage
  • 👋Welcome to 0xLeverage
    • 0xLeverage Links
  • Overview
    • 👉0xLeverage Trading Bot
      • Supported Networks
      • Additional Leverage Bot Utilities
      • Tutorials
      • 0xLeverage Referral System
  • 0XL Token
    • 🪙0xLeverage Token
      • $0XL Tokenomics
      • $0XL Token Revenue Share
    • 🔗Token Links
  • 0XLBOTS NFT ACCESS PASS
    • 🤖0XLBOTs NFT Overview
  • 🔗0XLBOT NFT Links
  • Best Practices
    • 📈Trading Assets with 0xLeverage
      • 🔁Funding & Transferring Assets
      • 🚶Trade Example Walkthrough
    • ⛽Gas Prices & Tax with 0xLeverage
      • Gas Information
      • Tax Information
    • 🔓Personal Security
  • Technicals
    • 🚛Trade Logistics
    • 🌊Liquidations
    • 🏧Leverage Pool
    • 🤑Revenue Model
  • 🔐Security
    • Bot Generated Wallet Security
    • Leverage Pool Security
    • Disclaimer
  • ❓FAQ
  • API
    • 0xLeverage API (coming soon)
Powered by GitBook
On this page
  1. Technicals

Trade Logistics

Streamlined Trade Logistics: A Detailed Insight

PreviousPersonal SecurityNextLiquidations

Last updated 6 months ago

Let's dive into the nitty-gritty of how our trade logistics work. Here's a step-by-step breakdown:

  1. Selecting Trade Parameters: When a user decides to open a trade, they start by specifying the position size and the desired leverage. These choices dictate the trade's dynamics and potential returns.

  2. Fund Allocation: The trading process begins as the bot takes the user's funds and sends them to a dedicated third "user leverage wallet", separate from the user's wallet and the leverage pool. This is a crucial security measure in maintaining the separation of user and leverage pool funds at all times.

  3. Leverage Pool Involvement: Simultaneously, the bot transfers funds from the leverage pool, calculated proportionally based on the user's chosen position and leverage size, to the same dedicated third "user leverage wallet". This collective pool of funds is used to initiate the trade.

  4. Trade Execution: With the necessary funds aggregated in the dedicated wallet, the bot executes the trade, creating a position in the selected asset. This ensures that the user's risk and potential rewards are proportionate to their chosen leverage.

  5. Tracking Trades: Once the trade is live, users can employ the /tracklev command to monitor their position's performance in real-time. This feature provides valuable insights into profits and losses.

  6. Trade Closure: When the user decides to close the trade, the process is reversed. The borrowed funds, which facilitated the leverage, are returned to the leverage pool. The remaining funds, adjusted for fees, are sent back to the user's wallet, ensuring a transparent experience.

  7. Gas Fee Considerations: Each leverage trade typically involves six transactions (five for liquidated positions), making efficient use of gas fees a priority. To accommodate these transaction costs, an additional 0.05 ETH is required on top of the position value. Any excess gas funds are promptly returned to the user's wallet following trade closure. (Alternative blockchain gas fee's are much lower dependent on the required amount.)

🚛