[feat] add ledger compiler support for huobi provider #95
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
目前
double-entry-generator
只支持beancount
后端,增加对ledger
后端的支持. 针对不同的provider
, 后端需要有对应的输出模板,已有的输出模板包括:本次PR 增加
火币模板1
,火币模板2
,火币卖出模板
的支持Modification
概括:
compiler/ledger
package 增加huobi
的支持test
目录增加huobi
-ledger
相关test scriptexample
目录增加huobi
-ledger
相关的生成文件.Makefile
增加新的 test targetMotivation and Context
#92
Dependencies
None
Type of change
Please delete options that are not relevant.
How has this been tested?
新增一个 end-to-end 测试脚本, 测试
huobi
-ledger
后端生成功能:对生成的 ledger 文件进行语法与格式校验:
ledger -f test/output/test-huobi-output.ledger bal
: passmake test
: all tests pass