PineForge v0.13.1-379-g9b50973
Deterministic PineScript v6 backtest runtime — C ABI reference
Loading...
Searching...
No Matches
live_parser.h File Reference
#include <stddef.h>
#include <stdint.h>
Include dependency graph for live_parser.h:

Go to the source code of this file.

Data Structures

struct  pf_live_parser_event_v1_t
 

Macros

#define PF_LIVE_PARSER_ABI_VERSION   1u
 
#define PF_LIVE_PARSER_MAX_MESSAGE_BYTES   (1024u * 1024u)
 
#define PF_LIVE_PARSER_MAX_EVENTS   1024u
 
#define PF_LIVE_PARSER_MAX_OUTPUT_BYTES   (1024u * 1024u)
 
#define PF_LIVE_PARSER_API
 

Typedefs

typedef int(* pf_live_parser_emit_v1_fn) (const pf_live_parser_event_v1_t *event, void *user)
 

Enumerations

enum  pf_live_parser_event_kind {
  PF_LIVE_PARSER_TICK = 1 ,
  PF_LIVE_PARSER_BAR = 2 ,
  PF_LIVE_PARSER_TIME = 3
}
 

Functions

PF_LIVE_PARSER_API uint32_t pf_live_parser_abi_version (void)
 
PF_LIVE_PARSER_API int pf_live_parse_message (const char *message, size_t message_size, const char *config_json, size_t config_size, pf_live_parser_emit_v1_fn emit, void *user)
 

Macro Definition Documentation

◆ PF_LIVE_PARSER_ABI_VERSION

#define PF_LIVE_PARSER_ABI_VERSION   1u

Definition at line 8 of file live_parser.h.

◆ PF_LIVE_PARSER_MAX_MESSAGE_BYTES

#define PF_LIVE_PARSER_MAX_MESSAGE_BYTES   (1024u * 1024u)

Definition at line 9 of file live_parser.h.

◆ PF_LIVE_PARSER_MAX_EVENTS

#define PF_LIVE_PARSER_MAX_EVENTS   1024u

Definition at line 10 of file live_parser.h.

◆ PF_LIVE_PARSER_MAX_OUTPUT_BYTES

#define PF_LIVE_PARSER_MAX_OUTPUT_BYTES   (1024u * 1024u)

Definition at line 11 of file live_parser.h.

◆ PF_LIVE_PARSER_API

#define PF_LIVE_PARSER_API

Definition at line 18 of file live_parser.h.

Referenced by pf_live_parse_message(), and pf_live_parser_abi_version().

Typedef Documentation

◆ pf_live_parser_emit_v1_fn

typedef int(* pf_live_parser_emit_v1_fn) (const pf_live_parser_event_v1_t *event, void *user)

Definition at line 65 of file live_parser.h.

Enumeration Type Documentation

◆ pf_live_parser_event_kind

Enumerator
PF_LIVE_PARSER_TICK 
PF_LIVE_PARSER_BAR 
PF_LIVE_PARSER_TIME 

Definition at line 25 of file live_parser.h.

Function Documentation

◆ pf_live_parser_abi_version()

PF_LIVE_PARSER_API uint32_t pf_live_parser_abi_version ( void )

References PF_LIVE_PARSER_API.

◆ pf_live_parse_message()

PF_LIVE_PARSER_API int pf_live_parse_message ( const char * message,
size_t message_size,
const char * config_json,
size_t config_size,
pf_live_parser_emit_v1_fn emit,
void * user )

References PF_LIVE_PARSER_API.