Skip to content

EOtrade/trade-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 

Repository files navigation

General API information

  • The base endpoint is: https://b.eo.trade.
  • All endpoints return either JSON object or array.
  • All time and timestamp related fields are in milliseconds.
  • For GET endpoints parameters must be sent as query string.

Public API endpoints

Currencies

Get all available currencies information.

GET /api/trading/currencies/

Response:

[
  {
    "currency": "BTC",
    "name": "Bitcoin",
    "canDeposit": true,
    "canWithdraw": true,
    "minWithdrawal": "0.000056160909653938"
  },
  {
    "currency": "EO",
    "name": "EO Coin",
    "canDeposit": true,
    "canWithdraw": true,
    "minWithdrawal": "2"
  },
  {
    "currency": "ETH",
    "name": "Ethereum",
    "canDeposit": true,
    "canWithdraw": true,
    "minWithdrawal": "0.005"
  }
]

Symbols

Get all available pairs information.

GET /api/trading/symbols/

Response:

[
  {
    "symbol": "XRPETH",
    "isActive": true,
    "baseAsset": "XRP",
    "baseAssetPrecision": "1",
    "baseAssetMinAmount": "50",
    "quoteAsset": "ETH",
    "quoteAssetPrecision": "0.01",
    "quoteAssetMinAmount": "0.1",
    "pricePresicion": "0.00000001"
  },
  {
    "symbol": "EOETH",
    "isActive": true,
    "baseAsset": "EO",
    "baseAssetPrecision": "1",
    "baseAssetMinAmount": "1",
    "quoteAsset": "ETH",
    "quoteAssetPrecision": "0.00000001",
    "quoteAssetMinAmount": "0.00000001",
    "pricePresicion": "0.00000001"
  },
]

Recent trade list

Get list of latest deals.

GET /api/trading/deals/

Query parameters:

Parameter Type Description
symbol required string Pair symbol
limit integer Maximum deals which will be fetched. Default value: 500

Response:

[
  {
    "id": 3234614,
    "price": "0.01",
    "qty": "63789.9323",
    "time": 1559908006
  },
  {
    "id": 3234613,
    "price": "0.2345",
    "qty": "758.5687",
    "time": 1559908006
  },
  {
    "id": 3234612,
    "price": "0.0034",
    "qty": "267.6805",
    "time": 1559908006
  }
]

Fetch single deal

Get single deal by id.

GET /api/trading/deals/:id/

Path parameters:

Parameter Type Description
id required integer Deal ID

Response:

{
  "id": 3223614,
  "price": "33.5978",
  "qty": "2.99366",
  "time": 1559685290
}

Order book

Get order book for pair.

GET /api/trading/depth/

Query parameters:

Parameter Type Description
symbol required string Pair symbol
limit integer Valid limits: [1, 5, 10, 20, 50, 100, 500, 1000]. Default value: 100

Response:

{
  "bids": [
    [
      "0.0016397",
      "54"
    ],
    [
      "0.00164062",
      "53"
    ],
    [
      "0.00164127",
      "59"
    ],
    [
      "0.00164224",
      "59"
    ],
    [
      "0.00164259",
      "91"
    ]
  ],
  "asks": [
    [
      "0.00139559",
      "54"
    ],
    [
      "0.00139541",
      "53"
    ],
    [
      "0.0013943",
      "51"
    ],
    [
      "0.00139428",
      "66"
    ],
    [
      "0.00139391",
      "57"
    ]
  ]
}

About

EO.Trade API documentation

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors