Quick Start

Welcome to the QuickStart Guide, PineDefi APIs are accessible via the WebSocket interface via

wss://api.pinedefi.io:8080/

In this example, we're retrieving OHLCV (Open, High, Low, Close, Volume) data on a Binance Smart Chain PancakeSwap pool for WBNB/CAKE Pairs.

Returns OHLCV Data on the given BSC Pool

CONNECT wss://api.pinedefi.io:8080/ohlcv

Request Body

Name
Type
Description

symbol*

String

timeframe*

Int

startdate*

int

{"result":[{"timestamp":1630260571070,"open":19.07012483,"high":24.90505086,"low":17.70635983,"close":24.66788656,"volume":-226712066968812032}],"error":{"error":false,"message":""}}

Good to know: PineDefi API system is only available via WebSockets for now.

Last updated