You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
458 B
24 lines
458 B
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
class ContractStrategy extends Model
|
|
{
|
|
//合约策略(止盈止损)
|
|
|
|
protected $table = 'contract_strategy';
|
|
protected $primaryKey = 'id';
|
|
protected $guarded = [];
|
|
|
|
protected $casts = [
|
|
'current_price' => 'real',
|
|
'tp_trigger_price' => 'real',
|
|
'sl_trigger_price' => 'real',
|
|
];
|
|
|
|
protected $attributes = [
|
|
'status' => 1,
|
|
];
|
|
}
|
|
|