example

command
v0.0.0-...-84af44b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 9, 2023 License: Apache-2.0 Imports: 15 Imported by: 0

README

Example Front End

A basic front end to provide users and developers a familiar exchange interface. This front end has some selected markets and can be queried with a simple /markets API.

GET https://example.ocean.one/markets

{
  "data": [
    {
      "base": "43d61dcd-e413-450d-80b8-101d5e903357",
      "base_symbol": "ETH",
      "change": "-0.00264931",
      "price": "317.4274",
      "quote": "4d8c508b-91c5-375b-92b0-ee702ed2dac5",
      "quote_symbol": "USDT",
      "quote_usd": "1.0174087",
      "total": "4163484.37",
      "volume": "12991.47"
    }
  ]
}
field description
base base currency ID
base_symbol base currency symbol
quote quote currency ID
quote_symbol quote currency symbol
price latest price in quote currency
change 24 hour price change
volume 24 hour volume in base currency
total 24 hour total in quote currency

To query a specific market data, combine the base and quote currency ID as the market ID

GET https://example.ocean.one/markets/MARKET-ID

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL