Get Started with Money Management - Lune Data

The concept of managing personal finances, though not new, presents an essential yet daunting task for many banking users. Even the most financially literate can struggle to stay on track. It demands consistency and regular tracking, tasks that many end consumers often find too inconvenient to tackle. Now more than ever, money management is crucial. Money, atopic often fraught with complex emotions, becomes even more daunting during times of economic instability. This unease, coupled with the uncertainty of how to effectively manage finances, can be overwhelming.

Yet, modern technological solutions offer a beacon of hope, enabling banking users to make wise decisions that lead to financial stability and the freedom they aspire to achieve. Lune’s Money Management Tools, backed by our data enrichment services, do precisely that. They assist banking users in tracking their spending and budgeting, granting them complete control over their finances. We've dedicated ourselves to understanding people's spending behaviors, leading to the development of a straightforward Money Management A PIanned SDK for banks and fintechs.

This product is thoughtfully designed to revolutionize how individuals and organizations manage their financial data. Unlike other personal finance management tools out there,Lune's offerings go a step further than just tracking and analyzing or neatly labeling expenses. The way we look at it is that the Money Management API andSDK is a personalized solution designed to empower users with comprehensive personal finance management capabilities.

For banking users, this could mean gaining an understanding of their transactions, and transforming data into actionable insights, leading to more informed financial decisions and ultimately enabling them to plan their future as they envision it. Knowing the importance of personal finance management in people's daily lives, we've developed these tools to cater to the diverse needs of B2B and B2C users.

For everyday individuals, this means using Lune's tools to track monthly expenses, thereby gaining control over their spending habits, and for financial institutions, these tools help provide enhanced services to their clients, ultimately empowering financial freedom.

Lune's Money Management Tools are engineered to add value at every level. With a focus on user-friendly interfaces and data-driven results, these tools stand as a testament to Lune's commitment to elevating personal finance management.

Android SDK

An SDK to embed Lune enrichment views into your Android mobile apps.

Lune Android SDK is a Kotlin library, distributed as a AAR file.
To get started follow the below guide.

Get Started
Home Screen

How Money Management SDK Works

The concept is simple, Lune's Money Management SDK, a comprehensive finance tracker API, is about handling your finances. Which means budgeting your income, controlling spending, saving for future goals, and investing wisely to grow your wealth. It's about making informed financial decisions to ensure stability and growth. The SDK is designed to fit effortlessly into banks' existing app framework, providing advanced money management features without the complexity typically associated with financial technologies. 

We recognize the importance of not disrupting the ongoing operations of financial institutions, which is why we've ensured that the integration process of the SDK is streamlined for ease. Once we start on boarding our clients, the process involves a few simple steps that blend into your app's architecture, making it possible to start leveraging its features without extensive coding or development time.  

Once integrated, the Money Management SDK serves as a multi-faceted tool for personal finance. It brings clarity to financial data, transforming raw numbers into insightful, user-friendly information. Our clients can expect a space where users can see their spending broken down into categories and sub-categories, track their expenses over time, and get a clear picture of their financial health at a glance. If you're a developer or part of the product team at a financial institution, expect to be able to offer users amore engaging and informative experience.  

Integrating Lune's Finance Management SDK erases the fog of financial uncertainty. It's a seamless, intuitive addition to users' daily digital landscape, cutting out the hassle of external app downloads or friction points. We think of it as a direct bridge to smarter financial decisions, offering clarity and control right within their banking apps. Simple, smart, and intuitive, that's the promise of Lune's SDK.

Integration

Download and install SDK  .aar  file with all dependencies into your android project.

1. Install SDK AAR File

1.1 Download SDK AAR File

1.2 Install AAR file into your android project

  1. Switch project view to Project
  2. Locate libs folder to add external Android libraries to your app
Instal AAR File

1.3 Copy SDK AAR file into libs folder

  1. Now we can import the library as a project dependency.
SDK AAR File

2. Install SDK Dependencies

Add the following dependencies into app-level build.gradle

dependencies {
  //LuneSdk
  implementation files("libs/LuneSDK-debug.aar")

  //flowlayout
  implementation "com.google.accompanist:accompanist-flowlayout:0.20.0"

  //pie-chart
  implementation "ir.mahozad.android:pie-chart:0.7.0"

  //coil
  implementation "io.coil-kt:coil-compose:2.0.0"
}

3. Initialization

