Skip to main content

shuainan test

Project description

GET https://dma-api.defi.wiki/redoc

请求参数:

参数名称 是否必须 类型 描述 默认值 取值范围
symbol true string 交易对 btcbitcny, bchbtc, eoseth ...
types false string 查询的订单类型组合,使用','分割 全部 buy-market:市价买, sell-market:市价卖, buy-limit:限价买, sell-limit:限价卖
states true string 查询的订单状态组合,使用','分割 new :新订单, part_filled :部分成交
from false string 查询起始 ID (订单ID) 配合direct 使用
direct false string 查询方向 next prev 向前,next 向后
size false string 查询记录大小 50 最多一次查询50条数据
time true string 当前时间戳

请求参数:示例(不能直接使用,需要替换自己的参数)

GET https://dma-api.defi.wiki/redoc

响应数据:

参数名称 是否必须 数据类型 描述 取值范围
id true string 订单id
user_id true long 账户 ID
volume true string 订单数量
deal_volume false string 成交数量
deal_money true string 已成交金额
fee true string 手续费
price true string 限价单挂单价格
status false string 订单状态 0 或 1 :新订单, 3 :部分成交
type true string 订单类型 buy-market:市价买, sell-market:市价卖, buy-limit:限价买, sell-limit:限价卖
source true string 订单来源 api
symbol true string 交易对 btcbitcny, eoseth, ethbtc ...
ctime true string 订单创建时间 时间倒序
mtime true string 最后成交时间

响应例子:

{
    "code": "0",
    "msg": "suc",
    "data": [
          {
            "symbol": "ethbtc",
            "fee": "0.00100000",
            "avg_price": "0.07231094",
            "source": 1,
            "type": "buy-limit",
            "mtime": 1524823324000,
            "volume": "1.000",
            "user_id": 10278,
            "price": "0.07231094",
            "ctime": 1524823301000,
            "deal_volume": "1.00000000",
            "id": 5228948,
            "deal_money": "0.07231094",
            "status": 2
        },
        ...
    ]
}

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sn_test-1.0.5.tar.gz (3.6 kB view details)

Uploaded Source

File details

Details for the file sn_test-1.0.5.tar.gz.

File metadata

  • Download URL: sn_test-1.0.5.tar.gz
  • Upload date:
  • Size: 3.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.8.6

File hashes

Hashes for sn_test-1.0.5.tar.gz
Algorithm Hash digest
SHA256 ab64163e2526955d0e2eb7f920a3069e721fc86ba22bcbc2150f168730dd1cf8
MD5 3c0bce48a66cb5d4fd336c04661ff08c
BLAKE2b-256 1203e7a94f50195eb22d0ab415a38d5e4f7d54e67c8bfc8ad3f43620d1d6faa2

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page