LogoLogo
  • Getting Started
  • How to Connect
  • REST API
    • Order
    • PublicMarketData
    • Wallet
    • Trade
    • Models
  • Smart Contract ABI
    • OrderBook
    • Order Data (explanation)
  • Websocket API
    • Orderbook
    • Ticker
  • SDK Documentation
    • Getting Started
    • REST API Interaction
    • Smart Contract Interaction
      • Order Placement
      • Order Cancelation
Powered by GitBook

Privacy

  • Privacy Policy

All rights reserved. 21X AG

On this page
  • Use Cases
Export as PDF
  1. Sample Use Cases & Code

Direct Smart Contract Interaction

Alternatively to our Python SDK, customers can use third-party Web3 libraries or platforms like fireblocks to directly interact with the smart contract on the Polygon network. This approach requires a understanding of smart contract inte ractions and the required payload.

The following three examples will give you some more insides about the required interaction with the smart contract.

Use Cases

Creating a Buy Order

To create a buy order, you need to prepare the payload with specific parameters detailing price, quantity, and other relevant details.

Creating a Sell Order

Similar to a buy order, a sell order requires you to specify parameters in the payload such as the asset you intend to sell and your desired price.

Canceling Open Orders

Canceling orders requires identification of the specific order you want to cancel. Ensure the payload includes the correct order ID.

Last updated 1 month ago