EOS

newdexpublic

Contract

The data structures defined by this contract.

  • Table row type of account

    { "name": "account", "base": "", "fields": [ { "name": "user", "type": "name" }, { "name": "status", "type": "uint8" }, { "name": "level", "type": "uint8" }, { "name": "order", "type": "uint32" }, { "name": "ext1", "type": "uint64" }, { "name": "extstr", "type": "string" } ] }
  • Action parameter in addcontracts

    { "name": "addcontracts", "base": "", "fields": [ { "name": "contract", "type": "name[]" } ] }
  • Table row type of cancellimit

    { "name": "cancel_limit", "base": "", "fields": [ { "name": "last_time", "type": "time_point_sec" }, { "name": "count", "type": "uint16" } ] }
  • Action parameter in cancelcross

    { "name": "cancelcross", "base": "", "fields": [ { "name": "pair_id", "type": "uint64" }, { "name": "order_id", "type": "uint64" } ] }
  • Action parameter in cancelexpire

    { "name": "cancelexpire", "base": "", "fields": [ { "name": "pair_id", "type": "uint64" }, { "name": "order_id", "type": "uint64" }, { "name": "is_buy", "type": "bool" } ] }
  • Action parameter in cancelorder

    { "name": "cancelorder", "base": "", "fields": [ { "name": "pair_id", "type": "uint64" }, { "name": "order_id", "type": "uint64" } ] }
  • Action parameter in cancelpair

    { "name": "cancelpair", "base": "", "fields": [ { "name": "owner", "type": "name" }, { "name": "pair_id", "type": "uint64" } ] }
  • Action parameter in cancelplan

    { "name": "cancelplan", "base": "", "fields": [ { "name": "order_id", "type": "uint64" }, { "name": "owner", "type": "name" } ] }
  • Action parameter in changelevel

    { "name": "changelevel", "base": "", "fields": [ { "name": "owner", "type": "name" }, { "name": "level", "type": "uint8" } ] }
  • Table row type of contractlist

    { "name": "contract_list", "base": "", "fields": [ { "name": "contract", "type": "name" }, { "name": "is_white", "type": "bool" } ] }
  • Table row type of crossorder

    { "name": "cross_order", "base": "", "fields": [ { "name": "pair_id", "type": "uint64" }, { "name": "order_id", "type": "uint64" }, { "name": "is_buy", "type": "bool" }, { "name": "owner", "type": "name" }, { "name": "contract", "type": "name" }, { "name": "quantity", "type": "asset" }, { "name": "update_time", "type": "time_point_sec" } ] }
  • Table row type of currency

    { "name": "currency", "base": "", "fields": [ { "name": "currency_id", "type": "uint64" }, { "name": "chain", "type": "string" }, { "name": "contract", "type": "name" }, { "name": "sym", "type": "symbol" }, { "name": "balance", "type": "asset" }, { "name": "is_quote_currency", "type": "bool" }, { "name": "in_fee", "type": "uint8" }, { "name": "out_fee", "type": "uint8" }, { "name": "ext1", "type": "uint64" }, { "name": "ext2", "type": "uint64" }, { "name": "extstr", "type": "string" } ] }
  • Action parameter in delaccount

    { "name": "delaccount", "base": "", "fields": [ { "name": "user", "type": "name" } ] }
  • Action parameter in delaccounts

    { "name": "delaccounts", "base": "", "fields": [ { "name": "user", "type": "name[]" } ] }
  • Action parameter in delconfig

    { "name": "delconfig", "base": "", "fields": [ { "name": "key", "type": "string" } ] }
  • Action parameter in delcontract

    { "name": "delcontract", "base": "", "fields": [ { "name": "contract", "type": "name" } ] }
  • Action parameter in delcurrency

    { "name": "delcurrency", "base": "", "fields": [ { "name": "currency_id", "type": "uint64" } ] }
  • Action parameter in deldiscount

    { "name": "deldiscount", "base": "", "fields": [ { "name": "level", "type": "uint8" } ] }
  • Action parameter in deletepair

    { "name": "deletepair", "base": "", "fields": [ { "name": "pair_id", "type": "uint64" } ] }
  • Action parameter in delorder

    { "name": "delorder", "base": "", "fields": [ { "name": "pair_id", "type": "uint64" }, { "name": "auth_type", "type": "uint8" }, { "name": "max_num", "type": "uint8" } ] }
  • Table row type of discount

    { "name": "discount", "base": "", "fields": [ { "name": "level", "type": "uint8" }, { "name": "ndx_stake", "type": "asset" }, { "name": "fee_discount", "type": "float32" }, { "name": "ext1", "type": "uint64" }, { "name": "extstr", "type": "string" } ] }
  • Table row type of exchangepair

    { "name": "exchange_pair", "base": "", "fields": [ { "name": "pair_id", "type": "uint64" }, { "name": "price_precision", "type": "uint8" }, { "name": "status", "type": "uint8" }, { "name": "base_symbol", "type": "ndx_symbol" }, { "name": "quote_symbol", "type": "ndx_symbol" }, { "name": "manager", "type": "name" }, { "name": "list_time", "type": "time_point_sec" }, { "name": "pair_symbol", "type": "string" }, { "name": "current_price", "type": "float64" }, { "name": "base_currency_id", "type": "uint64" }, { "name": "quote_currency_id", "type": "uint64" }, { "name": "pair_fee", "type": "uint8" }, { "name": "ext1", "type": "uint64" }, { "name": "ext2", "type": "uint64" }, { "name": "extstr", "type": "string" } ] }
  • Action parameter in fixcurrency

    { "name": "fixcurrency", "base": "", "fields": [ { "name": "currency_id", "type": "uint64" }, { "name": "quantity", "type": "asset" }, { "name": "is_add", "type": "bool" } ] }
  • Table row type of globalconfig

    { "name": "global_config", "base": "", "fields": [ { "name": "global_id", "type": "uint64" }, { "name": "key", "type": "string" }, { "name": "value", "type": "string" }, { "name": "memo", "type": "string" } ] }
  • Action parameter in makecross

    { "name": "makecross", "base": "", "fields": [ { "name": "pair_id", "type": "uint64" }, { "name": "order_id", "type": "uint64" }, { "name": "from", "type": "name" }, { "name": "contract", "type": "name" }, { "name": "quantity", "type": "asset" }, { "name": "type", "type": "string" }, { "name": "symbol", "type": "string" }, { "name": "price", "type": "string" }, { "name": "channel", "type": "string" }, { "name": "receiver", "type": "string" } ] }
  • Action parameter in makeorder

    { "name": "makeorder", "base": "", "fields": [ { "name": "pair_id", "type": "uint64" }, { "name": "order_id", "type": "uint64" }, { "name": "owner", "type": "name" }, { "name": "type", "type": "string" }, { "name": "pair_symbol", "type": "string" }, { "name": "price", "type": "float64" }, { "name": "condition_price", "type": "float64" }, { "name": "is_plan", "type": "bool" }, { "name": "quantity", "type": "asset" }, { "name": "amount", "type": "asset" }, { "name": "channel", "type": "string" }, { "name": "ref", "type": "string" }, { "name": "base_symbol", "type": "ndx_symbol" }, { "name": "quote_symbol", "type": "ndx_symbol" }, { "name": "agg_oid", "type": "string" } ] }
  • Action parameter in makeplan

    { "name": "makeplan", "base": "", "fields": [ { "name": "pair_id", "type": "uint64" }, { "name": "order_id", "type": "uint64" }, { "name": "owner", "type": "name" }, { "name": "type", "type": "string" }, { "name": "pair_symbol", "type": "string" }, { "name": "price", "type": "float64" }, { "name": "condition_price", "type": "float64" }, { "name": "is_plan", "type": "bool" }, { "name": "quantity", "type": "asset" }, { "name": "amount", "type": "asset" }, { "name": "channel", "type": "string" }, { "name": "ref", "type": "string" }, { "name": "base_symbol", "type": "ndx_symbol" }, { "name": "quote_symbol", "type": "ndx_symbol" } ] }
  • Action parameter in mkplanorder

    { "name": "mkplanorder", "base": "", "fields": [ { "name": "order_id", "type": "uint64" } ] }
  • Action parameter in modifylevel

    { "name": "modifylevel", "base": "", "fields": [ { "name": "owner", "type": "name" }, { "name": "ndx_stake", "type": "asset" } ] }
  • Struct property of exchange_pair

    Struct property of makeorder

    Struct property of makeplan

    Struct property of plan_order

    { "name": "ndx_symbol", "base": "", "fields": [ { "name": "contract", "type": "name" }, { "name": "sym", "type": "symbol" } ] }
  • Table row type of buyorder

    Table row type of sellorder

    { "name": "order", "base": "", "fields": [ { "name": "order_id", "type": "uint64" }, { "name": "pair_id", "type": "uint64" }, { "name": "type", "type": "uint8" }, { "name": "owner", "type": "name" }, { "name": "placed_time", "type": "time_point_sec" }, { "name": "remain_quantity", "type": "asset" }, { "name": "remain_convert", "type": "asset" }, { "name": "price", "type": "float64" }, { "name": "contract", "type": "name" }, { "name": "count", "type": "uint8" }, { "name": "crosschain", "type": "uint8" }, { "name": "ext1", "type": "uint64" }, { "name": "extstr", "type": "string" } ] }
  • Action parameter in orderhandle

    { "name": "orderhandle", "base": "", "fields": [ { "name": "pair_id", "type": "uint64" }, { "name": "order_id", "type": "uint64" }, { "name": "is_buy", "type": "bool" }, { "name": "is_expire", "type": "bool" } ] }
  • Table row type of planorder

    Table row type of takerorder

    { "name": "plan_order", "base": "", "fields": [ { "name": "pair_id", "type": "uint64" }, { "name": "order_id", "type": "uint64" }, { "name": "owner", "type": "name" }, { "name": "update_time", "type": "time_point_sec" }, { "name": "type", "type": "uint8" }, { "name": "pair_symbol", "type": "string" }, { "name": "deal_price", "type": "float64" }, { "name": "condition_price", "type": "float64" }, { "name": "quantity", "type": "asset" }, { "name": "amount", "type": "asset" }, { "name": "channel", "type": "string" }, { "name": "ref", "type": "string" }, { "name": "base_symbol", "type": "ndx_symbol" }, { "name": "quote_symbol", "type": "ndx_symbol" }, { "name": "count", "type": "uint8" } ] }
  • Table row type of reducefee

    { "name": "reduce_fee", "base": "", "fields": [ { "name": "user", "type": "name" }, { "name": "taker_rate", "type": "uint8" }, { "name": "maker_rate", "type": "uint8" } ] }
  • Action parameter in runschedule

    { "name": "runschedule", "base": "", "fields": [] }
  • Action parameter in saveaccount

    { "name": "saveaccount", "base": "", "fields": [ { "name": "user", "type": "name" }, { "name": "status", "type": "uint8" } ] }
  • Action parameter in saveconfig

    { "name": "saveconfig", "base": "", "fields": [ { "name": "key", "type": "string" }, { "name": "value", "type": "string" }, { "name": "memo", "type": "string" } ] }
  • Action parameter in savecontract

    { "name": "savecontract", "base": "", "fields": [ { "name": "contract", "type": "name" }, { "name": "is_white", "type": "bool" } ] }
  • Action parameter in savecurrency

    { "name": "savecurrency", "base": "", "fields": [ { "name": "currency_id", "type": "uint64" }, { "name": "contract", "type": "name" }, { "name": "currency_precision", "type": "uint8" }, { "name": "currency_sym", "type": "string" }, { "name": "is_quote_currency", "type": "bool" } ] }
  • Action parameter in savediscount

    { "name": "savediscount", "base": "", "fields": [ { "name": "level", "type": "uint8" }, { "name": "ndx_stake", "type": "uint64" }, { "name": "fee_discount", "type": "float32" } ] }
  • Action parameter in saveorder

    { "name": "saveorder", "base": "", "fields": [ { "name": "pair_id", "type": "uint64" }, { "name": "order_id", "type": "uint64" }, { "name": "owner", "type": "name" }, { "name": "type", "type": "string" }, { "name": "price", "type": "float64" }, { "name": "contract", "type": "name" }, { "name": "remain_quantity", "type": "asset" } ] }
  • Action parameter in savepair

    { "name": "savepair", "base": "", "fields": [ { "name": "pair_id", "type": "uint64" }, { "name": "pair_symbol", "type": "string" }, { "name": "base_currency_id", "type": "uint64" }, { "name": "quote_currency_id", "type": "uint64" }, { "name": "price_precision", "type": "uint8" }, { "name": "status", "type": "uint8" } ] }
  • Table row type of schedule

    { "name": "schedule", "base": "", "fields": [ { "name": "task_id", "type": "uint64" }, { "name": "type", "type": "uint8" } ] }
  • Action parameter in setfee

    { "name": "setfee", "base": "", "fields": [ { "name": "user", "type": "name" }, { "name": "taker_rate", "type": "uint8" }, { "name": "maker_rate", "type": "uint8" } ] }
  • Action parameter in setmaxorder

    { "name": "setmaxorder", "base": "", "fields": [ { "name": "user", "type": "name" }, { "name": "max_order", "type": "uint64" } ] }
  • Action parameter in silentcancel

    { "name": "silentcancel", "base": "", "fields": [ { "name": "pair_id", "type": "uint64" }, { "name": "order_id", "type": "uint64" }, { "name": "owner", "type": "name" }, { "name": "direction", "type": "uint8" } ] }
  • Table row type of stakes

    { "name": "stake_item", "base": "", "fields": [ { "name": "blockchain", "type": "name" }, { "name": "total_staked", "type": "uint64" }, { "name": "self_staked", "type": "uint64" }, { "name": "staked_to_others", "type": "uint64" }, { "name": "refunding", "type": "uint64" }, { "name": "release_time", "type": "time_point_sec" } ] }
  • Table row type of tableid

    { "name": "table_id", "base": "", "fields": [ { "name": "table_name", "type": "name" }, { "name": "id", "type": "uint64" } ] }
  • Action parameter in tradecross

    { "name": "tradecross", "base": "", "fields": [ { "name": "pair_id", "type": "uint64" }, { "name": "order_id", "type": "uint64" }, { "name": "quantity", "type": "asset" }, { "name": "to", "type": "name" }, { "name": "memo", "type": "string" } ] }
  • Action parameter in traderecord

    { "name": "traderecord", "base": "", "fields": [ { "name": "pair_id", "type": "uint64" }, { "name": "pair_symbol", "type": "string" }, { "name": "buy_order_id", "type": "uint64" }, { "name": "buy_account", "type": "name" }, { "name": "buy_level", "type": "uint8" }, { "name": "sell_order_id", "type": "uint64" }, { "name": "sell_account", "type": "name" }, { "name": "sell_level", "type": "uint8" }, { "name": "trade_price", "type": "float64" }, { "name": "quantity", "type": "asset" }, { "name": "remain_quantity", "type": "asset" }, { "name": "amount", "type": "asset" }, { "name": "remain_amount", "type": "asset" }, { "name": "buy_fee_amount", "type": "asset" }, { "name": "buy_fee_ratio", "type": "float64" }, { "name": "buy_fee_save", "type": "asset" }, { "name": "sell_fee_amount", "type": "asset" }, { "name": "sell_fee_ratio", "type": "float64" }, { "name": "sell_fee_save", "type": "asset" }, { "name": "buy_finish", "type": "bool" }, { "name": "sell_finish", "type": "bool" }, { "name": "match_direction", "type": "uint8" }, { "name": "trade_time", "type": "time_point_sec" }, { "name": "agg_oid", "type": "string" } ] }