/*
 * ac_fxweight_batch.h - copybook for ac_fxweight_batch (XA client).
 * KRW 가중 평균 환율 누산 구조체 + 헬퍼. Kept in dbio/ for -I resolution.
 */
#ifndef AC_FXWEIGHT_BATCH_H
#define AC_FXWEIGHT_BATCH_H

typedef struct {
    char biz_date[16];
    long num;       /* sum(rate_bps*krw) */
    long den;       /* sum(krw) */
    long avg_bps;   /* 가중 평균 */
} ac_fxw_ctx_t;

long acb_fxw_divide(long num, long den);

#endif /* AC_FXWEIGHT_BATCH_H */
