Giter VIP home page Giter VIP logo

upbit3ticrule's Introduction

Upbit3TicRule

๐Ÿ’กย Background

๋ชฉ์  ๋ฐ ๊ณ„๊ธฐ

  • ์—…๋น„ํŠธ Open API๋ฅผ ์ด์šฉํ•˜์—ฌ ๋–จ์–ด์ง์„ ์‹ค์‹œ๊ฐ„์œผ๋กœ ๊ฐ์‹œํ•˜๊ณ  ์•Œ๋ฆผ์„ ๋ณด๋‚ด๊ณ ์ž ๋งŒ๋“ค๊ฒŒ๋จ
  • FCM์„ ์‚ฌ์šฉํ•ด๋ณด๊ณ , Swift์—์„œ ๋„คํŠธ์›Œํฌ ํ†ต์‹ ์„ ์ด์šฉํ•ด๋ณด๊ธฐ ์œ„ํ•ด ๊ฐœ๋ฐœํ•˜๊ฒŒ๋จ

๐Ÿ› ย Development

  • Back-end

OracleCloud, Java(SpringBoot)

  • Front-end

Swift

ํŒŒ์ผ๊ตฌ์กฐ

  • DummyJson:
    • Networkํ†ต์‹ ์„ ํ•˜๊ธฐ ์ „์— ์‚ฌ์šฉํ•  JSON data์„ ๊ด€๋ฆฌํ•˜๋Š” ํด๋”
  • Models
    • realm์— ์ €์žฅ๋  ๋ฐ์ดํ„ฐ๋ฅผ ๊ด€๋ฆฌํ•˜๊ณ , struct ํƒ€์ž…์˜ ํŒŒ์ผ๋“ค์„ ๊ด€๋ฆฌํ•จ
  • View
    • Controller์—์„œ ์‚ฌ์šฉ๋˜๋Š” TableView์˜ Cell, CollectionView์˜ Cell, CustomView ๋“ฑ View์™€ ๊ด€๋ จ๋œ ํŒŒ์ผ์„ ๊ด€๋ฆฌํ•ฉ๋‹ˆ๋‹ค.
  • Service
    • Networkํ†ต์‹ ๊ณผ ๊ด€๋ จ๋œ ํŒŒ์ผ๋“ค์„ ๊ด€๋ฆฌํ•จ.
  • Controller
    • realm data๋ฅผ View์™€ ์—ฐ๊ฒฐํ•˜๋Š” ๋ถ€๋ถ„๊ณผ ํด๋ฆญ, swipe๋“ฑ ์ด๋ฒคํŠธ๋ฅผ ๋‹ด๋‹นํ•จ.
  • Backup
    • ์ž„์‹œ ๋ฐฑ์—…ํด๋” ํŒŒ์ผ
  • Utils
    • ๋‚ ์งœ, Timer, IAP, AppStoreReview, Alert ๋“ฑ Util๊ณผ ๊ด€๋ จ๋œ ํŒŒ์ผ์„ ๋‹ด๋‹นํ•ฉ๋‹ˆ๋‹ค.

Tech Stack

  • Back-end
  • Front-end
    • Swift
    • Realm

Features & Screens

์‹œ์„ธ**, ์•Œ๋žŒ์„ค์ • ํŽ˜์ด์ง€**

แ„†แ…ฆแ„‹แ…ตแ†ซ แ„‹แ…กแ†ฏแ„…แ…กแ†ท แ„‰แ…ฅแ†ฏแ„Œแ…ฅแ†ผ

  • SpringBoot์—์„œ ์—…๋น„ํŠธ OpenAPI ๊ฐ€๊ณตํ•ด์„œ ์ „๋‹ฌํ•˜์˜€์Šต๋‹ˆ๋‹ค.
  • ์ฝ”์ธ ์ •๋ณด๋ฅผ FCM์˜ Topic์„ ์ด์šฉํ•˜์—ฌ ๋“ฑ๋กํ•˜์˜€์Šต๋‹ˆ๋‹ค.
  • ํ•˜๋ฝํญ์˜ ์ •๋ณด๋ฅผ ๋ณผ ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.
  • ์•Œ๋žŒ์„ ๋ฐ›์„ ์ฝ”์ธ๋“ค์„ ์„ค์ • ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.

์•Œ๋žŒ ์ด๋ ฅ, ์ž์‚ฐ ๋ชฉ๋ก

แ„‹แ…กแ†ฏแ„…แ…กแ†ท แ„‹แ…ตแ„…แ…งแ†จ

  • Upbit์˜ AccessKey์™€ SecretKey์„ ์ž…๋ ฅํ•˜๋ฉด ์ž์‚ฐ ์ •๋ณด๋ฅผ ๋ณผ ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.
  • ์ „๋‹ฌ ๋ฐ›์€ ์•Œ๋žŒ๋“ค์„ ๋ณผ ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.
  • ์•Œ๋žŒ์ด๋ ฅ์˜ ๊ฒฝ์šฐ NotificationCenter์—์„œ ์•Œ๋žŒ๋ชฉ๋ก์„ ์บ์น˜ํ•˜์—ฌ Realm์— ์ €์žฅํ•˜์˜€์Šต๋‹ˆ๋‹ค.

๐Ÿ›ซย Result

  • ํ˜‘์—…์„ ์ฒ˜์Œ์œผ๋กœ ์ง„ํ–‰ํ•œ ํ”„๋กœ์ ํŠธ์ธ๋ฐ, ์ „๋‹ฌ๋ฐ›์€ json ๋ฐ์ดํ„ฐ๋ฅผ ์ •ํ™•ํ•˜๊ฒŒ ์š”์ฒญํ•˜๋Š”๊ฒŒ ์–ด๋ ค์› ๋‹ค.

  • ์ƒ๋Œ€๋ฐฉ์—๊ฒŒ ์ƒ๊ฐํ•œ ๋กœ์ง์„ ์ดํ•ด์‹œํ‚ค๊ธฐ๊ฐ€ ์–ด๋ ค์› ๊ณ , ํ๋ฆ„๋„๊นŒ์ง€ ๊ทธ๋ ค์„œ ์ œ๊ณต์„ ํ–ˆ๋‹ค.

  • ์—…๋น„ํŠธ Open API์™€ ํ†ต์‹ ํ•˜๊ธฐ ์œ„ํ•ด์„œ Enum์„ ์‚ฌ์šฉํ–ˆ๋Š”๋ฐ URLSession์„ ์ด์šฉํ–ˆ๋Š”๋ฐ, Enum์œผ๋กœ ์–ด๋–ค API๋ฅผ ์š”์ฒญ ํ•  ์ˆ˜ ์žˆ์Œ์„ ์•Œ ์ˆ˜ ์žˆ์—ˆ๋‹ค.

  • Enum๊ณผ API ์š”์ฒญ ์ฃผ์†Œ ์˜ˆ์‹œ

import Foundation

enum NetworkAPI {
    case market(MarketAPI)
}

extension NetworkAPI {
    var baseURL: String {
        return "http://152.67.217.201:8080"
    }
    
    var path: String {
        switch self {
        case .market(let api): return api.path
        }
    }
}

enum MarketAPI {
    case allMarkets
}

extension MarketAPI {
    var path: String {
        switch self {
        case .allMarkets:
            return "/market/all"
        }
    }
}

upbit3ticrule's People

Contributors

hoonitang avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.