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.

60 lines
1.1 KiB

2 years ago
  1. import MyTable from "@/components/MyTable";
  2. import React, { FC } from "react";
  3. import clientApi from "@/package/SimpleTrade/api/client";
  4. import { Input } from "antd";
  5. const MT4History: FC = () => {
  6. const column = [
  7. {
  8. title: '订单号',
  9. dataIndex: 'ticket',
  10. align: 'center'
  11. },
  12. {
  13. title: '手数',
  14. dataIndex: 'volume',
  15. align: 'center'
  16. },
  17. {
  18. title: '开仓价格',
  19. dataIndex: 'open_price',
  20. align: 'center'
  21. },
  22. {
  23. title: '开仓时间',
  24. dataIndex: 'open_time',
  25. align: 'center'
  26. },
  27. {
  28. title: '平仓价格',
  29. dataIndex: 'close_price',
  30. align: 'center'
  31. },
  32. {
  33. title: '平仓时间',
  34. dataIndex: 'close_time',
  35. align: 'center'
  36. },
  37. ]
  38. const searchConfigList = [
  39. {
  40. key: 'login',
  41. slot: <Input placeholder="输入MT4账号" allowClear />,
  42. initialValue: '',
  43. }
  44. ]
  45. return (
  46. <div>
  47. <MyTable
  48. apiFun={clientApi.mt4_history}
  49. columns={column}
  50. rowKey="ticket"
  51. searchConfigList={searchConfigList}
  52. />
  53. </div>
  54. )
  55. }
  56. export default MT4History;