To initialize the SDK, you simply have to create an instance of LuneKitManager that would be used across your app. The constructor accepts optional arguments for global customization of the views in the SDK.

val luneKitManager = LuneKitManager(
        primaryColor = Color(0xFF2274A5), //optional
        borderRadius = 5.dp, //optional
        locale = "en" //optional
    )

LuneKitManager Class Configurations

Parameter

Type

primaryColor

Color

borderRadius

Dp

enFontFamily

FontFamily

arFontFamily

FontFamily

locale

String

With the instance in hand, luneKitManager, in this example, you can embed any of the Lune views into your app by calling the method(s) responsible for such views.



We'd look at each view in detail now.

Budget Form

The BudgetForm allows the user to set up a new budget. To use this view, just call the BudgetForm method of your LuneKitManager instance as shown in the example below.


Surface(modifier = Modifier.fillMaxSize()) {
                    luneKitManager.BudgetForm(){ amount ->
                        Log.d("amountConfirmed", "onCreate: $amount")
                    }
                }
Budget form SDK

BudgetForm parameters

Parameter

Type

Description

primaryColor

Color

Component primary color

contentColor

Color

Component content color

fontFamily

FontFamily

Component text font family

callback

(budget: String) → Unit

A callback is called when confirm button is clicked

Budget Summary

The BudgetSummaryView shows the user's overall spend in contrast to his budget and his expected spend per time. To use this view, just call the BudgetSummaryView method of your LuneKitManager instance as shown in the example below. The method takes a BudgetSummary object.

val budgetSummaryData = BudgetSummary(
                budgetedAmount = 10000.0,
                spentAmount = 5000.0,
                expectedSpendValue = 5000.00,
                expectedSpendPercent = 0.5
            )

Surface {
	luneKitManager.BudgetSummaryView(data = budgetSummaryData)
}
Budget Summary

BudgetSummaryView parameters

Parameter

Type

Description

data

BudgetSummary?

Data to be passed to the component

primaryColor

Color

Component primary color

borderRadius

Dp

Component card border radius

fontFamily

FontFamily

Component text font family

Category Spend List View

The CategorySpendListView shows the user's spend per each category, the user can modify specified budged for each category. To use this view, just call the CategorySpendListView method of your LuneKitManager instance as shown in the example below.

val categories = ArrayList<CategoryBudgetSpend>()

            categories.add(
                CategoryBudgetSpend(
                    categoryId = "1",
                    categoryDesc = "Financial Services",
                    transactionsCounts = 23,
                    spentAmount = 500.0,
                    budgetedAmount = 1000.0,
                ),
            )

            categories.add(
                CategoryBudgetSpend(
                    categoryId = "2",
                    categoryDesc = "Charity and Gifts",
                    transactionsCounts = 1,
                    spentAmount = 220.0,
                    budgetedAmount = 1000.0,
                )
            )

            categories.add(
                CategoryBudgetSpend(
                    categoryId = "3",
                    categoryDesc = "Education",
                    transactionsCounts = 2,
                    spentAmount = 350.0,
                    budgetedAmount = 1000.0,
                )
            )

            categories.add(
                CategoryBudgetSpend(
                    categoryId = "4",
                    categoryDesc = "Entertainment",
                    transactionsCounts = 6,
                    spentAmount = 453.0,
                    budgetedAmount = 1000.0,
                )
            )



            LazyColumn {
                item {
                    luneKitManager.CategorySpendListView(
                        data = categories,
                        editCategories = true,
                        totalBudget = 10000.0
                    ) { modifiedCategories ->
                        Log.d("TAG", "onCreate: $modifiedCategories")

                    }
                }
            }
Category Spend List View SDK

CategorySpendListView parameters

Parameter

Type

Description

data

List<CategoryBudgetSpend>?

Data to be passed to the component

primaryColor

Color

Component primary color

contentColor

Color

Component text color

borderRadius

Dp

List item border radius

fontFamily

FontFamily

Component text font family

editCategories

Boolean

To edit categories budget

totalBudget

Double

The total specified budget, this is used to edit categories budget and to not exceed this range.

onChange

(List<CategoryBudgetSpend>) -> Unit

A callback that returns list of all edited categories (The callback fires whenever a category is being modified)

Categories Spend PieChart

The CategoriesPieChart shows the user's spend per top 5 categories with the total amount spend. To use this view, just call the CategoriesPieChart method of your LuneKitManager instance as shown in the example below.

