/*
 * ac_concentration_batch.h - copybook for ac_concentration_batch (XA client).
 * Struct + helper prototype #include'd by the batch; kept in dbio/ so both ecpg
 * (-I dbio) and gcc (CFLAGS -I dbio) resolve it. The helper is defined in the batch TU.
 */
#ifndef AC_CONCENTRATION_BATCH_H
#define AC_CONCENTRATION_BATCH_H

typedef struct {
    char biz_date[16];
    long top_sum;    /* 상위 N 매입 금액 합 */
    long total;      /* 당일 총 매입 금액 */
    long ratio_bps;  /* 집중도 = top_sum/total (bps) */
} ac_conc_ctx_t;

long acb_conc_ratio_bps(long top_sum, long total);

#endif /* AC_CONCENTRATION_BATCH_H */
