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.
87 lines
4.0 KiB
87 lines
4.0 KiB
3 years ago
|
<Window x:Class="Binance.FastPlaceOrder.MainWindow"
|
||
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||
|
xmlns:local="clr-namespace:Binance.FastPlaceOrder"
|
||
|
mc:Ignorable="d"
|
||
|
Title="币安快速下单工具" Height="450" Width="1024">
|
||
|
<Grid>
|
||
|
<Grid.ColumnDefinitions>
|
||
|
<ColumnDefinition Width="250"/>
|
||
|
<ColumnDefinition/>
|
||
|
</Grid.ColumnDefinitions>
|
||
|
<GroupBox Header="操作区">
|
||
|
<GroupBox.Resources>
|
||
|
<Style TargetType="TextBox">
|
||
|
<Setter Property="Height" Value="25"/>
|
||
|
<Setter Property="VerticalContentAlignment" Value="Center"/>
|
||
|
</Style>
|
||
|
<Style TargetType="TextBlock">
|
||
|
<Setter Property="HorizontalAlignment" Value="Right"/>
|
||
|
<Setter Property="VerticalAlignment" Value="Center"/>
|
||
|
<Setter Property="Margin" Value="0,0,5,0"/>
|
||
|
</Style>
|
||
|
</GroupBox.Resources>
|
||
|
<Grid>
|
||
|
<Grid.ColumnDefinitions>
|
||
|
<ColumnDefinition Width="70"/>
|
||
|
<ColumnDefinition/>
|
||
|
</Grid.ColumnDefinitions>
|
||
|
<Grid.RowDefinitions>
|
||
|
<RowDefinition Height="30"/>
|
||
|
<RowDefinition Height="30"/>
|
||
|
<RowDefinition Height="30"/>
|
||
|
<RowDefinition Height="30"/>
|
||
|
<RowDefinition Height="30"/>
|
||
|
<RowDefinition Height="30"/>
|
||
|
<RowDefinition Height="40"/>
|
||
|
<RowDefinition Height="40"/>
|
||
|
<RowDefinition Height="40"/>
|
||
|
</Grid.RowDefinitions>
|
||
|
|
||
|
<TextBlock Text="APIKey"/>
|
||
|
<TextBox Grid.Column="1"/>
|
||
|
|
||
|
<TextBlock Text="Secret" Grid.Row="1"/>
|
||
|
<TextBox Grid.Column="1" Grid.Row="1"/>
|
||
|
|
||
|
<TextBlock Text="交易对" Grid.Row="2"/>
|
||
|
<TextBox Grid.Column="1" Grid.Row="2"/>
|
||
|
|
||
|
<TextBlock Text="订单类型" Grid.Row="3"/>
|
||
|
<TextBox Text="市价单" Grid.Column="1" Grid.Row="3" IsEnabled="False"/>
|
||
|
|
||
|
<TextBlock Grid.Row="4" TextAlignment="Center">
|
||
|
<Run Text="价格止损"/>
|
||
|
<LineBreak/>
|
||
|
<Run Text="比例(%)"/>
|
||
|
</TextBlock>
|
||
|
<TextBox Grid.Column="1" Grid.Row="4" Width="50" HorizontalAlignment="Left"/>
|
||
|
|
||
|
<TextBlock Text="开仓杠杆(x)" Grid.Row="5"/>
|
||
|
<StackPanel Grid.Column="1" Grid.Row="5" Orientation="Horizontal">
|
||
|
<TextBox Width="50" />
|
||
|
<Button Content="修改" Height="25" Padding="5,0" Margin="5,0,0,0"/>
|
||
|
</StackPanel>
|
||
|
|
||
|
<Button Grid.Row="6" Grid.ColumnSpan="2" Content="开多(Num1)" Height="35" Background="Green" Foreground="White"/>
|
||
|
<Button Grid.Row="7" Grid.ColumnSpan="2" Content="开空(Num2)" Height="35" Background="Red" Foreground="White"/>
|
||
|
<Button Grid.Row="8" Grid.ColumnSpan="2" Content="平仓(Num0)" Height="35" />
|
||
|
</Grid>
|
||
|
</GroupBox>
|
||
|
<DataGrid Grid.Column="1">
|
||
|
<DataGrid.Columns>
|
||
|
<DataGridTextColumn Header="订单号" Width="130"/>
|
||
|
<DataGridTextColumn Header="方向" Width="50"/>
|
||
|
<DataGridTextColumn Header="类型" Width="80"/>
|
||
|
<DataGridTextColumn Header="状态" Width="80"/>
|
||
|
<DataGridTextColumn Header="成交价" Width="80"/>
|
||
|
<DataGridTextColumn Header="成交量" Width="80"/>
|
||
|
<DataGridTextColumn Header="成交时间" Width="80"/>
|
||
|
<DataGridTextColumn Header="平仓利润" Width="*"/>
|
||
|
</DataGrid.Columns>
|
||
|
</DataGrid>
|
||
|
</Grid>
|
||
|
</Window>
|