Velora Developer Docs
VeloraUser Documentation
  • API
    • Velora API
      • Velora Delta API
        • Overview
        • Contracts
        • Retrieve Delta price with fallback to Market
        • Retrieve details for creating cross-chain order
        • Build a Delta Order to Sign
        • Submit a Delta Order
        • Track Delta Order Auction Status
        • Example: Quote With Fallback
      • Velora Market API
        • Overview
        • API Versions
          • API v6.2
          • API v5
        • Retrieve a price: /prices
        • Build a transaction: /transactions
        • Get Price & Calldata: /swap
        • Example: Fetch Price & Build Transaction
    • Get Tokens List
    • Limit Orders
      • Introduction
      • Contracts
      • On chain Data Structure
      • Data structure in our centralized system
      • API References
        • Fungible tokens
          • Create a limit order
          • Create a p2p limit order
          • Get limit orders by maker
          • Get limit orders by taker
          • Get Pairs
          • Get Orderbook
          • Fill a limit order
          • Cancel a limit order
        • NFT
          • Create an order
          • Create a p2p order
          • Get NFT orders by maker
          • Get NFT orders by taker
          • Get Pairs
          • Get orderbook
          • Fill a limit order
          • Cancel a limit order
      • SDK
        • Typescript
        • Python
  • AugustusRFQ API Specification
  • Augustus Swapper
    • Augustus v6.2
    • Augustus v5
  • Subgraphs
  • Security
    • Augustus V6.2
    • Augustus V6.1
    • Augustus RFQ
    • Augustus V5
  • Help Center
Powered by GitBook
On this page
  • Install
  • Run examples
  • Examples:
Export as PDF
  1. API
  2. Limit Orders
  3. SDK

Python

https://github.com/paraswap/paraswap-python-sdk

ParaSwap's Python SDK V1 currently handles ParaSwap limit orders.

Install

python3 setup.py build
python3 setup.py install # may need privilege authorization

Run examples

You need to add the previous variables inside a .env file to run our examples.

PK1 and PK2 are two EVM-compatible secret keys that will be used to sign orders.

PK1=
PK2=

RPC_HTTP_1=
RPC_HTTP_3=
RPC_HTTP_10=
RPC_HTTP_56=
RPC_HTTP_137=
RPC_HTTP_250=
RPC_HTTP_42161=
RPC_HTTP_43114=

Examples:

everything in ./examples/

Last updated 2 years ago