7 changed files with 167 additions and 1 deletions
@ -0,0 +1,9 @@ |
|||
<Application x:Class="Binance.FastPlaceOrder.App" |
|||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
|||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
|||
xmlns:local="clr-namespace:Binance.FastPlaceOrder" |
|||
StartupUri="MainWindow.xaml"> |
|||
<Application.Resources> |
|||
|
|||
</Application.Resources> |
|||
</Application> |
@ -0,0 +1,17 @@ |
|||
using System; |
|||
using System.Collections.Generic; |
|||
using System.Configuration; |
|||
using System.Data; |
|||
using System.Linq; |
|||
using System.Threading.Tasks; |
|||
using System.Windows; |
|||
|
|||
namespace Binance.FastPlaceOrder |
|||
{ |
|||
/// <summary>
|
|||
/// Interaction logic for App.xaml
|
|||
/// </summary>
|
|||
public partial class App : Application |
|||
{ |
|||
} |
|||
} |
@ -0,0 +1,10 @@ |
|||
using System.Windows; |
|||
|
|||
[assembly: ThemeInfo( |
|||
ResourceDictionaryLocation.None, //where theme specific resource dictionaries are located
|
|||
//(used if a resource is not found in the page,
|
|||
// or application resource dictionaries)
|
|||
ResourceDictionaryLocation.SourceAssembly //where the generic resource dictionary is located
|
|||
//(used if a resource is not found in the page,
|
|||
// app, or any theme specific resource dictionaries)
|
|||
)] |
@ -0,0 +1,10 @@ |
|||
<Project Sdk="Microsoft.NET.Sdk"> |
|||
|
|||
<PropertyGroup> |
|||
<OutputType>WinExe</OutputType> |
|||
<TargetFramework>net6.0-windows</TargetFramework> |
|||
<Nullable>enable</Nullable> |
|||
<UseWPF>true</UseWPF> |
|||
</PropertyGroup> |
|||
|
|||
</Project> |
@ -0,0 +1,86 @@ |
|||
<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> |
@ -0,0 +1,28 @@ |
|||
using System; |
|||
using System.Collections.Generic; |
|||
using System.Linq; |
|||
using System.Text; |
|||
using System.Threading.Tasks; |
|||
using System.Windows; |
|||
using System.Windows.Controls; |
|||
using System.Windows.Data; |
|||
using System.Windows.Documents; |
|||
using System.Windows.Input; |
|||
using System.Windows.Media; |
|||
using System.Windows.Media.Imaging; |
|||
using System.Windows.Navigation; |
|||
using System.Windows.Shapes; |
|||
|
|||
namespace Binance.FastPlaceOrder |
|||
{ |
|||
/// <summary>
|
|||
/// Interaction logic for MainWindow.xaml
|
|||
/// </summary>
|
|||
public partial class MainWindow : Window |
|||
{ |
|||
public MainWindow() |
|||
{ |
|||
InitializeComponent(); |
|||
} |
|||
} |
|||
} |
Loading…
Reference in new issue