val categoriesSpendList = ArrayList<SpendCategory>()

            categoriesSpendList.add(
                SpendCategory(
                    categoryId = "1",
                    categoryDesc = "Finance Service",
                    amount = 4244.4,
                    currencyCode = "AED"
                )
            )
            categoriesSpendList.add(
                SpendCategory(
                    categoryId = "2",
                    categoryDesc = "Education",
                    amount = 1454.3,
                    currencyCode = "AED"
                )
            )
            categoriesSpendList.add(
                SpendCategory(
                    categoryId = "3",
                    categoryDesc = "Transportatioin",
                    amount = 1533.4,
                    currencyCode = "AED"
                )
            )
            categoriesSpendList.add(
                SpendCategory(
                    categoryId = "4",
                    categoryDesc = "Test",
                    amount = 1244.4,
                    currencyCode = "AED"
                )
            )
            categoriesSpendList.add(
                SpendCategory(
                    categoryId = "5",
                    categoryDesc = "Shopping",
                    amount = 1222.4,
                    currencyCode = "AED"
                )
            )
            categoriesSpendList.add(
                SpendCategory(
                    categoryId = "6",
                    categoryDesc = "Shopping",
                    amount = 1222.4,
                    currencyCode = "AED"
                )
            )
            categoriesSpendList.add(
                SpendCategory(
                    categoryId = "7",
                    categoryDesc = "Shopping",
                    amount = 1222.4,
                    currencyCode = "AED"
                )
            )
            categoriesSpendList.add(
                SpendCategory(
                    categoryId = "8",
                    categoryDesc = "Shopping",
                    amount = 2222.4,
                    currencyCode = "AED"
                )
            )
            categoriesSpendList.add(
                SpendCategory(
                    categoryId = "9",
                    categoryDesc = "Shopping",
                    amount = 6222.4,
                    currencyCode = "AED"
                )
            )
            categoriesSpendList.add(
                SpendCategory(
                    categoryId = "10",
                    categoryDesc = "Shopping",
                    amount = 7222.4,
                    currencyCode = "AED"
                )
            )


Surface{
		luneKitManager.CategoriesPieChart(data = categoriesSpendList)
}
Home Screen

CategoriesPieChart parameters

Parameter

Type

Description

data

List<SpendCategory>?

Data to be passed to the component as a list and then the chart will show top 5 spend categories

primaryColor

Color

Component primary color

borderRadius

Dp

Component card border radius

fontFamily

FontFamily

Component text font family

Brand List View

The BrandListView shows a list of brands the user has patronized. To use this view, just call the BrandListView method of your LuneKitManager instance as shown in the example below.

val spendPerBrandList = ArrayList<BrandSpend>()

            spendPerBrandList.add(
                BrandSpend(
                    brandId = "1",
                    brandName = "Uber Eats",
                    brandLogoUrl = "https://api.lunedata.io/media/brand_logos/UberEats.webp",
                    amount = 777.7
                )
            )
            spendPerBrandList.add(
                BrandSpend(
                    brandId = "2",
                    brandName = "AlBaik",
                    brandLogoUrl = "https://api.lunedata.io/media/brand_logos/AlBaik.jpg",
                    amount = 23.4
                )
            )
            spendPerBrandList.add(
                BrandSpend(
                    brandId = "3",
                    brandName = "Filli Cafe",
                    brandLogoUrl = "https://api.lunedata.io/media/brand_logos/download_89_1.png",
                    amount = 125.7
                )
            )
            spendPerBrandList.add(
                BrandSpend(
                    brandId = "4",
                    brandName = "Hoichoi",
                    brandLogoUrl = "https://api.lunedata.io/media/brand_logos/Hoichoi.jpg",
                    amount = 233.7
                )
            )
            spendPerBrandList.add(
                BrandSpend(
                    brandId = "5",
                    brandName = "Circle K",
                    brandLogoUrl = "https://api.lunedata.io/media/brand_logos/Circle_K.jfif",
                    amount = 456.7
                )
            )
            spendPerBrandList.add(
                BrandSpend(
                    brandId = "6",
                    brandName = "Sephora",
                    brandLogoUrl = "https://api.lunedata.io/media/brand_logos/Sephora.jpg",
                    amount = 754.7
                )
            )


