forked from viabtc/viabtc_exchange_server
-
Notifications
You must be signed in to change notification settings - Fork 0
/
me_message.h
30 lines (22 loc) · 786 Bytes
/
me_message.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
/*
* Description:
* History: [email protected], 2017/04/08, create
*/
# ifndef _ME_MESSAGE_H_
# define _ME_MESSAGE_H_
# include "me_config.h"
# include "me_market.h"
int init_message(void);
int fini_message(void);
enum {
ORDER_EVENT_PUT = 1,
ORDER_EVENT_UPDATE = 2,
ORDER_EVENT_FINISH = 3,
};
int push_balance_message(double t, uint32_t user_id, const char *asset, const char *business, mpd_t *change);
int push_order_message(uint32_t event, order_t *order, market_t *market);
int push_deal_message(double t, const char *market, order_t *ask, order_t *bid, mpd_t *price, mpd_t *amount,
mpd_t *ask_fee, mpd_t *bid_fee, int side, uint64_t id, const char *stock, const char *money);
bool is_message_block(void);
sds message_status(sds reply);
# endif