ABCC API
  • Introduction
  • Authenticate
  • Meta
  • Errors
  • Common
    • Get Timestamp
    • Get Markets
  • Spot Trade
    • List Order
    • Query Order
    • New Order
    • Cancel Order
  • Market Data
    • Order book
    • Depth
    • Market Quotes
    • Kline Data
  • Account
    • User Balance
    • Transaction Records
  • Websocket Market Streams
    • Common
    • Full Depth Data
    • Diff. Depth Stream
    • Latest Order Price
    • Unsubscribe
Powered by GitBook
On this page

Was this helpful?

  1. Market Data

Kline Data

Get Kline Data

GET https://api.abcc.com/api/v1/exchange/klines/:market_code

Path Parameters

Name
Type
Description

market_code

string

1-100000 (Default is 30)

Query Parameters

Name
Type
Description

start_time

string

end_time

string

limit

string

Default 30; max 10000.

period

string

[1, 5, 15, 30, 60, 120, 240, 360, 720, 1440, 4320, 10080]

{
	"btcusdt": [
		[1633397400, 49082.29, 49219.54, 49027.46, 49173.81, 1.4923],
		[1633397700, 49262.56, 49301.51, 49192.09, 49213.78, 1.7156],
		[1633398000, 49205.4, 49272.07, 49162.03, 49241.29, 1.2334],
		[1633398300, 49229.04, 49334.88, 49210.56, 49330.77, 1.044],
		[1633398600, 49299.71, 49476.23, 49230.43, 49232.04, 13.0938],
		[1633398900, 49241.92, 49258.13, 49163.89, 49210.42, 4.4876],
		[1633399200, 49201.97, 49325.14, 49173.35, 49281.99, 1.5833],
		[1633399500, 49303.66, 49370.87, 49264.31, 49321.51, 1.1822],
		[1633399800, 49349.08, 49408.04, 49326.55, 49356.27, 1.316],
		[1633400100, 49364.39, 49364.39, 49274.53, 49283.06, 1.0799]
	]
}

OUTPUT EXPLANATION

Script

Type

Explain

market_code

Array

Data corresponding to market_code

market_code[0]

Integer

Starting time

market_code[1]

Decimal

Open price

market_code[2]

Decimal

Highest price

market_code[3]

Decimal

Lowest price

market_code[4]

Decimal

Closing price

market_code[5]

Decimal

Trading volume

PreviousMarket QuotesNextUser Balance

Last updated 2 years ago

Was this helpful?