본문 바로가기

카테고리 없음

2020-11-17 08시 개발자 글 모음 | "Python API로 Binance " 외 5개 이야기

페이스북의 공유 디버거 및 그래프 API 탐색기 테스트 by 심재운

  • 신반포 방배 서리풀 내곡 육아지원 센터 위치 및 시간제 보육 신청방법


Kubeflow pipeline 과 TFX 메모 by 조병욱


    [Go언어] for 루프에서 포인터 사용 시 동일 객체 참조 문제 by 최용호

    • 위 코드에서 sampleDataSlice는 slice 이기 때문에 for 루프의 변수로 인덱스와 현 루프의 객체를 변수에 할당한다
    • 그러므로 변수에 할당되는 값은 계속 변경되지만 storeOne 함수로 전달되는 변수의 주소는 동일하기 때문에 storeOne 함수 안에서 사용한 변수는 결과적으로 제일 마지막에 지역변수에 할당했던 객체를 동일하게 가르키게 된다
    • slice가 아닌 map인 경우에는 아래와 같이 for 루프의 지역변수가 아닌 for 루프 안에서 지역변수를 선언하게 되면 반복될 때마다 새로운 지역변수를 사용하기 때문에 참조 문제를 해결할 수 있다


    [k8s] DaemonSet 실행 시 Pending by 최용호 about Node,Kubernetes

    • internal example-d7jf6 1/1 Running 0 3d16h 10
    • Non-terminated Pods: (17 in total) Namespace Name CPU Requests CPU Limits Memory Requests Memory Limits AGE --------- ---- ------------ ---------- --------------- ------------- --- develop grafana-865f978f49-v5jbf 120m (6%) 200m (10%) 256Mi (9%) 400Mi (14%) 3d23h develop redis-79b5f79b8f-gqgxh 0 (0%) 0 (0%) 0 (0%) 0 (0%) 5d7h develop vault-ui-65696ddb59-skc82 0 (0%) 0 (0%) 0 (0%) 0 (0%) 5d7h kube-system aws-node-p6rf8 10m (0%) 0 (0%) 0 (0%) 0 (0%) 10d kube-system coredns-685bd65d99-5t7tk 100m (5%) 0 (0%) 70Mi (2%) 170Mi (6%) 10d kube-system coredns-685bd65d99-9p695 100m (5%) 0 (0%) 70Mi (2%) 170Mi (6%) 10d kube-system kube-proxy-zm724 100m (5%) 0 (0%) 0 (0%) 0 (0%) 10d
    • ) Resource Requests Limits -------- -------- ------ cpu 1450m (75%) 1900m (98%) memory 2572Mi (96%) 4140Mi (154%) ephemeral-storage 0 (0%) 0 (0%) hugepages-1Gi 0 (0%) 0 (0%) hugepages-2Mi 0 (0%) 0 (0%) attachable-volumes-aws-ebs 0 0


    어떻게 성장할까?? by 임준규

    • 이런 많은 것을 한 것이 모두 다 성장으로 이루어지지 않았고
    • 이런 것들이 어떻게 성장할 지 고민을 많이한 지표가 아닌가 생각해본다
    • 그런 과정 속에서 무언가를 이루어 낸 것이 있느냐라는 물음에는 대답을 할 수 없을 것 같다


    Python API로 Binance 마진거래 수익률 계산하기 by 장성만 about Python

    • strftime('%Y-%m-%d %H:%M:%S') isBuyer=-1 if element['isBuyer'] == True else 1 transactionInDollar=float(element['price'])*float(element['qty']) totalQuantityInBTC -= isBuyer*float(element['qty']) t
    • 5)]) totalExpenseInDollar += isBuyer*transactionInDollar commissionInDollar = float(element['commission'])*float(element['price']) if element['commissionAsset'] == "BTC" else float(element['commission']) totalQuantityInBTC += isBuyer*float(element['commission']) if element['commissionAsset'] == "BTC" else 0 t
    • 001 expectedProfit=totalExpenseInDollar+CurrentExpPrice-sellFee averageBtcPrice=-1*totalExpenseInDollar/totalQuantityInBTC print("TotalExpenseInDollar: "+str(totalExpenseInDollar)+" USDT") print("TotalQuantityInBTC: "+str(totalQuantityInBTC)+" BTC") print("CurrentTicker(BTC/USDT): "+str(ticker['close'])+" USDT") print("AverageBtcPrice: "+str(averageBtcPrice)+" USDT") print("CurrentExpPrice: "+str(CurrentExpPrice)+" USDT") print("DifferencesinDolloar: "+str(totalExpenseInDollar+CurrentExpPrice)+" USDT") print("Sell fee: "+str(sellFee)+" USDT") print("Expected Profit:" + str(expectedProfit)+" USDT") print("Profit Percentage: "+str(expectedProfit/totalExpenseInDollar*-100)+" %") margin_iso = exchange