분류 전체보기824 2022년 30주차 '사내 독서모임 시작' Weekly growth 클린 코더스 스터디 11강 ~ 15강을 듣고 정리하여 공유했다. 월요일 스터디 예정. 주식 자동매매 서버 구축 일단 틀은 잡았는데 기능 구현은 안되어 있다. 레퍼런스 코드만 작성되어 있고 앞으로 천천히 리팩터링 할 생각이다. TDD로 진행할 것이고 데이터베이스는 노션을 활용할 예정이다. 평일 낮에는 회사 업무로 작업을 할 수 없기 때문에 매매를 테스트 할 수 없다.. 그래서 해외시장으로 바꿔야할지 고민 중! 아 참고로 서버 이름은 '주식 매매 고양이 덕순'이다. GitHub - Daco2020/Stock-Trading-Cat-DEOKSOON: Deoksoon is a cat that trades stocks on behalf of users. Deoksoon is a cat th.. 2022. 7. 25. websockets _ Python 으로 비트코인 실시간 시세 가져오기 (feat. twelvedata) 주식이나 암호화폐는 실시간으로 거래가 이루어지기 때문에 시세 변동 또한 실시간으로 이루어진다. 때문에 정확한 정보를 고객에게 전달하기 위해서는 시장의 실시간 데이터를 가져와 가공 및 분석하여 고객에게 제공할 수 있어야 한다. 이번 글에서는 누구나 쉽게 따라할 수 있는, Python과 websockets으로 비트코인 시세 가져오기를 구현해보겠다. twelvedata 먼저 데이터를 어디서 가져올지 정해야하는데 이 글에서는 twelvedata를 사용하겠다. twelvedata는 재무데이터를 제공해주는 여러 곳 중 하나인데, 공식문서가 비교적 쉽게 설명되어있고 웹소켓을 간단히 테스트할 수 있는 웹페이지도 제공해주기 때문에 초보자가 접근하기 쉽다. 참고로 무료 계정에서는 최대 8개의 심볼(종목)을 수신받을 수 있.. 2022. 7. 24. Check the exam The first input array is the key to the correct answers to an exam, like ["a", "a", "b", "d"]. The second one contains a student's submitted answers. The two arrays are not empty and are the same length. Return the score for this array of answers, giving +4 for each correct answer, -1 for each incorrect answer, and +0 for each blank answer, represented as an empty string (in C the space characte.. 2022. 7. 24. What is between? Complete the function that takes two integers (a, b, where a [1, 2, 3, 4] Solution: def between(a,b): number = get_number_generater(range(a,b+1)) return [next(number) for i in range(b+1-a)] def get_number_generater(range): for i in range: yield i Solve it using a generator. It can .. 2022. 7. 24. Replace With Alphabet Position Welcome. In this kata you are required to, given a string, replace every letter with its position in the alphabet. If anything in the text isn't a letter, ignore it and don't return it. "a" = 1, "b" = 2, etc. Example alphabet_position("The sunset sets at twelve o' clock.") Should return "20 8 5 19 21 14 19 5 20 19 5 20 19 1 20 20 23 5 12 22 5 15 3 12 15 3 11" ( as a string ) Solution: from typin.. 2022. 7. 22. Anagram Detection An anagram is the result of rearranging the letters of a word to produce a new word (see wikipedia). Note: anagrams are case insensitive Complete the function to return true if the two arguments given are anagrams of each other; return false otherwise. Examples "foefet" is an anagram of "toffee" "Buckethead" is an anagram of "DeathCubeK" Solution: def is_anagram(test, original): if len(test) < l.. 2022. 7. 21. 이전 1 ··· 65 66 67 68 69 70 71 ··· 138 다음