LazyColumn{
    item{
        luneKitManager.BrandListView(data = spendPerBrandList)
    }
}
Brands List view

BrandListView parameters

Parameter

Type

Description

data

List<BrandSpend>?

Data to be passed to the component

contentColor

Color

Component text color

borderRadius

Dp

List cards border radius

fontFamily

FontFamily

Component text font family

Transaction List View

The TransactionListView shows a list of enriched transactions in a user-friendly way, which each transaction having an associated brand. To use this view, just call the TransactionListView method of your LuneKitManager instance as shown in the example below.

val transactionsPerCat = ArrayList<Transaction>()
            transactionsPerCat.add(
                Transaction(
                    rawDescription = "NBF DIFC ATM",
                    amount = 1550.33,
                    brandLogo = "https://api.lunedata.io/media/brand_logos/nbf.png",
                    brandName = "NBF"
                )
            )
            transactionsPerCat.add(
                Transaction(
                    rawDescription = "HILAL BNK AD MMCD",
                    amount = 5250.33,
                    brandLogo = "https://api.lunedata.io/media/brand_logos/1653025313914.jpeg",
                    brandName = "Al Hilal Bank"
                )
            )
            transactionsPerCat.add(
                Transaction(
                    rawDescription = "SUNNSAND FUJ Purch",
                    amount = 3421.00,
                    brandLogo = "https://api.lunedata.io/media/brand_logos/SunSand.jpg",
                    brandName = "Sun & Sand"
                )
            )
            transactionsPerCat.add(
                Transaction(
                    rawDescription = "AIRBNB DXB",
                    amount = 3421.00,
                    brandLogo = "https://api.lunedata.io/media/brand_logos/Airbnb.jpeg",
                    brandName = "Airbnb"
                )
            )
            transactionsPerCat.add(
                Transaction(
                    rawDescription = "DAR MONTBLANC",
                    amount = 3421.00,
                    brandLogo = "https://api.lunedata.io/media/brand_logos/Montblanc.jpg",
                    brandName = "Montblanc"
                )
            )
            transactionsPerCat.add(
                Transaction(
                    rawDescription = "EMR AIRLINES 23TD",
                    amount = 3421.00,
                    brandLogo = "https://api.lunedata.io/media/brand_logos/Emirates_Airlines.jpg",
                    brandName = "Emirates Airlines"
                )
            )


LazyColumn{
    item{
        luneKitManager.TransactionListView(data = transactionsPerCat)
    }
}
Transactions List view

TransactionListView parameters

Parameter

Type

Description

data

List<Transaction>?

Data to be passed to the component

contentColor

Color

Component text color

borderRadius

Dp

List cards border radius

fontFamily

FontFamily

Component text font family

Money Management SDK Features

Lune’s Finance Management SDK is packed with features thatredefine financial management. Here's a closer look at what it offers: 

Transaction Categorization: Automatically categorizes each transaction, offering a clear view of spending patterns.

Expense Tracking: As a versatile finance tracker API, it enables users to track monthly expenses effortlessly, offering a     detailed and comprehensive financial overview.

Budgeting Tools: Enables users to set and adhere to budgets, fostering better financial discipline.

Financial Insights: Delivers deep insights into spending habits, aiding in smarter financial planning.

Real-Time Data: Updates financial information in real-time, ensuring users always have the latest data at their fingertips.

User-Friendly Interface: Designed for ease of use, making financial management accessible to everyone. Central to these features is Lune’s commitment to data enrichment services.

By enhancing raw financial data with contextual insights, the SDK turns numbers into meaningful information. The SDK does wonders for user experience, offering insights that make managing finances clearer and more intelligent. It's a shift from simply tracking transactions to meaningful financial data enrichment, turning every spending decision into a clear, understandable story. 

Ready to transform how your users manage their finances? Get your API key today and start integrating Lune’s Money Management SDK into your platform. Simple, insightful, and empowering.  

Localization

The Android SDK provides two Locales en and ar . To switch between Locales just configure the LuneKitManager locale parameter. This will change all components Locale and it will also handle LTR & RTL views.

The Android SDK provides two Locales en and ar . To switch between Locales just configure the LuneKitManager locale parameter. This will change all components Locale and it will also handle LTR & RTL views.

val luneKitManager = LuneKitManager(
        locale = "ar" // deafult is "en"
    )
Ar Components 1Ar Components 2Ar Components 3