Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | ||||
4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 | 12 | 13 | 14 | 15 | 16 | 17 |
18 | 19 | 20 | 21 | 22 | 23 | 24 |
25 | 26 | 27 | 28 | 29 | 30 | 31 |
Tags
- PyQt5
- sqlite
- pandas
- PER
- PyQt
- Unity
- 맛집
- node.js
- 라즈베리파이
- MS-SQL
- python
- tensorflow
- urllib
- GIT
- javascript
- 함수
- 다이어트
- IOS
- port
- MySQL
- swift
- ubuntu
- 유니티
- Excel
- 날짜
- Linux
- 리눅스
- ASP
- mssql
- flutter
Archives
목록2024/08/25 (1)
아미(아름다운미소)
미체결 날짜형식을 현재시간과 비교해서 1분 경과시 주문취소
import timefrom datetime import datetime, timedeltafrom PyQt5.QtCore import QThreadclass KiwoomAPI(QThread): def __init__(self): super().__init__() self.orders = [] # 미체결 주문을 저장할 리스트 # 현재 날짜를 가져오고 시간만 추가 current_date = datetime.now().strftime("%Y%m%d") self.orders.append({'id': '0082240', 'date': f'{current_date} 090844', 'type': '+매수'}) # 예제 주문 추가..
랭귀지/python
2024. 8. 25. 12:28