목록주식 (3)
Creative Code
※예측 결과 import requestsimport pandas as pdimport numpy as npfrom sklearn.preprocessing import MinMaxScalerfrom tensorflow.keras.models import Sequentialfrom tensorflow.keras.layers import LSTM, Densefrom sklearn.model_selection import train_test_splitimport osimport matplotlib.pyplot as pltfrom datetime import datetime# 1. Bithumb API 특정 코인의 최근 100일 일봉 데이터 가져오기def fetch_last_100_days(coin_name,mi..
import requestsimport pandas as pdimport numpy as npimport timefrom datetime import datetime, timedeltafrom sklearn.preprocessing import MinMaxScalerfrom tensorflow.keras.models import Sequentialfrom tensorflow.keras.layers import LSTM, Densefrom pytz import timezonedef fetch_bithumb_data(coin_symbol, save_path): """ 특정 코인의 1분 간격 데이터를 최근 3일 간 수집하여 CSV로 저장 """ base_url = "https://api...
#include #include #include #include #include using namespace std; int main() { int buy = 0; //주식 구매수량 long long buy_price = 0; // 구매한 주식의 가치 long long sum; //현금보유량 + 주식의가치(총가치) srand((unsigned int)time(NULL)); cout > Money; long long save = Money; bool check = false; cout > before_price; sum = Money + (long long)buy * (long long)(buy_price); cout