DeltaTrade
  • Introduction to DeltaTrade 🤖
    • Vision
    • Features
      • Trading Vault
        • Grid Trading
        • Swing Vault
        • DCA
        • Rebalancing Bot
      • MultiChain - Chain Abstraction(Coming Soon)
      • OrderBook(Coming Soon)
      • Full Platform Market Maker
      • AI Powered Strategy(Coming Soon)
    • Protocol fees
    • Fee referral rebate mechanism
    • Official Links
    • FAQ
  • Technical information
    • Security
      • Fund Security
      • Audit
      • Oracle
    • Implementation Concepts
    • Source of liquidity
  • Activities
    • DeltaDisk NFT
    • Testnet campaign
      • NFT Details
    • Gachapon
    • Delta Points
    • Ranking Competition
    • Burrow & Trade
    • Mining
  • User guide
    • Official DeltaBot Links
    • Introduction to Near Protocol
    • Introduction to DeltaBot Functional Modules
      • Home Page
      • Market
      • Vaults
      • DashBoard
      • LeaderBoard
    • How to Create a Trading Bot
    • Grid Trading Bot Creation Strategies
      • Wide Price Range
      • Narrow Price Range
      • Pure Buy Order Grid Strategy
      • Pure Sell Order Grid Strategy
      • Unbalanced Buy-Sell Order Grid Strategy
  • SDK
    • SmartContract
      • DCA
        • Token Storage Deposit
        • Deposit
        • Create DCA
        • Query DCA
      • Grid
      • Swing
    • JS
      • DCA
      • Grid
      • Swing
  • Business
    • Contact Us
Powered by GitBook
On this page
  • Method:
  • Params
  • Near Cli
  • Response
  1. SDK
  2. SmartContract
  3. DCA

Query DCA

Method:

Near View query_dca

Params

Name
Type
Description

id

string

be returned on Create Event

Near Cli

near view deltadca.testnet query_dca '{"id":"DCA:118"}'

Response

{
  name: '10near',
  user: 'juaner2.testnet',
  id: 'DCA:118',
  closed: true,
  token_in: 'deltanear.testnet',
  token_out: 'deltausdc.testnet',
  start_time: 1723638431398,
  interval_time: 3540000,
  single_amount_in: '1000000000000000000000000',
  count: 10,
  execute_count: 1, // Number of times DCA has been executed, execute_count <= count
  lowest_price: 0,
  highest_price: 0,
  left_amount_in: '9000000000000000000000000',
  left_amount_out: '0',
  buy_amount_record: '4210208',
  slippage: 50,
  process: 0,
  locked: false,
  need_withdraw_amount: '0',
  buy_amount_to_user: false
}
PreviousCreate DCANextGrid

Last updated 6 months ago