Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
sting_bo committed Dec 23, 2023
1 parent e2264f3 commit c878af5
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 7 deletions.
15 changes: 11 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,14 +39,21 @@ $order = new Order($uuid, $oid, $symbol, $transaction, $volume, $price);
```php
return [
'mengine' => [
// Transaction types, not to be changed
// Transaction types, not subject to change.
'transaction' => [
'buy',
'sell',
],
// Precision, can be changed
'accuracy' => 8, //default
'test2usdt_accuracy' => 4, // Set precision for the trading pair, if not set, use accuracy

// Default precision, can be changed.
'accuracy' => 8,
// If the precision for the trading pair is set, use it; otherwise, take the default accuracy.
'abc2usdt_accuracy' => 6, // Example of a trading pair
'test2usdt_accuracy' => 7, // Example of a trading pair

// If strict mode is set to true, it will validate that the decimal places of the transaction volume or price must be less than the configured length, otherwise the order will fail.
// If strict mode is set to false, the data will be truncated to the configured decimal places length.
'strict_mode' => false,
],
];
```
Expand Down
13 changes: 10 additions & 3 deletions README_CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,16 @@ return [
'buy',
'sell',
],
// 精度,可更改
'accuracy' => 8, //default
'test2usdt_accuracy' => 4, //设置交易对精度则使用,没有则取accuracy

// 默认精度,可更改
'accuracy' => 8,
// 设置了交易对精度则使用,没有则取accuracy
'abc2usdt_accuracy' => 6, // 交易对示例
'test2usdt_accuracy' => 7, // 交易对示例

// 如果严格模式为true,会校验交易量或价格的小数位长度必须小于设置的长度,否则会下单失败
// 如果严格模式为false,则会截断数据到设定的小数位长度
'strict_mode' => false,
],
];

Expand Down

0 comments on commit c878af5

Please sign in to comment.