feat: 开源准备和功能优化
- 添加 MIT 许可证 - 创建完整的项目 README.md - 前端添加 GitHub 和 Twitter 链接 - 重构表名:copy_trading_accounts -> wallet_accounts - 更新 Account 实体类 - 添加数据库迁移脚本 V3 - 更新初始化脚本和文档 - 优化跟单订单类型:GTC -> FAK - 买入和卖出订单均使用 FAK (Fill-And-Kill) - 允许部分成交,未成交部分立即取消 - 提高跟单响应速度和价格匹配准确性
This commit is contained in:
@@ -13,7 +13,9 @@ import {
|
||||
AppstoreOutlined,
|
||||
TeamOutlined,
|
||||
LogoutOutlined,
|
||||
SettingOutlined
|
||||
SettingOutlined,
|
||||
GithubOutlined,
|
||||
TwitterOutlined
|
||||
} from '@ant-design/icons'
|
||||
import type { MenuProps } from 'antd'
|
||||
import type { ReactNode } from 'react'
|
||||
@@ -172,12 +174,30 @@ const Layout: React.FC<LayoutProps> = ({ children }) => {
|
||||
<div style={{ color: '#fff', fontSize: '18px', fontWeight: 'bold' }}>
|
||||
PolyHermes
|
||||
</div>
|
||||
<Button
|
||||
type="text"
|
||||
icon={<MenuOutlined />}
|
||||
style={{ color: '#fff' }}
|
||||
onClick={() => setMobileMenuOpen(true)}
|
||||
/>
|
||||
<div style={{ display: 'flex', alignItems: 'center', gap: '12px' }}>
|
||||
<a
|
||||
href="https://github.com/WrBug/PolyHermes"
|
||||
target="_blank"
|
||||
rel="noopener noreferrer"
|
||||
style={{ color: '#fff', fontSize: '18px' }}
|
||||
>
|
||||
<GithubOutlined />
|
||||
</a>
|
||||
<a
|
||||
href="https://x.com/quant_tr"
|
||||
target="_blank"
|
||||
rel="noopener noreferrer"
|
||||
style={{ color: '#fff', fontSize: '18px' }}
|
||||
>
|
||||
<TwitterOutlined />
|
||||
</a>
|
||||
<Button
|
||||
type="text"
|
||||
icon={<MenuOutlined />}
|
||||
style={{ color: '#fff' }}
|
||||
onClick={() => setMobileMenuOpen(true)}
|
||||
/>
|
||||
</div>
|
||||
</Header>
|
||||
<Content style={{
|
||||
padding: '12px 8px',
|
||||
@@ -225,13 +245,34 @@ const Layout: React.FC<LayoutProps> = ({ children }) => {
|
||||
height: '64px',
|
||||
display: 'flex',
|
||||
alignItems: 'center',
|
||||
justifyContent: 'center',
|
||||
justifyContent: 'space-between',
|
||||
padding: '0 16px',
|
||||
color: '#fff',
|
||||
fontSize: '18px',
|
||||
fontWeight: 'bold',
|
||||
flexShrink: 0
|
||||
}}>
|
||||
PolyHermes
|
||||
<span>PolyHermes</span>
|
||||
<div style={{ display: 'flex', gap: '12px' }}>
|
||||
<a
|
||||
href="https://github.com/WrBug/PolyHermes"
|
||||
target="_blank"
|
||||
rel="noopener noreferrer"
|
||||
style={{ color: '#fff', fontSize: '16px' }}
|
||||
title="GitHub"
|
||||
>
|
||||
<GithubOutlined />
|
||||
</a>
|
||||
<a
|
||||
href="https://x.com/quant_tr"
|
||||
target="_blank"
|
||||
rel="noopener noreferrer"
|
||||
style={{ color: '#fff', fontSize: '16px' }}
|
||||
title="Twitter"
|
||||
>
|
||||
<TwitterOutlined />
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
<Menu
|
||||
mode="inline"
|
||||
|
||||
Reference in New Issue
Block a user