Skip to main content

shuainan test

Project description

zerocap-api-test使用

跳转restapi

跳转websocket

各种描述
公司介绍
等等描述
1

1
1

1
1
1
1
1
1

1
1
1

1
1
1

1
1
2
2
2

2
2

2
2
2
2

2

2
2

2
2
2

2

restapi 接口文档 GET https://dma-api.defi.wiki/redoc

restapi 的使用
。。。。。。。。。


请求参数:

参数名称 是否必须 类型 描述 默认值 取值范围
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 当前时间戳

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

websocket

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.7.tar.gz (3.8 kB view details)

Uploaded Source

File details

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

File metadata

  • Download URL: sn_test-1.0.7.tar.gz
  • Upload date:
  • Size: 3.8 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.7.tar.gz
Algorithm Hash digest
SHA256 c41f9405b1efaf208ca29354ea90acb14616eed8933c870643678cfd64856f38
MD5 2a3ff19a618e051b5dd553d9ccb9da46
BLAKE2b-256 4ea30d67c529dc1fe4c3407925f480bc080d32ff120fd89d1bd36239bc3453c5

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