Aktionariat Documentation
CtrlK
  • Introduction to Aktionariat
    • ⚑Quick Start
  • πŸ› οΈAPIs
    • πŸ“ŠSubgraph
      • Schema
      • Query Examples
        • Platform data
        • Token Data
        • Brokerbot Data
        • Swaps Data
    • βš™οΈExternal API
      • βš™οΈExternal API (Gitbook)
  • 🌐Web
    • Integrate with Ethers.js
      • Brokerbot Quoter
    • Integrate Aktionariat Widgets
  • ⛓️Smart Contracts
    • πŸ“”Contracts Overview
    • πŸ‘·β€β™‚οΈGuides
      • Implement A Trade
        • Direct Trades
        • Multihop Trades
      • Get Brokerbot Contract for Token
      • Buy Shares
      • Sell Shares
    • Technical Reference
      • Allowlist
      • Brokerbot
      • Drag-Along
      • Infinite Allowances
      • Multi-Signature Contract
      • Recovery
      • Shareholder Registry
  • πŸ“–Reference
    • Brokerbot Architecture
    • Github
    • Whitepaper
    • Brokerbot Analytics
  • πŸ’¬Socials
    • Twitter
    • Telegram
    • LinkedIn
    • Youtube
Powered by GitBook
On this page

Was this helpful?

Edit on GitHub
  1. ⛓️Smart Contracts
  2. πŸ‘·β€β™‚οΈGuides

Implement A Trade

with the Brokerbot Router, an integration of the Uniswap V3 Router interface

There are two ways to trade (buy&sell) share tokens:

  • Direct trade of base currency and share token (single swap)

  • Multihop trade between ERC20/ETH and share token with a trading path (multihop swap)

These trades all use the functions and structs from the ISwapRouter interface from Uniswap.

Github source

  • Source for the smart contract of the different trades

  • Source for a runnable script to call the example trades contract

Direct TradesMultihop Trades
PreviousGuidesNextDirect Trades

Last updated 1 year ago

Was this helpful?