Verified Network
  • What is the Verified Network
  • How to use it
  • Reference
    • Verified SDK
      • Using the SDK
      • Wallet and Contracts
      • Know your Customer
        • Using the KYC plugin
      • Delegated permissions
      • Investment products
        • Product lifecycle
        • Example of a Product
      • Security tokens
        • Issuing functions
      • Liquidity pools
        • Buy and Sell Orders workflow
        • Buy and Sell Order Complete workflow example
      • Secondary issues
      • Primary issues
        • Primary offer function
      • Margin traded issues
        • Offering collateral
      • Adding money to wallet
        • Paying in supported tokens
      • Issuing cash tokens
        • Issuing and Exchange functions
      • Making payments
        • Transferring cash tokens
      • Withdrawals
        • Redeeming cash tokens
      • Custody of Assets
        • Custody functions
      • Staking to invest
        • Liquidity functions
        • Market maker functions
      • Staking to borrow
        • Bond issuing function
      • Lending
        • Bond purchase function
      • Repayments
        • Bond redemption function
      • Claiming collateral
        • Defaults and Unsold bonds
      • Returns on Investment
        • Manager and Platform returns
    • Verified REST API
      • Market data
        • Get all assets
        • Get Tradable Asset Pairs
        • Get Ticker Information
        • Get Orderbook
      • Order data
        • Get Account Balance
        • Get Trade Balance
        • Get Open Orders
        • Get Closed Orders
        • Query Orders Info
        • Query Trades Info
        • Get Trades History
      • Order Management
        • Add Order
        • Edit Order
        • Cancel Order
    • Verified Subgraphs
    • Verified Applications
      • Doing KYC
        • Creating wallet
        • Using the Verified Dapp
        • Doing KYC
      • Primary issues
        • Creating a new issue
        • Subscribing to issue
        • Closing issue
      • Secondary trading
        • Market orders
        • Limit orders
        • Edit, Cancel, Settle orders
      • Margin trading
        • Post Margin collateral
        • Swaps
        • Edit, Cancel, Settle orders
      • Portfolio
        • Account statement
        • Corporate actions
        • Underwriting liquidity
Powered by GitBook
On this page
  • API endpoint
  • Request Samples
  • Sample Body params
  • Encryption of Secret key
  1. Reference
  2. Verified REST API
  3. Order Management

Add Order

Fetch orderbok data with latest bid and ask price

API endpoint

/api/createOrder

Request Samples

 POST verified-api.azurewebsites.net/api/createOrder

Body Params

{
    "securityAddress": "string",
    "currencyAddress": "string",
    "quantity": "string",
    "swapType": "string",
    "poolId": "string",
    "secret_key": "string"
}

Sample Body params

{
    "securityAddress": "0x7395e5201ed7a841d1a1b04e8c19ab80dd72ab81",
    "currencyAddress": "0x07865c6e87b9f70255377e024ace6630c1eaa37f",
    "quantity": "1",
    "swapType": "Sell",
    "poolId": "0xfe94f5cea565935aa092d66b8540b03a4de05872000000000000000000000860",
    "secret_key": "153eb0b3726764d204aedc9062974ee82edcca2bc536f3742149511d0e455306"
}

Encryption of Secret key

Algorithm : AES-256-CBC
Secretkey (32 bytes data) = "verified@API"
initVector (16 bytes data) = wallletAddress 

Response Samples

Content type

application/json

{
    "status": ok
}

PreviousOrder ManagementNextEdit Order

Last updated 1 year ago